Get single policy
    • PDF

    Get single policy

    • PDF

    Article summary

    Get a single policy.

    API

    • GET /policies/{policyId}

    Request

    Request parameter

    ParameterLocationRequiredTypeRestrictionsDescription
    policyIdpathYStringPolicy Id
    withPermissionsquery stringNbooleanGet permissions of the policy together (default: false)

    Response

    {
      "policyId": "string",
      "policyName": "string",
      "policyType": "string",
      "nrn": "string",
      "permissions": [
        {
          "effect": "string",
          "targets": [
            {
              "product": "string",
              "actions": [
                "string"
              ],
              "resourceNrns": [
                "string"
              ]
            }
          ],
          "condition": {
            "operator": {
                "key": "value"
            }
          }
        }
      ]
    }
    
    ItemsTypeDescriptionRemarks
    policyIdstringPolicy ID
    policyNamestringPolicy Name
    policyTypestringPolicy type (SYSTEM_MANAGED, USER_CREATED)
    nrnstringpolicy nrn
    permissionsarrayPermission list
    permissions.effectstringPermission status (currently only supports Allow)
    permissions.targetsarrayPermission target
    permissions.targets.productstringTarget product code
    permissions.targets.actionsarrayTarget action
    permissions.targets.resourceNrnsarrayTarget resource nrns
    permissions.conditionobjectPolicy condition
    permissions.condition.operatorstringPolicy condition operator
    permissions.condition.operator.keystringPolicy condition key
    permissions.condition.operator.valueanyPolicy condition value

    Was this article helpful?

    Changing your password will log you out immediately. Use the new password to log back in.
    First name must have atleast 2 characters. Numbers and special characters are not allowed.
    Last name must have atleast 1 characters. Numbers and special characters are not allowed.
    Enter a valid email
    Enter a valid password
    Your profile has been successfully updated.