Updating an Endpoint Group
Function
This API is used to update an endpoint group.
Calling Method
For details, see Calling APIs.
URI
PUT /v1/endpoint-groups/{endpoint_group_id}
|
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
|
endpoint_group_id |
Yes |
String |
Specifies the endpoint group ID. |
Request Parameters
|
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
|
X-Auth-Token |
Yes |
String |
Specifies the user token. The token can be obtained by calling the IAM API. The value of X-Subject-Token in the response header is the user token. |
|
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
|
endpoint_group |
Yes |
UpdateEndpointGroupOption object |
Specifies the detailed information about updating an endpoint group. |
|
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
|
name |
No |
String |
Specifies the endpoint group name. The name can contain 1 to 64 characters. Only letters, digits, and hyphens (-) are allowed. |
|
description |
No |
String |
Specifies the information about the endpoint group. The value can contain 0 to 255 characters. The following characters are not allowed: <> |
|
traffic_dial_percentage |
No |
Integer |
Specifies the percentage of traffic distributed to the endpoint group. |
Response Parameters
Status code: 200
|
Parameter |
Type |
Description |
|---|---|---|
|
endpoint_group |
EndpointGroupDetail object |
Specifies the endpoint group. |
|
request_id |
String |
Specifies the request ID. |
|
Parameter |
Type |
Description |
|---|---|---|
|
id |
String |
Specifies the endpoint group ID. |
|
name |
String |
Specifies the endpoint group name. The name can contain 1 to 64 characters. Only letters, digits, and hyphens (-) are allowed. |
|
description |
String |
Specifies the information about the endpoint group. The value can contain 0 to 255 characters. The following characters are not allowed: <> |
|
status |
String |
Specifies the provisioning status. The value can be one of the following:
|
|
traffic_dial_percentage |
Integer |
Specifies the percentage of traffic distributed to the endpoint group. |
|
region_id |
String |
Specifies the region where the endpoint group belongs. |
|
listeners |
Array of Id objects |
Specifies the listeners associated with the endpoint group. |
|
created_at |
String |
Specifies when the endpoint group was added. |
|
updated_at |
String |
Specifies when the endpoint group was updated. |
|
domain_id |
String |
Specifies the tenant ID. |
|
frozen_info |
FrozenInfo object |
Specifies the frozen details of cloud services or resources. |
|
Parameter |
Type |
Description |
|---|---|---|
|
status |
Integer |
Specifies the status of a cloud service or resource. The value can be one of the following:
|
|
effect |
Integer |
Specifies the status of the resource after being frozen. The value can be one of the following:
|
|
scene |
Array of strings |
Specifies the service scenario. The value can be one of the following:
|
Example Requests
Changing traffic dial to 5 and modifying the name and description of an endpoint group
PUT https://{ga_endpoint}/v1/endpoint-groups/3a9f50bb-f041-4eac-a117-82472d8a0007
{
"endpoint_group" : {
"name" : "endpoint-group-name-new",
"description" : "endpoint-group description new",
"traffic_dial_percentage" : 5
}
}
Example Responses
Status code: 200
Operation succeeded.
{
"endpoint_group" : {
"id" : "3a9f50bb-f041-4eac-a117-82472d8a0007",
"name" : "endpoint-group-name-new",
"description" : "endpoint-group description new",
"status" : "ACTIVE",
"traffic_dial_percentage" : 5,
"region_id" : "ap-southeast-1",
"listeners" : [ {
"id" : "1b11747a-b139-492f-9692-2df0b1c87193"
} ],
"created_at" : "2019-01-08T01:21:37.151Z",
"updated_at" : "2019-01-08T01:21:37.151Z",
"domain_id" : "99a3fff0d03c428eac3678da6a7d0f24",
"frozen_info" : {
"status" : 2,
"effect" : 1,
"scene" : [ "ARREAR", "POLICE" ]
}
},
"request_id" : "915a14a6-867b-4af7-83d1-70efceb146f9"
}
Status Codes
|
Status Code |
Description |
|---|---|
|
200 |
Operation succeeded. |
Error Codes
See Error Codes.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.