All URIs are relative to http://localhost
Method | HTTP request | Description |
---|---|---|
create_resource_action | POST /v2/schema/{proj_id}/{env_id}/resources/{resource_id}/actions | Create Resource Action |
delete_resource_action | DELETE /v2/schema/{proj_id}/{env_id}/resources/{resource_id}/actions/{action_id} | Delete Resource Action |
get_resource_action | GET /v2/schema/{proj_id}/{env_id}/resources/{resource_id}/actions/{action_id} | Get Resource Action |
list_resource_actions | GET /v2/schema/{proj_id}/{env_id}/resources/{resource_id}/actions | List Resource Actions |
update_resource_action | PATCH /v2/schema/{proj_id}/{env_id}/resources/{resource_id}/actions/{action_id} | Update Resource Action |
models::ResourceActionRead create_resource_action(proj_id, env_id, resource_id, resource_action_create) Create Resource Action
Creates a new action that can affect the resource.
Name | Type | Description | Required | Notes |
---|---|---|---|---|
proj_id | String | Either the unique id of the project, or the URL-friendly key of the project (i.e: the "slug"). | [required] | |
env_id | String | Either the unique id of the environment, or the URL-friendly key of the environment (i.e: the "slug"). | [required] | |
resource_id | String | Either the unique id of the resource, or the URL-friendly key of the resource (i.e: the "slug"). | [required] | |
resource_action_create | ResourceActionCreate | [required] |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
delete_resource_action(proj_id, env_id, resource_id, action_id) Delete Resource Action
Deletes the action and all its related data. This includes any permissions granted to perform the action.
Name | Type | Description | Required | Notes |
---|---|---|---|---|
proj_id | String | Either the unique id of the project, or the URL-friendly key of the project (i.e: the "slug"). | [required] | |
env_id | String | Either the unique id of the environment, or the URL-friendly key of the environment (i.e: the "slug"). | [required] | |
resource_id | String | Either the unique id of the resource, or the URL-friendly key of the resource (i.e: the "slug"). | [required] | |
action_id | String | Either the unique id of the action, or the URL-friendly key of the action (i.e: the "slug"). | [required] |
(empty response body)
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
models::ResourceActionRead get_resource_action(proj_id, env_id, resource_id, action_id) Get Resource Action
Gets a single action defined on the resource, if such action exists.
Name | Type | Description | Required | Notes |
---|---|---|---|---|
proj_id | String | Either the unique id of the project, or the URL-friendly key of the project (i.e: the "slug"). | [required] | |
env_id | String | Either the unique id of the environment, or the URL-friendly key of the environment (i.e: the "slug"). | [required] | |
resource_id | String | Either the unique id of the resource, or the URL-friendly key of the resource (i.e: the "slug"). | [required] | |
action_id | String | Either the unique id of the action, or the URL-friendly key of the action (i.e: the "slug"). | [required] |
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
Vecmodels::ResourceActionRead list_resource_actions(proj_id, env_id, resource_id, page, per_page) List Resource Actions
Lists all the actions defined on the resource.
Name | Type | Description | Required | Notes |
---|---|---|---|---|
proj_id | String | Either the unique id of the project, or the URL-friendly key of the project (i.e: the "slug"). | [required] | |
env_id | String | Either the unique id of the environment, or the URL-friendly key of the environment (i.e: the "slug"). | [required] | |
resource_id | String | Either the unique id of the resource, or the URL-friendly key of the resource (i.e: the "slug"). | [required] | |
page | Option<i32> | Page number of the results to fetch, starting at 1. | [default to 1] | |
per_page | Option<i32> | The number of results per page (max 100). | [default to 30] |
Vecmodels::ResourceActionRead
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
models::ResourceActionRead update_resource_action(proj_id, env_id, resource_id, action_id, resource_action_update) Update Resource Action
Partially updates the action defined on a resource. Fields that will be provided will be completely overwritten.
Name | Type | Description | Required | Notes |
---|---|---|---|---|
proj_id | String | Either the unique id of the project, or the URL-friendly key of the project (i.e: the "slug"). | [required] | |
env_id | String | Either the unique id of the environment, or the URL-friendly key of the environment (i.e: the "slug"). | [required] | |
resource_id | String | Either the unique id of the resource, or the URL-friendly key of the resource (i.e: the "slug"). | [required] | |
action_id | String | Either the unique id of the action, or the URL-friendly key of the action (i.e: the "slug"). | [required] | |
resource_action_update | ResourceActionUpdate | [required] |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]