open

get a policy

get/api/v1/systems/{system_id}/policies/{policy_id}/

Request

  • The document declares no server URL.
  • Auth
    • API key in header X-Bk-App-Code
    • or API key in header X-Bk-App-Secret

Path parameters

system_idstring required

System ID

policy_idstring required

Policy ID

Response

OK

codeinteger
messagestring

Example response

{
  "data": {
    "action": {
      "id": "edit"
    },
    "expired_at": 4102444800,
    "id": 100,
    "subject": {
      "id": "admin",
      "name": "Administer",
      "type": "user"
    },
    "system": "bk_test",
    "version": "1"
  }
}

Changes