呼叫 CreateBasicEndpointGroup 介面建立基礎型全球加速執行個體的終端節點組。
介面說明
- CreateBasicEndpointGroup 介面屬於非同步介面,即系統會先返回一個終端節點組 ID,但終端節點組未建立完成,系統後台的建立任務仍在進行。您可以呼叫 GetBasicEndpointGroup 查詢終端節點組的狀態:
當終端節點組處於 init 狀態時,表示終端節點組正在建立中,在該狀態下,您只能執行查詢操作,不能執行其他操作。
當終端節點組處於 active 狀態時,表示終端節點組建立完成。
CreateBasicEndpointGroup 介面不支援在同一個基礎型全球加速執行個體內並發建立終端節點組。
調試
您可以在OpenAPI Explorer中直接運行該介面,免去您計算簽名的困擾。運行成功後,OpenAPI Explorer可以自動產生SDK程式碼範例。
調試
授權資訊
|
操作 |
存取層級 |
資源類型 |
條件關鍵字 |
關聯操作 |
|
ga:CreateBasicEndpointGroup |
create |
*BasicEndpointGroup
|
無 | 無 |
請求參數
|
名稱 |
類型 |
必填 |
描述 |
樣本值 |
| RegionId |
string |
是 |
基礎型全球加速執行個體所在的地域 ID,僅取值:cn-hangzhou。 |
cn-hangzhou |
| ClientToken |
string |
否 |
用戶端 Token,用於保證請求的冪等性。 從您的用戶端生成一個參數值,確保不同請求間該參數值唯一。ClientToken 只支援 ASCII 字元。 說明
若您未指定,則系統自動使用 API 請求的 RequestId 作為 ClientToken 標識。每次 API 請求的 RequestId 不一樣。 |
123e4567-e89b-12d3-a456-426655440000 |
| AcceleratorId |
string |
是 |
基礎型全球加速執行個體 ID。 |
ga-bp17frjjh0udz4qz**** |
| EndpointGroupRegion |
string |
是 |
基礎型全球加速執行個體的終端節點組所在的地域 ID。 您可以透過呼叫 ListAvailableBusiRegions 介面取得地域 ID。 |
cn-shanghai |
| Name |
string |
否 |
基礎型全球加速執行個體的終端節點組的名稱。 名稱長度為 1~128 個字元,以大小寫字母或中文開頭,可包含數字、半形句號(.)底線(_)和短劃線(-)。 |
group1 |
| Description |
string |
否 |
基礎型全球加速執行個體的終端節點組描述資訊。 描述長度最大 200 字元,不能以 |
BasicEndpointGroup |
| EndpointType |
string |
否 |
終端節點類型。取值:
|
ENI |
| EndpointAddress |
string |
否 |
終端節點的地址。 |
eni-bp1a05txelswuj8g**** |
| EndpointSubAddress |
string |
否 |
終端節點輔助地址。 當加速 IP 繫結到 ECS 輔助私網 IP 地址或 ENI 輔助私網 IP 時,需配置該參數。
|
172.16.XX.XX |
返回參數
|
名稱 |
類型 |
描述 |
樣本值 |
|
object |
返回資訊列表。 |
||
| EndpointGroupId |
string |
基礎型全球加速執行個體的終端節點組 ID。 |
epg-bp1dmlohjjz4kqaun**** |
| RequestId |
string |
請求 ID。 |
04F0F334-1335-436C-A1D7-6C044FE73368 |
樣本
正常返回樣本
JSON格式
{
"EndpointGroupId": "epg-bp1dmlohjjz4kqaun****",
"RequestId": "04F0F334-1335-436C-A1D7-6C044FE73368"
}
錯誤碼
|
HTTP status code |
錯誤碼 |
錯誤資訊 |
描述 |
|---|---|---|---|
| 400 | Resource.QuotaFull | The resource quota is exceeded. | |
| 400 | NoPermission.EnableHealthCheck | You do not have permission to enable health check. | |
| 400 | NotExist.Accelerator | The accelerated instance does not exist. | |
| 400 | StateError.Accelerator | The state of the accelerated instance is invalid. | |
| 400 | NotExist.BusinessRegion | The business region does not exist. | |
| 400 | NotExist.BasicBandwidthPackage | You must specify the basic bandwidth package. | |
| 400 | Exist.EndpointGroup | The endpoint group already exists. | |
| 400 | QuotaExceeded.EndpointGroup | The number of endpoint group exceeds the limit. | |
| 400 | EcsCannotBind.BasicEndpoint | The ECS instance has already been associated with another EIP. | |
| 400 | InvalidateRegion.BasicAccelerator | The region of the endpoint group and the acceleration region cannot be the same. | |
| 500 | UnknownError | An error occurred while processing your request. Please try again. If the error persists, please submit a ticket. |
訪問錯誤中心查看更多錯誤碼。
變更歷史
更多資訊,參考變更詳情。