Policy

A Policy is a resource managing page access permissions. This resource can be used in all domains if it is defined in the `repository` microservice.

Package : spaceone.api.repository.v1

Policy

Policy Methods:

create

POST /repository/v1/policies

Creates a new Policy. The parameter policy_id, an identifier of Policy resources, can only include lowercase alphabets, numbers, and hyphens(-). The parameter permissions is a list type data describing page access permissions.

{
    "policy_id": "policy-custom-full-acess",
    "name": "Full Access",
    "permissions": [
        "*"
    ],
    "labels": [],
    "tags": {},
    "domain_id": "domain-123456789012"
}

update

PUT /repository/v1/policy/{policy}

Updates a specific Policy. You can make changes in Policy settings, including name, labels, tags, and permissions. The parameter policy_id cannot be updated.

{
    "policy_id": "policy-custom-full-acess",
    "name": "Full Access",
    "permissions": [
        "*"
    ],
    "labels": [],
    "tags": {},
    "domain_id": "domain-123456789012"
}

delete

DELETE /repository/v1/policy/{policy}

Deletes a specific Policy. You must specify the policy_id of the Policy to delete, as the policy_id is an identifier of Policy resources.

{
    "policy_id": "policy-123456789012"
}

get

GET /repository/v1/policies/{policy}

Gets a specific Policy. You must specify the policy_id of the Policy to get, as the policy_id is an identifier of Policy resources. You can use the parameter repository_id to limit the scope of the method to a specific Repository.

{
    "policy_id": "policy-123456789012",
    "repository_id": "repo-123456789012"
}

list

GET /repository/v1/policies

POST /repository/v1/policies/search

Gets a list of all Policies in a specific Repository. The parameter repository_id is used as an identifier of a Repository to get its list of Policies. You can use a query to get a filtered list of Policies.

{
    "query": {},
    "repository_id": "repo-123456789012"
}

stat

POST /repository/v1/policies/stat

Message

CreatePolicyRequest

GetRepositoryPolicyRequest

PoliciesInfo

PolicyInfo

PolicyQuery

PolicyRequest

PolicyStatQuery

UpdatePolicyRequest

Last updated