policy

batch query v2 by actions/v2批量查询策略

Changed on

batch query policies by actions

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

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

Request body

Example request

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

Response

OK

conditionobject

Example response

[
  {
    "action": {
      "id": "edit"
    }
  }
]

Changes