ACG 수정
    • PDF

    ACG 수정

    • PDF

    Article summary

    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
    

    요청

    요청 파라미터

    필드명타입설명비고
    projectIdStringProject IDprojectId, 프로젝트 생성시 자동 생성되는 unique한 값

    요청 바디

    필드명타입설명비고
    addInBoundListAddAcgRule추가할 Inbound ACG Rule
    addOutBoundListAddAcgRule추가할 Outbound ACG Rule
    removeInBoundListRemoveAcgRule삭제할 Inbound ACG Rule
    removeOutBoundListRemoveAcgRule삭제할 Outbound ACG Rule

    AddAcgRule

    필드명타입설명비고
    protocolTypeCodeString프로토콜 유형TCP, UDP, ICMP 중 한 가지 값 사용
    ipBlockStringACG Rule을 적용할 IP 주소 블록ex) 10.0.0.1/32
    portRangeString포트 범위프로토콜이 TCP(6), UDP(17)인 경우만 사용
    단일포트 (ex. 22)
    포트범위 (ex. 1-65535)
    accessControlGroupRuleDescriptionStringACG Rule 설명

    RemoveAcgRule

    필드명타입설명비고
    protocolTypeCodeString프로토콜 유형TCP, UDP, ICMP 중 한 가지 값 사용
    ipBlockStringACG Rule을 적용할 IP 주소 블록ex) 10.0.0.1/32
    portRangeString포트 범위프로토콜이 TCP(6), UDP(17)인 경우만 사용
    단일포트 (ex. 22)
    포트범위 (ex. 1-65535)

    응답

    응답 Status

    HTTP StatusDesc
    200OK
    400Bad Request
    401Unauthorized
    403Forbidden
    404Not Found
    406Not Accepted
    500Internal 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?

    Changing your password will log you out immediately. Use the new password to log back in.
    First name must have atleast 2 characters. Numbers and special characters are not allowed.
    Last name must have atleast 1 characters. Numbers and special characters are not allowed.
    Enter a valid email
    Enter a valid password
    Your profile has been successfully updated.