Get Policy


Get the policy information.

Operation Permissions

Applications assigned with the administrator policy in the OU.

Request Format

GET https://{apigw-address}/enos-iam-service/v2.3/policy/info

Request Parameters (URI)

Name Location (Path/Query) Required/Optional Data Type Description
orgId Query Required String The ID of the OU to which the policy belongs to. How to get orgId>>
id Query Required String The policy ID.

Response Parameters

Name Data Type Description
data Policy Struct The policy details. For more information, see Policy Struct.

Samples

Request Sample

url: https://{apigw-address}/enos-iam-service/v2.3/policy/info?orgId=yourOrgId&id=yourRequestedPolicyId
method: GET

Return Sample

{
  "fail": false,
  "data": {
    "id": "yourRequestedPolicyId",
    "code": "connectivity.admin",
    "desc": "Device Management Administrator",
    "name": "Device Management Administrator",
    "type": 8,
    "created_by": "",
    "permissions": {},
    "updated_at": null
  },
  "success": true,
  "status": 0
}