調(diào)用CreateASMGateway創(chuàng)建ASM網(wǎng)關(guān)。
調(diào)試
您可以在OpenAPI Explorer中直接運(yùn)行該接口,免去您計(jì)算簽名的困擾。運(yùn)行成功后,OpenAPI Explorer可以自動(dòng)生成SDK代碼示例。
授權(quán)信息
當(dāng)前API暫無(wú)授權(quán)信息透出。
請(qǐng)求參數(shù)
名稱(chēng) | 類(lèi)型 | 必填 | 描述 | 示例值 |
---|---|---|---|---|
ServiceMeshId | string | 是 | ASM 實(shí)例 ID | cb8963379255149cb98c8686f274x**** |
IstioGatewayName | string | 否 | ASM 網(wǎng)關(guān)名稱(chēng) | ingressgateway |
Body | string | 否 | 創(chuàng)建的 ASM 網(wǎng)關(guān)的 YAML 內(nèi)容 | {"apiVersion":"istio.alibabacloud.com/v1beta1","kind":"IstioGateway","metadata":{"name":"ingressgateway","namespace":"istio-system"},"spec":{"gatewayType":"ingress","clusterIds":["xxxxx"],"ports":[{"name":"http-0","port":80,"targetPort":80,"protocol":"TCP"},{"name":"https-1","port":443,"targetPort":443,"protocol":"TCP"}],"serviceAnnotations":{"service.beta.kubernetes.io/alicloud-loadbalancer-address-type":"internet","service.beta.kubernetes.io/alibaba-cloud-loadbalancer-spec":"slb.s1.small"},"replicaCount":2,"resources":{"limits":{"cpu":"2","memory":"4G"},"requests":{"cpu":"200m","memory":"256Mi"}},"serviceType":"LoadBalancer","maxReplicas":2,"minReplicas":2}} |
返回參數(shù)
示例
正常返回示例
JSON
格式
{
"RequestId": "BD65C0AD-D3C6-48D3-8D93-38D2015C****"
}
錯(cuò)誤碼
訪(fǎng)問(wèn)錯(cuò)誤中心查看更多錯(cuò)誤碼。