Querying the Unique Service or Schema ID of a Microservice
Function
This API is used to query the unique service or schema ID of a microservice based on filter criteria.
URI
GET /v4/{project_id}/registry/existence
Parameter |
Type |
Mandatory |
Description |
---|---|---|---|
project_id |
String |
Yes |
Fixed value: default. |
Parameter |
Type |
Mandatory |
Description |
---|---|---|---|
type |
String |
Yes |
Request type. Options:
|
env |
String |
No |
Microservice environment. Value: development, testing, acceptance, or production. Default value: development. |
appId |
String |
Yes |
Application ID, which needs to be transferred when the resource type is microservice. The value must be 1 to 160 characters long. Regular expression: ^[a-zA-Z0-9]*$|^[a-zA-Z0-9][a-zA-Z0-9_\-.]*[a-zA-Z0-9]$ |
serviceName |
String |
Yes |
Microservice name, which needs to be transferred when the resource type is microservice. The value must be 1 to 128 characters long. Regular expression: ^[a-zA-Z0-9]*$|^[a-zA-Z0-9][a-zA-Z0-9_\-.]*[a-zA-Z0-9]$ |
version |
String |
Yes |
Microservice version, which needs to be transferred when the resource type is microservice. The value must be 1 to 64 characters long. Regular expression: ^[0-9]*$|^[0-9]+(\.[0-9]+)*$ |
serviceId |
String |
Yes |
Microservice ID, which needs to be transferred when the resource type is schema. The value must be 1 to 64 characters long. Regular expression: ^.*$ |
schemaId |
String |
Yes |
Schema ID, which needs to be transferred when the resource type is schema. The value must be 1 to 160 characters long. Regular expression: ^[a-zA-Z0-9]{1,160}$|^[a-zA-Z0-9][a-zA-Z0-9_\-.]{0,158}[a-zA-Z0-9]$ |
Request
None
Example
Example request
GET /v4/default/registry/existence
Example response
{ "serviceId": "string" }
Status Code
See Status Codes.
Error Code
See CSE Error Codes.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot