Help Center> Intelligent EdgeFabric> API Reference> API> Endpoint Management> Querying Details About an Endpoint

Querying Details About an Endpoint

Description

This API is used to query details about an endpoint.

URI

GET /v2/{project_id}/routemgr/endpoints/{endpoint_id}

Table 1 Path parameters

Parameter

Mandatory

Type

Description

project_id

Yes

String

Project ID.

endpoint_id

Yes

String

Endpoint ID.

Request Parameters

None

Response Parameters

If a status code 200 is returned:

Table 2 Response body parameters

Parameter

Type

Description

endpoint

EndpointResponse object

Endpoint details.

Table 3 EndpointResponse

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:

  • dis:

{"domain id":"user's domain id"}
  • servicebus:

{"service port":8080}
  • apigw:

{"domain id":"user's domain id"}

type

String

Endpoint type.

Enumeration values:

  • dis

  • servicebus

  • apigw

updated_at

String

Time when the endpoint is updated.

If a status code 401 is returned:

Table 4 Response body parameters

Parameter

Type

Description

error_code

String

Error code.

error_message

String

Error description.

If a status code 404 is returned:

Table 5 Response body parameters

Parameter

Type

Description

error_code

String

Error code.

error_message

String

Error description.

If a status code 500 is returned:

Table 6 Response body parameters

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:

{
  "endpoint" : {
    "name" : "dis_example",
    "description" : "",
    "type" : "dis",
    "properties" : {
      "domain_id" : "8fd3691d01f44badab03e28d81abd4ff"
    },
    "is_shared" : false,
    "id" : "e7d02d47-961d-4e65-9f15-856272983ca9",
    "project_id" : "d16e6eb6cc0d49a0941df2f31285757a",
    "created_at" : "2018-11-26T01:07:18Z",
    "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 404 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 information is successfully queried.

401

Error response.

404

Error response.

500

Error response.

Error Codes

See Error Codes.