Querying a List of Endpoints
Description
This API is used to obtain details about all endpoints.
If no query parameter is specified, information about all endpoints under the account and all shared endpoints in the system is returned.
If more than one query parameter is specified, information about the endpoints that meet all the specified parameters is returned.
URI
GET /v2/{project_id}/routemgr/endpoints
| Parameter | Mandatory | Type | Description |
|---|---|---|---|
| project_id | Yes | String | Project ID. |
| Parameter | Mandatory | Type | Description |
|---|---|---|---|
| name | No | String | Endpoint name. |
| type | No | String | Endpoint type. Enumeration values:
|
| is_shared | No | Boolean | Whether the endpoint is shared. |
Request Parameters
None
Response Parameters
If a status code 200 is returned:
| Parameter | Type | Description |
|---|---|---|
| count | Long | Number of endpoints that meet the conditions. |
| endpoints | Array of EndpointResponse objects | Endpoint list. |
| Parameter | Type | Description |
|---|---|---|
| created_at | String | Time when the endpoint is created. |
| description | String | Endpoint description. The value contains a maximum of 255 characters. The following characters are not allowed: ^~#$%&*<>()[]{}'"\ |
| id | String | Endpoint ID. |
| ief_instance_id | String | ID of a platinum service instance. If this parameter is left blank, the service instance is a professional service instance. |
| is_shared | Boolean | Whether the endpoint is shared. |
| name | String | Endpoint name. The value contains a maximum of 64 characters. Only letters, digits, underscores (_), and hyphens (-) are allowed. The endpoint name must be unique under an account. |
| project_id | String | Project ID. |
| properties | Object | Endpoint properties, which need to be displayed externally. Example:
{"domain id":"user's domain id"}
{"service port":8080}
{"domain id":"user's domain id"} |
| type | String | Endpoint type. Enumeration values:
|
| updated_at | String | Time when the endpoint is updated. |
If a status code 401 is returned:
| Parameter | Type | Description |
|---|---|---|
| error_code | String | Error code. |
| error_message | String | Error description. |
If a status code 500 is returned:
| Parameter | Type | Description |
|---|---|---|
| error_code | String | Error code. |
| error_message | String | Error description. |
Request Examples
None
Response Examples
If a status code 200 is returned:
{
"count" : 4,
"endpoints" : [ {
"created_at" : "2018-11-26T00:52:47Z",
"description" : "",
"id" : "19a5cbc3-d25e-4706-aa39-a1fc0e3c042c",
"is_shared" : true,
"name" : "SystemREST",
"project_id" : "e632aba927ea4ac2b575ec1603d56f10",
"properties" : {
"public" : "10.154.72.82:8883"
},
"type" : "rest",
"updated_at" : "2018-11-26T00:52:47Z"
}, {
"created_at" : "2018-11-26T00:52:54Z",
"description" : "",
"id" : "87b1e30f-c574-46ff-84f8-f5a0962453f5",
"is_shared" : true,
"name" : "SystemEventBus",
"project_id" : "e632aba927ea4ac2b575ec1603d56f10",
"properties" : { },
"type" : "eventbus",
"updated_at" : "2018-11-26T00:52:54Z"
}, {
"created_at" : "2018-11-26T00:52:46Z",
"description" : "",
"id" : "88626dd0-0616-47c0-9980-e702e0fb8f7c",
"is_shared" : true,
"name" : "SystemMQTT",
"project_id" : "e632aba927ea4ac2b575ec1603d56f10",
"properties" : {
"public" : "10.154.72.82:8883"
},
"type" : "mqtt",
"updated_at" : "2018-11-26T00:52:46Z"
}, {
"created_at" : "2018-11-26T01:07:18Z",
"description" : "",
"id" : "e7d02d47-961d-4e65-9f15-856272983ca9",
"is_shared" : false,
"name" : "dis_example",
"project_id" : "d16e6eb6cc0d49a0941df2f31285757a",
"properties" : {
"domain_id" : "8fd3691d01f44badab03e28d81abd4ff"
},
"type" : "dis",
"updated_at" : "2018-11-26T01:07:18Z"
} ]
} If a status code 401 is returned:
{
"error_code" : "IEF.310001",
"error_message" : "XXXXXXXXXX"
} If a status code 500 is returned:
{
"error_code" : "IEF.310001",
"error_message" : "XXXXXXXXXX"
} Status Codes
| Status Code | Description |
|---|---|
| 200 | The endpoint list is successfully queried. |
| 401 | Error response. |
| 500 | Error response. |
Error Codes
See Error Codes.
Last Article: Endpoint Management
Next Article: Creating an Endpoint
Did this article solve your problem?
Thank you for your score!Your feedback would help us improve the website.