建立全域IP白名單模板。
調試
您可以在OpenAPI Explorer中直接運行該介面,免去您計算簽名的困擾。運行成功後,OpenAPI Explorer可以自動產生SDK程式碼範例。
調試
授權資訊
|
操作 |
存取層級 |
資源類型 |
條件關鍵字 |
關聯操作 |
|
dds:CreateGlobalSecurityIPGroup |
create |
*全部資源
|
無 | 無 |
請求參數
|
名稱 |
類型 |
必填 |
描述 |
樣本值 |
| RegionId |
string |
是 |
地區 ID,您可以調用 DescribeRegions 查詢。 |
cn-hangzhou |
| GlobalIgName |
string |
是 |
IP 白名單模板名稱。IP 白名單模板名稱需滿足如下要求:
|
aizy |
| GIpList |
string |
是 |
白名單模板內的 IP 位址。 說明
多個 IP 位址需要用英文逗號隔開,所有 IP 白名單累積支援添加 1000 個 IP 位址或位址區段。 |
27.18.86.18,183.92.40.129 |
返回參數
|
名稱 |
類型 |
描述 |
樣本值 |
|
object |
|||
| RequestId |
string |
請求 ID。 |
F8CA8312-530A-413A-9129-F2BB32A8D404 |
| GlobalSecurityIPGroup |
array<object> |
IP 白名單模板列表 |
|
|
object |
IP 白名單模板 |
||
| GlobalSecurityGroupId |
string |
IP 白名單模板 ID。 |
g-2ifynl1jfkdlhhxgva3q |
| GlobalIgName |
string |
IP 白名單模板名稱。IP 白名單模板名稱需滿足如下要求:
|
developer |
| GIpList |
string |
白名單模板內的 IP 位址。 說明
多個 IP 位址需要用英文逗號隔開,所有 IP 白名單累積支援添加 1000 個 IP 位址或位址區段。 |
111.207.194.217,61.149.7.154 |
| RegionId |
string |
地區 ID。 |
cn-hangzhou |
樣本
正常返回樣本
JSON格式
{
"RequestId": "F8CA8312-530A-413A-9129-F2BB32A8D404",
"GlobalSecurityIPGroup": [
{
"GlobalSecurityGroupId": "g-2ifynl1jfkdlhhxgva3q",
"GlobalIgName": "developer",
"GIpList": "111.207.194.217,61.149.7.154",
"RegionId": "cn-hangzhou"
}
]
}
錯誤碼
|
HTTP status code |
錯誤碼 |
錯誤資訊 |
描述 |
|---|---|---|---|
| 400 | RequiredParam.NotFound | Required input param is not found. | |
| 400 | InvalidSecurityIPList.QuotaExceeded | Specified security IP list is not valid: Exceeding the allowed amount of IP address in the list. | |
| 400 | InvalidSecurityIPList.Format | Specified security IP list format is not valid. | |
| 400 | InvalidSecurityIPList.Duplicate | Specified security IP list is not valid: Duplicate IP address in the list | |
| 404 | InvalidUser.NotFound | Specified user does not exist. |
訪問錯誤中心查看更多錯誤碼。
變更歷史
更多資訊,參考變更詳情。