Help Center/ Cloud Service Engine/ API Reference/ CSE API/ Microservice Governance/ Querying a Dark Launch Rule of a Microservice
Updated on 2023-12-18 GMT+08:00

Querying a Dark Launch Rule of a Microservice

Function

This API is used to query a dark launch rule of a microservice.

URI

GET /v3/{project_id}/govern/route-rule/microservices/{service_name}

Table 1 Path Parameters

Parameter

Mandatory

Type

Description

project_id

Yes

String

Unique ID of a tenant's sub-project. The value contains 1 to 64 characters.

service_name

Yes

String

Microservice name.

Table 2 Query Parameters

Parameter

Mandatory

Type

Description

environment

No

String

Environment. If this parameter is left blank,<empty> is used.

app_id

No

String

Application. If this parameter is left blank, default is used.

Request Parameters

Table 3 Request header parameters

Parameter

Mandatory

Type

Description

X-Auth-Token

Yes

String

User token.

x-engine-id

Yes

String

Instance ID of an exclusive microservice engine.

X-Enterprise-Project-ID

Yes

String

Enterprise project ID.

Response Parameters

Status code: 200

Table 4 Response body parameters

Parameter

Type

Description

result

String

Result message.

Status code: 400

Table 5 Response body parameters

Parameter

Type

Description

error_code

String

Error code.

error_msg

String

Error message.

detail

String

Location details.

Example Requests

GET https://{endpoint}/v3/{project_id}/govern/route-rule/microservices/{service_name}

Example Responses

Status code: 200

OK

{
  "result" : "string"
}

Status Codes

Status Code

Description

200

OK

400

Bad Request

Error Codes

See CSE Error Codes.