All URIs are relative to /
Method | HTTP request | Description |
---|---|---|
CreateAccessPolicy | Post /policies | Create access policy |
GetAccessPolicies | Get /policies | Get all access policies |
GetAccessPolicy | Get /policies/{id} | Get access policy |
GetAccessPolicyForResource | Get /policies/{action}/{resource} | Get access policy for resource |
GetResources | Get /policies/resources | Get available resources |
RemoveAccessPolicy | Delete /policies/{id} | Delete access policy |
UpdateAccessPolicy | Put /policies/{id} | Update access policy |
AccessPolicy CreateAccessPolicy(ctx, body) Create access policy
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
body | AccessPolicy | The access policy configuration details. |
No authorization required
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
[]AccessPolicy GetAccessPolicies(ctx, ) Get all access policies
This endpoint does not need any parameter.
No authorization required
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
AccessPolicy GetAccessPolicy(ctx, id) Get access policy
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
id | string | The access policy id. |
No authorization required
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
AccessPolicy GetAccessPolicyForResource(ctx, action, resource) Get access policy for resource
Gets an access policy for the specified action and resource
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
action | string | The request action. | |
resource | string | The resource of the policy. |
No authorization required
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
[]Resource GetResources(ctx, ) Get available resources
Gets the available resources that support access/authorization policies
This endpoint does not need any parameter.
No authorization required
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
AccessPolicy RemoveAccessPolicy(ctx, version, id, optional) Delete access policy
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
version | LongParameter | The version is used to verify the client is working with the latest version of the entity. | |
id | string | The access policy id. | |
optional | *PoliciesApiRemoveAccessPolicyOpts | optional parameters | nil if no parameters |
Optional parameters are passed through a pointer to a PoliciesApiRemoveAccessPolicyOpts struct
Name | Type | Description | Notes |
---|
clientId | optional.Interface of ClientIdParameter| If the client id is not specified, new one will be generated. This value (whether specified or generated) is included in the response. |
No authorization required
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
AccessPolicy UpdateAccessPolicy(ctx, body, id) Update access policy
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
body | AccessPolicy | The access policy configuration details. | |
id | string | The access policy id. |
No authorization required
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]