Read Permission Operations Status

get

/content/management/api/v1.1/permissionOperations/{statusId}

Read Permission Operations status.

Request

Path Parameters
Query Parameters
Back to Top

Response

Supported Media Types

200 Response

OK.
Body ()
Root Schema : PermissionOperationsStatus
Type: object
PermissionOperationsStatus
Show Source
Nested Schema : date
Type: object
date
Show Source
Nested Schema : Error
Type: object
Error
Show Source
Nested Schema : ResultPermissionOperations
Type: object
Result
Show Source
Nested Schema : PermissionOperations
Type: object
Permission Operations
Show Source
Nested Schema : headers
Type: array
List of the HTTP headers of the response to the original async request
Show Source
Nested Schema : ResultHTTPStatus
Type: object
ResultHTTPStatus
Show Source
Nested Schema : PermissionOperationsActions
Type: object
Operations that can be performed. Currently only one operation at a time is supported.
Show Source
Nested Schema : SharePermission
Type: object
Details of the share operation
Show Source
Nested Schema : UnSharePermission
Type: object
Details of the unshare operation
Show Source
Nested Schema : failedRoles
Type: array
failed share list.
Show Source
Nested Schema : ResourceId
Type: object
ResourceId
Show Source
Nested Schema : roles
Type: array
details of the roles to be granted.
Show Source
Nested Schema : successRoles
Type: array
successful share list.
Show Source
Nested Schema : FailedSharePermissionRole
Type: object
Details of share operation role failed.
Show Source
Nested Schema : users
Type: array
Show Source
Nested Schema : FailedUserId
Type: object
FailedUserId
Show Source
Nested Schema : SharePermissionRole
Type: object
Details of share operation role.
Show Source
Nested Schema : users
Type: array
Show Source
Nested Schema : UserId
Type: object
UserId
Show Source
Nested Schema : SuccessSharePermissionRole
Type: object
Details of successful share operation role.
Show Source
Nested Schema : users
Type: array
Show Source
Nested Schema : failedUsers
Type: array
Show Source
Nested Schema : successUsers
Type: array
Show Source
Nested Schema : users
Type: array
Show Source
Nested Schema : ResultHTTPHeader
Type: object
ResultHTTPHeader
Show Source

304 Response

Not modified.

400 Response

Bad request.

403 Response

Forbidden.

404 Response

Not found.

500 Response

Internal server error.
Back to Top

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"
          }
        ]
      }
Back to Top