policy

policy auth/鉴权

Changed on

eval all the policies queried by conditions: system/subject/action and resources[required]

post/api/v2/policy/systems/{system_id}/auth/

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

Request body

systemstring required

Example request

{
  "action": {
    "id": "edit"
  },
  "resources": [
    {
      "id": "framework",
      "system": "bk_paas",
      "type": "app"
    }
  ],
  "subject": {
    "id": "admin",
    "type": "user"
  },
  "system": "bk_paas"
}

Response

OK

allowedboolean

Changes