Validating the Service of a Mesh
Function
This API is used to validate the service of a mesh.
Calling Method
For details, see Calling APIs.
Authorization Information
Each account has all the permissions required to call all APIs, but IAM users must be assigned the required permissions.
- If you are using role/policy-based authorization, see Permissions Policies and Supported Actions for details on the required permissions.
- If you are using identity policy-based authorization, the following identity policy-based permissions are required.
URI
POST /v2/meshes/{mesh_id}/namespaces/{namespace}/services/validate
| Parameter | Mandatory | Type | Description |
|---|---|---|---|
| mesh_id | Yes | String | Mesh ID |
| namespace | Yes | String | Namespace |
Request Parameters
| Parameter | Mandatory | Type | Description |
|---|---|---|---|
| X-Auth-Token | Yes | String | API calling can be authenticated using a token or AK/SK. If you use a token, this parameter is mandatory and must be set to the token. |
| Content-Type | Yes | String | Message body type (format) Range: |
| Parameter | Mandatory | Type | Description |
|---|---|---|---|
| validations | No | Array of ServiceValidation objects | Service validation result list of a mesh |
Response Parameters
Status code: 200
| Parameter | Type | Description |
|---|---|---|
| validations | Array of ServiceValidation objects | Service validation result list of a mesh |
| Parameter | Type | Description |
|---|---|---|
| serviceName | String | Service name |
| result | String | Service validation result |
| items | Array of ValidationItem objects | Service validation item |
| Parameter | Type | Description |
|---|---|---|
| name | String | Validation item name |
| result | String | Verification item result |
| errMsg | String | Validation error message |
Status code: 500
| Parameter | Type | Description |
|---|---|---|
| errorCode | String | Error code |
Example Requests
None
Example Responses
None
Status Codes
| Status Code | Description |
|---|---|
| 200 | The mesh service is validated. The validation result is returned. |
| 500 | Internal error. |
Error Codes
See 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