Updates the configurations of an Alibaba Cloud Service Mesh (ASM) instance.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer dynamically generates the sample code of the operation for different SDKs.

Request parameters

Parameter Type Required Example Description
ServiceMeshId String Yes cb8963379255149cb98c8686f274x****

The ID of the ASM instance.

Tracing Boolean No false

Specifies whether to enable the tracing feature. To enable this feature, make sure that you have activated Tracing Analysis.

Valid values: true and false. Default value: false.

TraceSampling Float No 100

The sampling percentage of tracing.

LocalityLoadBalancing Boolean No true

Specifies whether to route traffic to the nearest instance.

Valid values: true and false. Default value: false.

Telemetry Boolean No false

Specifies whether to enable Prometheus monitoring. We recommend that you use Prometheus Service of Application Real-Time Monitoring Service (ARMS).

OpenAgentPolicy Boolean No false

Specifies whether to enable the Open Policy Agent (OPA) plug-in.

Valid values: true and false. Default value: false.

OPALogLevel String No info

The log level of the OPA container.

OPARequestCPU String No 1

The number of CPU cores that are requested by the OPA container.

OPARequestMemory String No 512Mi

The size of the memory that is requested by the OPA container.

OPALimitCPU String No 2

The maximum number of CPU cores that are available to the OPA container.

OPALimitMemory String No 1024Mi

The maximum size of the memory that is available to the OPA container.

EnableAudit Boolean No false

Specifies whether to enable the mesh audit feature. To enable this feature, make sure that you have activated Log Service.

Valid values: true and false. Default value: false.

AuditProject String No mesh-log-c08ba3fd1e64xxb0f8cc1ad8****

The name of the Log Service project that is used for mesh audit.

Default value: mesh-log-{ASM instance ID}.

ClusterDomain String No cluster.local

The domain name of the cluster.

CustomizedZipkin Boolean No false

Specifies whether to use a user-managed Zipkin system.

OutboundTrafficPolicy String No ALLOW_ANY

The outbound traffic policy.

ProxyRequestCPU String No 100m

The number of CPU cores that are requested.

ProxyRequestMemory String No 128Mi

The size of the memory that is requested.

ProxyLimitCPU String No 2000m

The maximum number of CPU cores.

ProxyLimitMemory String No 1024Mi

The maximum size of the memory.

IncludeIPRanges String No *

The IP addresses that are denied to access external services.

EnableNamespacesByDefault Boolean No false

Specify whether to enable automatic sidecar injection for all namespaces.

AutoInjectionPolicyEnabled Boolean No false

Specify whether to enable automatic sidecar injection by using annotations.

SidecarInjectorRequestCPU String No 1000m

The number of CPU cores that are requested by the sidecar injector pod.

SidecarInjectorRequestMemory String No 512Mi

The size of the memory that is requested by the sidecar injector pod.

SidecarInjectorLimitCPU String No 4000m

The maximum number of CPU cores that are available to the sidecar injector pod.

SidecarInjectorLimitMemory String No 2048Mi

The maximum size of the memory that is available to the sidecar injector pod.

SidecarInjectorWebhookAsYaml String No null

Other configurations of automatic sidecar injection, in the YAML format.

CniEnabled Boolean No false

Specifies whether to enable the Container Network Interface (CNI) plug-in.

CniExcludeNamespaces String No kube-system

The namespaces to be excluded for the CNI plug-in.

OpaEnabled Boolean No false

Specifies whether to enable the OPA plug-in.

Http10Enabled Boolean No false

Specifies whether to enable the support for HTTP 1.0.

KialiEnabled Boolean No false

Specifies whether to enable Kiali. To enable Kiali, make sure that Prometheus monitoring is enabled. If Prometheus monitoring is disabled, the value of this parameter must be false.

CustomizedPrometheus Boolean No false

Specifies whether to use a custom Prometheus instance.

PrometheusUrl String No http://prometheus:9090

The endpoint of Prometheus monitoring. If you use Prometheus Service of Application Real-Time Monitoring Service (ARMS), set this parameter to the endpoint of ARMS.

AccessLogEnabled Boolean No false

Specifies whether to collect access logs.

Response parameters

Parameter Type Example Description
RequestId String BD65C0AD-D3C6-48D3-8D93-38D2015C****

The ID of the request.

Examples

Sample requests

http(s)://[Endpoint]/?Action=UpdateMeshFeature
&ServiceMeshId=cb8963379255149cb98c8686f274x****
&<Common request parameters>

Sample success responses

XML format

<RequestId>BD65C0AD-D3C6-48D3-8D93-38D2015C****</RequestId>

JSON format

null

Error codes

For a list of error codes, visit the API Error Center.