Querying All Schema Information About a Microservice
Function
This API is used to query all schema information (including schemaId and summary) about a microservice.
URI
GET /v4/{project_id}/registry/microservices/{serviceId}/schemas
Parameter |
Type |
Mandatory |
Description |
---|---|---|---|
project_id |
String |
Yes |
Fixed value: default. |
serviceId |
String |
Yes |
Microservice ID, which must be unique. The value must be 1 to 64 characters long. Regular expression: ^.*$ |
Parameter |
Type |
Mandatory |
Description |
---|---|---|---|
withSchema |
String |
No |
Whether to query the schema content. Default value: 0. Options:
|
Request
Request parameters
None
Response
Response parameters
Table 3 describes the parameters.
Parameter |
Type |
Description |
---|---|---|
schemas |
Array of objects |
Struct list of all microservice schemas. For details, see Schema. |
Example
Example request
None
Example response
{ "schemas": [ { "schemaId": "xxxx", "schema": "xxxx", // A value is returned only when the value of withSchema in the URL is 1. By default, no value is returned. "summary": "abcd" } ] }
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