Updating a Mesh
Function
This API is used to update 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
PUT /v2/projects/{project_id}/meshes/{mesh_id}
| Parameter | Mandatory | Type | Description |
|---|---|---|---|
| project_id | Yes | String | Project ID |
| mesh_id | Yes | String | Mesh ID |
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 |
|---|---|---|---|
| action | Yes | String | Mesh update action. Currently, only update is supported. |
| meshConfig | No | MeshConfig object | Mesh configuration to be updated |
| Parameter | Mandatory | Type | Description |
|---|---|---|---|
| proxyConfig | No | ProxyConfig object | Data plane configuration of a mesh |
| telemetryConfig | No | TelemetryConfig object | Observability configuration of a mesh |
| Parameter | Mandatory | Type | Description |
|---|---|---|---|
| includeIPRanges | No | String | IP address ranges that will be included for outbound traffic redirection. Use commas (,) to separate the IP address ranges. |
| excludeIPRanges | No | String | IP address ranges that will be excluded for outbound traffic redirection. Use commas (,) to separate the IP address ranges. |
| excludeOutboundPorts | No | String | Ports that will be excluded for outbound traffic redirection. Use commas (,) to separate the ports. |
| excludeInboundPorts | No | String | Ports that will be excluded for inbound traffic redirection. Use commas (,) to separate the ports. |
| includeOutboundPorts | No | String | Ports that will be included for outbound traffic redirection. Use commas (,) to separate the ports. |
| includeInboundPorts | No | String | Ports that will be included for inbound traffic redirection. Use commas (,) to separate the ports. |
| Parameter | Mandatory | Type | Description |
|---|---|---|---|
| metrics | No | Metric object | Application metric configuration, which is used to report mesh metrics. To enable this configuration, you need to install the Cloud Native Cluster Monitoring add-on in the cluster. |
| accessLogging | No | AccessLogging object | Access log configuration, which is used to report access logs of Istio proxies in a mesh. To enable this configuration, you need to install the Cloud Native Log Collection add-on in the cluster. |
| tracing | No | Tracing object | Tracing configuration, which is used to report traces in a mesh. |
| Parameter | Mandatory | Type | Description |
|---|---|---|---|
| aom | No | Array of Aom objects | AOM instance configuration |
| Parameter | Mandatory | Type | Description |
|---|---|---|---|
| lts | No | Array of LtsConfig objects | LTS configuration |
| Parameter | Mandatory | Type | Description |
|---|---|---|---|
| logGroupID | No | String | Log group ID of access logs |
| logStreamID | No | String | Log stream ID of access logs |
| Parameter | Mandatory | Type | Description |
|---|---|---|---|
| randomSamplingPercentage | No | Float | Tracing sampling rate |
| defaultProviders | No | Array of strings | Name of the default provider that tracing reports data to, which must match the name field in extensionProviders or use the preset provider apm-otel of ASM. If apm-otel is used, ensure that APM 2.0 is supported in the current region and the mesh version is later than 1.18. |
| extensionProviders | No | Array of TracingExtensionProvider objects | User-defined provider. Currently, Zipkin is supported. If Zipkin is used, ensure that the mesh version is 1.15 or later. |
| Parameter | Mandatory | Type | Description |
|---|---|---|---|
| name | No | String | Provider instance name |
| zipkin | No | ZipkinTracingProvider object | Provider's Zipkin configuration |
Response Parameters
Status code: 200
| Parameter | Type | Description |
|---|---|---|
| - | String | The mesh is updated. |
Status code: 400
| Parameter | Type | Description |
|---|---|---|
| errorCode | String | Error code |
Status code: 500
| Parameter | Type | Description |
|---|---|---|
| errorCode | String | Error code |
Example Requests
None
Example Responses
None
Status Codes
| Status Code | Description |
|---|---|
| 200 | The mesh is updated. |
| 400 | Verification failed due to incorrect parameters. |
| 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