All URIs are relative to http://127.0.0.1/v2
| Method | HTTP request | Description |
|---|---|---|
| create_aws_region | POST /service_discovery/aws | Add a new AWS region |
| create_consul | POST /service_discovery/consul | Add a new Consul server |
| delete_aws_region | DELETE /service_discovery/aws/{id} | Delete an AWS region |
| delete_consul | DELETE /service_discovery/consul/{id} | Delete a Consul server |
| get_aws_region | GET /service_discovery/aws/{id} | Return an AWS region |
| get_aws_regions | GET /service_discovery/aws | Return an array of all configured AWS regions |
| get_consul | GET /service_discovery/consul/{id} | Return one Consul server |
| get_consuls | GET /service_discovery/consul | Return an array of all configured Consul servers |
| replace_aws_region | PUT /service_discovery/aws/{id} | Replace an AWS region |
| replace_consul | PUT /service_discovery/consul/{id} | Replace a Consul server |
crate::models::AwsRegion create_aws_region(aws_region) Add a new AWS region
Add a new AWS region. Credentials are not required in case Dataplane API is running in an EC2 instance with proper IAM role attached.
| Name | Type | Description | Required | Notes |
|---|---|---|---|---|
| aws_region | AwsRegion | [required] |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
crate::models::Consul create_consul(consul) Add a new Consul server
Adds a new Consul server.
| Name | Type | Description | Required | Notes |
|---|---|---|---|---|
| consul | Consul | [required] |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
delete_aws_region(id) Delete an AWS region
Delete an AWS region configuration by it's id.
| Name | Type | Description | Required | Notes |
|---|---|---|---|---|
| id | String | AWS region ID | [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]
delete_consul(id) Delete a Consul server
Deletes a Consul server configuration by it's id.
| Name | Type | Description | Required | Notes |
|---|---|---|---|---|
| id | String | Consul server Index | [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]
crate::models::GetAwsRegion200Response get_aws_region(id) Return an AWS region
Return one AWS Region configuration by it's id.
| Name | Type | Description | Required | Notes |
|---|---|---|---|---|
| id | String | AWS region id | [required] |
crate::models::GetAwsRegion200Response
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
crate::models::GetAwsRegions200Response get_aws_regions() Return an array of all configured AWS regions
Return all configured AWS regions.
This endpoint does not need any parameter.
crate::models::GetAwsRegions200Response
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
crate::models::GetConsul200Response get_consul(id) Return one Consul server
Returns one Consul server configuration by it's id.
| Name | Type | Description | Required | Notes |
|---|---|---|---|---|
| id | String | Consul server id | [required] |
crate::models::GetConsul200Response
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
crate::models::GetConsuls200Response get_consuls() Return an array of all configured Consul servers
Returns all configured Consul servers.
This endpoint does not need any parameter.
crate::models::GetConsuls200Response
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
crate::models::AwsRegion replace_aws_region(id, aws_region) Replace an AWS region
Replace an AWS region configuration by its id.
| Name | Type | Description | Required | Notes |
|---|---|---|---|---|
| id | String | AWS Region ID | [required] | |
| aws_region | AwsRegion | [required] |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
crate::models::Consul replace_consul(id, consul) Replace a Consul server
Replaces a Consul server configuration by it's id.
| Name | Type | Description | Required | Notes |
|---|---|---|---|---|
| id | String | Consul Index | [required] | |
| consul | Consul | [required] |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]