All URIs are relative to http://localhost
Method | HTTP request | Description |
---|---|---|
create_proxy_config | POST /v2/facts/{proj_id}/{env_id}/proxy_configs | Create Proxy Config |
delete_proxy_config | DELETE /v2/facts/{proj_id}/{env_id}/proxy_configs/{proxy_config_id} | Delete Proxy Config |
get_proxy_config | GET /v2/facts/{proj_id}/{env_id}/proxy_configs/{proxy_config_id} | Get Proxy Config |
list_proxy_configs | GET /v2/facts/{proj_id}/{env_id}/proxy_configs | List Proxy Configs |
update_proxy_config | PATCH /v2/facts/{proj_id}/{env_id}/proxy_configs/{proxy_config_id} | Update Proxy Config |
models::ProxyConfigRead create_proxy_config(proj_id, env_id, proxy_config_create) Create Proxy Config
Creates a new proxy config inside the Permit.io system. If the proxy config is already created: will return 200 instead of 201, and will return the existing proxy config object in the response body.
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] | |
proxy_config_create | ProxyConfigCreate | [required] |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
delete_proxy_config(proj_id, env_id, proxy_config_id) Delete Proxy Config
Deletes the proxy config and all its related data.
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] | |
proxy_config_id | String | Either the unique id of the proxy config, or the URL-friendly key of the proxy config (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::ProxyConfigRead get_proxy_config(proj_id, env_id, proxy_config_id) Get Proxy Config
Gets a proxy config, if such proxy config exists. Otherwise returns 404.
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] | |
proxy_config_id | String | Either the unique id of the proxy config, or the URL-friendly key of the proxy config (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::ProxyConfigRead list_proxy_configs(proj_id, env_id, page, per_page) List Proxy Configs
Lists all the proxy configs defined within an environment.
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] | |
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::ProxyConfigRead
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
models::ProxyConfigRead update_proxy_config(proj_id, env_id, proxy_config_id, proxy_config_update) Update Proxy Config
Partially updates the proxy config definition. 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] | |
proxy_config_id | String | Either the unique id of the proxy config, or the URL-friendly key of the proxy config (i.e: the "slug"). | [required] | |
proxy_config_update | ProxyConfigUpdate | [required] |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]