Read Permission Operations Status
get
/content/management/api/v1.1/permissionOperations/{statusId}
Read Permission Operations status.
Request
Path Parameters
-
statusId: string
status id of the permission operations.
Query Parameters
-
links(optional): string
This parameter accepts a comma-separated list of link names. By default, this parameter gives all the links applicable. Possible values are: self, canonical, describedby
Response
Supported Media Types
- application/json
200 Response
OK.
Root Schema : PermissionOperationsStatus
Type:
object
PermissionOperationsStatus
Show Source
-
completed(optional):
boolean
Whether the original request is completed or not
-
completedPercentage(optional):
integer(int32)
A number between 0 and 100, capturing how much of the process has been completed.
-
endTime(optional):
object date
date
-
error(optional):
object Error
Error
-
id(optional):
string
status id of the original request. It is a required property in the get response.
-
links(optional):
array links
links of the status resource
-
message(optional):
string
Human readable message about the current processing status
-
progress(optional):
string
Allowed Values:
[ "succeeded", "failed", "processing", "pending", "aborted", "paused", "blocked" ]
The current progress of the original request. It is a required property in the get response. -
requestStatus(optional):
integer(int32)
HTTP status code of the original request. This is not the polling request's status. Value is available only after the request is completed
-
result(optional):
object ResultPermissionOperations
Result
-
startTime(optional):
object date
date
Nested Schema : Error
Type:
object
Error
Show Source
-
detail(optional):
string
Detailed error message.
-
instance(optional):
string
URI to the link that provides more detail about the error.
-
o:errorCode(optional):
string
Application specific error code.
-
o:errorDetails(optional):
object Error
Error
-
o:errorPath(optional):
string
XPath or JSON patch to indicate where the error occurs.
-
status(optional):
integer(int32)
HTTP status code.
-
title(optional):
string
Summary error message. It is a required property in the get response.
-
type(optional):
string
Link to HTTP error code page. It is a required property in the get response.
Nested Schema : links
Type:
array
links of the status resource
Show Source
-
Array of:
object Link
Link of the resource.
Nested Schema : ResultPermissionOperations
Type:
object
Result
Show Source
-
body(optional):
object PermissionOperations
Permission Operations
-
headers(optional):
array headers
List of the HTTP headers of the response to the original async request
-
status(optional):
object ResultHTTPStatus
ResultHTTPStatus
Nested Schema : Link
Type:
object
Link of the resource.
Show Source
-
href(optional):
string
The target resource's URI. It could be template URI. It is a required property in the get response.
-
mediaType(optional):
string
Media type.
-
method(optional):
string
What HTTP method can be used to access the target resource.
-
profile(optional):
string
Link to the metadata that describes the target resource.
-
rel(optional):
string
Relation type. It is a required property in the get response.
-
templated(optional):
boolean
Whether the URI is a template.
Nested Schema : PermissionOperations
Type:
object
Permission Operations
Show Source
-
links(optional):
array links
Links of the permission operations resource.
-
operations(optional):
object PermissionOperationsActions
Operations that can be performed. Currently only one operation at a time is supported.
Nested Schema : headers
Type:
array
List of the HTTP headers of the response to the original async request
Show Source
-
Array of:
object ResultHTTPHeader
ResultHTTPHeader
Nested Schema : ResultHTTPStatus
Type:
object
ResultHTTPStatus
Show Source
-
code(optional):
integer(int32)
HTTP response status code
-
reason(optional):
string
HTTP response reason phrase
Nested Schema : links
Type:
array
Links of the permission operations resource.
Show Source
-
Array of:
object Link
Link of the resource.
Nested Schema : PermissionOperationsActions
Type:
object
Operations that can be performed. Currently only one operation at a time is supported.
Show Source
Nested Schema : ResourceId
Type:
object
ResourceId
Show Source
-
id(optional):
string
id of the resource.
-
name(optional):
string
Name of the resource.
-
type(optional):
string
Allowed Values:
[ "repository", "collection", "channel", "type", "workflow", "scheduledjob", "translationjob", "editorialrole", "publishingrole", "siteplan", "taxonomy", "retentionpolicy", "hold" ]
Type of the resource.
Nested Schema : FailedUserId
Type:
object
FailedUserId
Show Source
-
groupType(optional):
string
Allowed Values:
[ "CEC", "IDP" ]
-
message(optional):
string
failure message.
-
name(optional):
string
-
type(optional):
string
Allowed Values:
[ "user", "group" ]
Nested Schema : UserId
Type:
object
UserId
Show Source
-
groupType(optional):
string
Allowed Values:
[ "CEC", "IDP" ]
-
name(optional):
string
-
type(optional):
string
Allowed Values:
[ "user", "group" ]
Nested Schema : ResultHTTPHeader
Type:
object
ResultHTTPHeader
Show Source
-
name(optional):
string
HTTP response header name
-
value(optional):
string
HTTP response header value
304 Response
Not modified.
400 Response
Bad request.
403 Response
Forbidden.
404 Response
Not found.
500 Response
Internal server error.
Examples
The following example shows how to read status of a permission operation by submitting a GET request on the REST resource using cURL.
curl -X GET 'content-type: application/json' 'https://host:port/content/management/api/v1.1/permissionOperations/{statusId}'
Example 1:
This reads status of a successful permission asynchronous share operation with operation id: OP4C2BA99B626B4E43A4A64853D639F4CA.
/content/management/api/v1.1/permissionOperations/OP4C2BA99B626B4E43A4A64853D639F4CA
Response Body
{ "id": "OP4C2BA99B626B4E43A4A64853D639F4CA", "startTime": { "value": "2018-12-21T06:47:14.656Z", "timezone": "UTC" }, "endTime": { "value": "2018-12-21T06:47:16.759Z", "timezone": "UTC" }, "progress": "succeeded", "completed": true, "message": "Job Completed Successfully", "completedPercentage": 100, "result": { "status": { "code": 200, "reason": "" }, "headers": [], "body": { "operations": { "share": { "resource" : { "id" : "F0A4079D50E370E0B074F62AE4863ECDF2B8EF156CC7", "type" : "repository" }, "roles": [ { "name" : "viewer", "message" : "message1", "users" : [ {"id" : "cecuserLoginIdName", "type" : "user"} ] }, { "name" : "manager", "message" : "message2", "users" : [ {"id" : "cecgroupLoginIdName", "type" : "group"} ] } ], "successRoles": [ { "name" : "viewer", "users" : [ {"id" : "cecuserLoginIdName", "type" : "user"} ] }, { "name" : "manager", "users" : [ {"id" : "cecgroupLoginIdName", "type" : "group"} ] } ] } }, "links": [ { "href": "https://<hostname>/content/management/api/v1.1/permissionOperations", "rel": "self", "method": "POST", "mediaType": "application/json" }, { "href": "https://<hostname>/content/management/api/v1.1/permissionOperations", "rel": "canonical", "method": "POST", "mediaType": "application/json" }, { "href": "https://<hostname>/content/management/api/v1.1/metadata-catalog/permissionOperations", "rel": "describedby", "method": "GET", "mediaType": "application/schema+json" } ] } }, "links": [ { "href": "https://<hostname>/content/management/api/v1.1/permissionOperations/OP4C2BA99B626B4E43A4A64853D639F4CA", "rel": "self", "method": "GET", "mediaType": "application/json" }, { "href": "https://<hostname>/content/management/api/v1.1/permissionOperations/OP4C2BA99B626B4E43A4A64853D639F4CA", "rel": "canonical", "method": "GET", "mediaType": "application/json" }, { "href": "https://<hostname>/content/management/api/v1.1/metadata-catalog/permissionOperations/OP4C2BA99B626B4E43A4A64853D639F4CA", "rel": "describedby", "method": "GET", "mediaType": "application/schema+json" }
Example 2:
This reads status of a successful item permissionOperations unshare operation with operation id: E2A8C607848940D9ADA0DFFBE078E793.
/content/management/api/v1.1/permissionOperations/E2A8C607848940D9ADA0DFFBE078E793
Request Body
{ "id": "E2A8C607848940D9ADA0DFFBE078E793", "startTime": { "value": "2018-12-21T06:47:14.656Z", "timezone": "UTC" }, "endTime": { "value": "2018-12-21T06:47:16.759Z", "timezone": "UTC" }, "progress": "succeeded", "completed": true, "message": "Job Completed Successfully", "completedPercentage": 100, "result": { "status": { "code": 200, "reason": "" }, "headers": [], "body": { "operations": { "unshare": { "resource": { "id": "F0A4079D50E370E0B074F62AE4863ECDF2B8EF156CC7", "type": "repository" }, "message": "hi", "users": [ { "id": "cecuserLoginIdName", "type": "user" } ], "successUsers": [ { "id": "cecuserLoginIdName", "type": "user" } ] } }, "links": [ { "href": "https://<hostname>/content/management/api/v1.1/permissionOperations", "rel": "self", "method": "POST", "mediaType": "application/json" }, { "href": "https://<hostname>/content/management/api/v1.1/permissionOperations", "rel": "canonical", "method": "POST", "mediaType": "application/json" }, { "href": "https://<hostname>/content/management/api/v1.1/metadata-catalog/permissionOperations", "rel": "describedby", "method": "GET", "mediaType": "application/schema+json" } ] } }, "links": [ { "href": "https://<hostname>/content/management/api/v1.1/permissionOperations/E2A8C607848940D9ADA0DFFBE078E793", "rel": "self", "method": "GET", "mediaType": "application/json" }, { "href": "https://<hostname>/content/management/api/v1.1/permissionOperations/E2A8C607848940D9ADA0DFFBE078E793", "rel": "canonical", "method": "GET", "mediaType": "application/json" }, { "href": "https://<hostname>/content/management/api/v1.1/metadata-catalog/permissionOperations/E2A8C607848940D9ADA0DFFBE078E793", "rel": "describedby", "method": "GET", "mediaType": "application/schema+json" } ] }