Query Available Actions

Last Updated on : 2023-10-09 08:06:50download

Query the list of actions that can be added to the specified policy.

API address

GET: /v2.0/cloud/iam/policy/action

Return parameter

Parameter nameTypeDescription
successBooleanIndicates whether the request is successful. Valid values:
  • true: The operation succeeded.
  • false: The operation failed.
error_codeStringThe error code. For more information, see the error codes.
error_msgStringThe message that is returned if the request fails. It is empty if the request is successful.
resultSetThe returned result.

Request example

GET: v2.0/cloud/iam/policy/action

Return example

{
    "result": [
        "space:get",
        "space:create"
    ],
    "success": true
}

Error code

For more information, see error code.