Adds one or more domain names for an Alibaba Cloud Service Mesh (ASM) gateway.

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
Action String Yes CreateIstioGatewayDomains

The operation that you want to perform. Set the value to CreateIstioGatewayDomains.

ServiceMeshId String Yes c08ba3fd1e6484b0f8cc1ad8fe10d****

The ID of the ASM instance.

IstioGatewayName String Yes ingressgateway

The name of the ASM gateway.

Hosts String Yes example.com,demo.com

The domain names of the one or more hosts that are exposed by the ASM gateway. Separate multiple domain names with commas (,).

Number Integer Yes 443

The port that is provided by the ASM gateway.

PortName String Yes http-demo

The name of the port.

Protocol String Yes HTTPS

The type of the protocol. Valid values: HTTP, HTTPS, GRPC, HTTP2, MONGO, TCP, and TLS.

Credential String No bookinfo-secret

The name of the secret that contains the Transport Layer Security (TLS) certificate and certificate authority (CA) certificate.

ForceHttps Boolean No true

Specifies whether to forcibly use TLS to protect connection security.

  • true: forcibly uses TLS to protect connection security.
  • false: does not forcibly use TLS to protect connection security.
Namespace String No default

The name of the namespace.

Limit String No 10

The maximum number of ASM gateways to query.

Response parameters

Parameter Type Example Description
RequestId String 31d3a0f0-07ed-4f6e-9004-1804498c****

The ID of the request.

Examples

Sample requests

http(s)://[Endpoint]/?Action=CreateIstioGatewayDomains
&ServiceMeshId=c08ba3fd1e6484b0f8cc1ad8fe10d****
&IstioGatewayName=ingressgateway
&Hosts=example.com,demo.com
&Number=443
&PortName=http-demo
&Protocol=HTTPS
&Credential=bookinfo-secret
&ForceHttps=true
&Namespace=default
&Limit=10
&<Common request parameters>

Sample success responses

XML format

HTTP/1.1 200 OK
Content-Type:application/xml

<CreateIstioGatewayDomainsResponse>
    <RequestId>31d3a0f0-07ed-4f6e-9004-1804498c****</RequestId>
</CreateIstioGatewayDomainsResponse>

JSON format

HTTP/1.1 200 OK
Content-Type:application/json

{
  "RequestId" : "31d3a0f0-07ed-4f6e-9004-1804498c****"
}

Error codes

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