GuidesAPI Reference
API Reference

Create a resource policy

Create a resource policy. A resource policy packages resources that are to be made linkable to realms. A resource policy can be homed to a project or created outside of the context of a project. Once a resource home is created for the resource policy, all access to the resource policy would need to be in the context of the project scope.

For an unscoped resource policy, the creator is granted "manageResourcePolicy", "addGrant:manageResourcePolicy" access on the resource policy HRN. For a resource policy scoped to a project all members of the home project get the "projectEnabled" action "manageResourcePolicy" access on the resource policy.


Access Control:

  • The calling principal must have "createResourcePolicy" action permission in the "authorization" service.
  • The unscoped access to this api is granted via the default authorization policy.
  • The scoped access to this api is granted via the default "projectEnabled" action for members of the project.
  • This API works for tokens with or without a project scope.
Body Params
string
required

The id of the resource policy. The ID must comply to the regex - (^[a-zA-Z0-9][a-zA-Z0-9-:]{2,61}[a-zA-Z0-9]$)

string
required

The name of the resource policy

string

The description of the resource policy

Headers
string

Correlates HTTP requests between a client and server. If not present in the incoming request, it will be generated.

Responses

Language
Credentials
Bearer
JWT
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json