PUT acls
API情報
| HTTPメソッド | API名 | 目的 |
|---|---|---|
| PUT | acls_setting | ACL設定情報変更 |
- ACL情報を設定します。
個別パラメータ
URL
| フィールド | タイプ | 意味 |
|---|---|---|
| UrlScheme | String | URLスキーム 値: http, https |
HTTPリクエストボディ
- Aclsに、[]をセットするとACLの設定がクリアされます。
| フィールド | タイプ | 意味 |
|---|---|---|
| Acls | Array | ACL設定
|
| Acls.AclType | String | 設定: 許可又は拒否 値: allow, deny |
| Acls.Address | String | 対象IPアドレス 値:
|
レスポンス
| フィールド | タイプ | 意味 |
|---|---|---|
| Result.UrlScheme | String | URLスキーム 値: http, https |
| Result.Acls | Array | ACL設定
|
| Result.Acls.AclPriority | int | 優先順位 |
| Result.Acls.AclType | String | 設定: 許可又は拒否 値: allow, deny |
| Result.Acls.Address | String | 対象IPアドレス 値:
|
エラーコード
- このAPIに関する個別エラーはありません。
- 共通エラーコードはエラーレスポンスを参照してください。
制限
- ACLの設定は最大で100までです。
サンプル
リクエスト
PUT /r/(APIVersion)/(ServiceCode)/(UrlScheme)/acls_setting.json
Host: cac.api.iij.jp
Content-Type: application/json
Date: Mon, 20 Jan 2014 12:34:56 GMT
x-iijapi-Expire: (Expire)
x-iijapi-SignatureMethod: (SignatureMethod)
x-iijapi-SignatureVersion: (SignatureVersion)
Authorization: IIJAPI (AccessKeyId):(Signature)
{
"Acls": [
{
"AclType": "allow",
"Address": "192.0.2.1"
},
{
"AclType": "deny",
"Address": "fe80::a00:27ff:fe88:9e61"
},
{
"AclType": "allow",
"Address": "192.0.2.0/24"
},
{
"AclType": "allow",
"Address": "all"
}
]
}
レスポンスボディ
{ |
"Result": { |
"RequestId": "xxxxxxxx-xxxxxxxx-xxxxxxxx-xxxxxxxx-xxxxxxxx", |
"ServiceCode": "cac########", |
"UrlScheme": "http", |
"Acls": [ |
{ |
"AclPriority": 1, |
"AclType": "allow", |
"Address": "192.0.2.1" |
}, |
{ |
"AclPriority": 2, |
"AclType": "deny", |
"Address": "fe80::a00:27ff:fe88:9e61" |
}, |
{ |
"AclPriority": 3, |
"AclType": "allow", |
"Address": "192.0.2.0/24" |
}, |
{ |
"AclPriority": 4, |
"AclType": "allow", |
"Address": "all" |
} |
] |
} |
} |