Querying an Endpoint
Function
This API is used to query an endpoint.
Calling Method
For details, see Calling APIs.
URI
GET /v2.1/endpoints/{endpoint_id}
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
endpoint_id |
Yes |
String |
Endpoint ID |
Request Parameters
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
X-Auth-Token |
Yes |
String |
Definition The user token. The token can be obtained by calling an IAM API. The value of X-Subject-Token in the response header is the user token. For details about how to obtain a user token, seeObtaining a User Token. Constraints N/A Range N/A Default Value N/A |
Response Parameters
Status code: 200
Parameter |
Type |
Description |
---|---|---|
endpoint |
EndpointResp object |
Endpoint |
Parameter |
Type |
Description |
---|---|---|
id |
String |
Endpoint ID, which is a UUID used to identify the endpoint |
name |
String |
Endpoint name |
direction |
String |
Endpoint direction. The value can be:
|
status |
String |
Resource status. The value can be PENDING_CREATE, ACTIVE, PENDING_DELETE, or ERROR. |
vpc_id |
String |
ID of the VPC to which the endpoint belongs. |
ipaddress_count |
Integer |
Number of IP addresses of the endpoint |
resolver_rule_count |
Integer |
Number of endpoint rules in the endpoint This parameter is returned only for outbound endpoints. |
create_time |
String |
The creation time. Format: yyyy-MM-dd'T'HH:mm:ss.SSS |
update_time |
String |
The update time. Format: yyyy-MM-dd'T'HH:mm:ss.SSS |
Status code: 400
Parameter |
Type |
Description |
---|---|---|
code |
String |
Definition Error code Range N/A |
message |
String |
Definition Error description Range N/A |
Status code: 500
Parameter |
Type |
Description |
---|---|---|
code |
String |
Definition Error code Range N/A |
message |
String |
Definition Error description Range N/A |
Example Requests
None
Example Responses
Status code: 200
Response to the request for querying an endpoint.
{ "endpoint" : { "id" : "ff80808169b445ab0169b541bc5c0000", "name" : "poi-17", "direction" : "inbound", "status" : "ACTIVE", "vpc_id" : "02443811-acf1-4c22-8f44-e3adf19f6097", "ipaddress_count" : 4, "resolver_rule_count" : 0, "create_time" : "2019-03-25T14:29:37.997", "update_time" : "2019-03-25T14:29:37.997" } }
Status Codes
Status Code |
Description |
---|---|
200 |
Response to the request for querying an endpoint. |
400 |
Error response |
500 |
Error response |
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.