ACG 수정
- Print
- PDF
ACG 수정
- Print
- PDF
Article summary
Did you find this summary helpful?
Thank you for your feedback
The latest service changes have not yet been reflected in this content. We will update the content as soon as possible. Please refer to the Korean version for information on the latest updates.
ACG 정보를 수정합니다.
POST https://nsml.apigw.ntruss.com/nsml/v1/projects/{projectId}/acg
요청
요청 파라미터
필드명 | 타입 | 설명 | 비고 |
---|---|---|---|
projectId | String | Project ID | projectId, 프로젝트 생성시 자동 생성되는 unique한 값 |
요청 바디
필드명 | 타입 | 설명 | 비고 |
---|---|---|---|
addInBoundList | AddAcgRule | 추가할 Inbound ACG Rule | |
addOutBoundList | AddAcgRule | 추가할 Outbound ACG Rule | |
removeInBoundList | RemoveAcgRule | 삭제할 Inbound ACG Rule | |
removeOutBoundList | RemoveAcgRule | 삭제할 Outbound ACG Rule |
AddAcgRule
필드명 | 타입 | 설명 | 비고 |
---|---|---|---|
protocolTypeCode | String | 프로토콜 유형 | TCP , UDP , ICMP 중 한 가지 값 사용 |
ipBlock | String | ACG Rule을 적용할 IP 주소 블록 | ex) 10.0.0.1/32 |
portRange | String | 포트 범위 | 프로토콜이 TCP(6), UDP(17)인 경우만 사용 단일포트 (ex. 22) 포트범위 (ex. 1-65535) |
accessControlGroupRuleDescription | String | ACG Rule 설명 |
RemoveAcgRule
필드명 | 타입 | 설명 | 비고 |
---|---|---|---|
protocolTypeCode | String | 프로토콜 유형 | TCP , UDP , ICMP 중 한 가지 값 사용 |
ipBlock | String | ACG Rule을 적용할 IP 주소 블록 | ex) 10.0.0.1/32 |
portRange | String | 포트 범위 | 프로토콜이 TCP(6), UDP(17)인 경우만 사용 단일포트 (ex. 22) 포트범위 (ex. 1-65535) |
응답
응답 Status
HTTP Status | Desc |
---|---|
200 | OK |
400 | Bad Request |
401 | Unauthorized |
403 | Forbidden |
404 | Not Found |
406 | Not Accepted |
500 | Internal Server Error |
예시
요청 예시
POST /nsml/v1/projects/2mdnduoena36ekcv4v7/acg
Host: nsml.apigw.ntruss.com
accept: application/json
x-ncp-iam-access-key: {Access key}
x-ncp-apigw-signature-v2: {API GW signature}
x-ncp-apigw-timestamp: {timestamp}
x-ncp-apigw-api-key: {apigw-api-key}
{
"addInBoundList": [
{
"protocolTypeCode": "TCP",
"ipBlock": "10.0.0.1/32",
"portRange": "1-65535",
"accessControlGroupRuleDescription": "acg description",
}
],
"addOutBoundList": [],
"removeInBoundList": [],
"removeOutBoundList": [
{
"protocolTypeCode": "TCP",
"ipBlock": "10.0.0.2/32",
"portRange": "22",
}
],
}
Was this article helpful?