Search Results for

    Show / Hide Table of Contents

    Method CreateProtectionDomain

    CreateProtectionDomain(String, ProtectionDomainContract)

    Create a protection domain

    Declaration
    string CreateProtectionDomain(string connectionId, ProtectionDomainContract protectionDomain)
    Parameters
    Type Name Description
    System.String connectionId

    The connection id to identify your connection. See also ConnectionId

    ProtectionDomainContract protectionDomain

    ProtectionDomain to create

    Returns
    Type Description
    System.String

    The created protection domain id

    Examples

    POST http://YourServerName/InfoShare/Json/Common/CreateProtectionDomain

    Example for create a protection domain.

    {
       "connectionId": "b6742bb8-ef97-44ae-819b-a2fa2200908a",
       "protectionDomain": {
         "Name": {
           "Values": [{
             "Culture": "de",
             "Text": "Papierkorb" }, {
             "Culture": "en",
             "Text": "Paper bin" }] },
           "RoleIds": ["c40f34e2-64e0-e911-a94a-00155d290a99"] }
    }

    Response:

    {
       "CreateProtectionDomainResult": "b20f34e2-64e0-e911-a94a-00155d290a08"
    }
    Exceptions
    Type Condition
    ServiceException

    The connection id {connectionId} isn't valid or has expired (10008)

    ServiceException

    Name is not unique for culture ({culture}): {name} (10066)

    ServiceException

    Object with id {id} already exists (10078)

    ServiceException

    The administrative context {administrativeContext} is already checked out by user {displayLoginName} (10129)

    ServiceException

    Verification code is needed: Verification code not yet verified (10152)

    Back to top Copyright © Kendox