Method DeleteProtectionDomain
DeleteProtectionDomain(String, String)
Delete a protection domain
Declaration
void DeleteProtectionDomain(string connectionId, string protectionDomainId)
Parameters
Type | Name | Description |
---|---|---|
System.String | connectionId | The connection id to identify your connection. See also ConnectionId |
System.String | protectionDomainId | The protection domain id |
Remarks
- You need "Access to security settings" access right (01002057-38a7-11d8-a902-0050bf427e8f). See also GetUserAdminAccessRights(String, String)
- You need "Delete security domain" access right (01002050-38a7-11d8-a902-0050bf427e8f). See also GetUserAdminAccessRights(String, String)
Examples
POST http://YourServerName/InfoShare/Json/Common/DeleteProtectionDomain
Example delete a protection domain.{
"connectionId": "b6742bb8-ef97-44ae-819b-a2fa2200908a",
"protectionDomainId": "b20f34e2-64e0-e911-a94a-00155d290a08"
}
Response:
{ }
Exceptions
Type | Condition |
---|---|
ServiceException | The connection id {connectionId} isn't valid or has expired (10008) |
ServiceException | Protection domain is in use {protectionDomainId} (10045) |
ServiceException | Not enough rights ({accessOperationName}, {accessOperationId}) (10071) |
ServiceException | The administrative context {administrativeContext} is already checked out by user {displayLoginName} (10129) |
ServiceException | Verification code is needed: Verification code not yet verified (10152) |
ServiceException | Can not delete {ObjectType} {ObjectName} {ObjectId} because it is still in use in {ObjectType} {ObjectName} {ObjectId}. (10233) |