deleteCloudPostgresqlInstance
    • PDF

    deleteCloudPostgresqlInstance

    • PDF

    기사 요약

    Cloud DB for PostgreSQL 인스턴스를 삭제합니다.

    명령어

    명령어 구문은 다음과 같습니다.

    ncloud vpostgresql deleteCloudPostgresqlInstance [regionCode] [cloudPostgresqlInstanceNo] [output]
    

    파라미터

    파라미터에 대한 설명은 다음과 같습니다.

    파라미터타입필수 여부설명제약 사항
    regionCodeStringN리전 코드
    - regionCode는 getRegionList 액션을 통해 획득
    - default: getRegionList 조회 결과의 첫 번째 리전을 선택
    -
    cloudPostgresqlInstanceNoStringYCloud DB for PostgreSQL 인스턴스 번호
    - Read Replica 서버가 있는 경우 삭제 불가
    - cloudPostgresqlInstanceNo는 getCloudPostgresqlInstanceList 액션을 통해서 획득
    -
    outputStringN응답 결과의 포맷 타입
    - options: xml | json
    - default: json
    -

    응답

    응답 데이터 타입

    • CloudPostgresqlInstanceList 타입
    CloudPostgresqlInstanceList extends CommonResponse설명
    private Integer totalRows;조회된 목록의 총 개수
    private List<CloudPostgresqlInstance> cloudPostgresqlInstanceList = new ArrayList<>();Cloud DB for PostgreSQL 인스턴스 목록
    • CloudPostgresqlInstance 타입
    CloudPostgresqlInstance설명
    private String cloudPostgresqlInstanceNo;Cloud DB for PostgreSQL 인스턴스 번호
    private String cloudPostgresqlServiceName;Cloud DB for PostgreSQL 서비스 이름
    private String cloudPostgresqlInstanceStatusName;Cloud DB for PostgreSQL 인스턴스 상태 이름
    - creating
    - deleted
    - deleting
    - downgrading
    - pending
    - recovering
    - reinstalling
    - restarting
    - running
    - settingup
    - shuttingdown
    - stopped
    - upgrading
    private CommonCode cloudPostgresqlInstanceStatus;Cloud DB for PostgreSQL 인스턴스 상태 코드
    - INIT (initiate)
    - CREAT (created)
    - DEL (deleted)
    private CommonCode cloudPostgresqlInstanceOperation;Cloud DB for PostgreSQL 인스턴스 Operation 코드
    - CREAT (create)
    - DEL (delete)
    - FO (failover)
    - NULL (no operation)
    - SETUP (setup)
    - UPGD (upgrade)
    - DWGD (downgrade)
    - BKP (backup)
    private String cloudPostgresqlImageProductCode;Cloud DB for PostgreSQL 이미지 상품 코드
    private String engineVersion;Cloud DB for PostgreSQL 엔진 버전
    private String generationCode;세대코드
    private String license;Cloud DB for PostgreSQL 라이선스
    private Integer cloudPostgresqlPort;Cloud DB for PostgreSQL 포트
    private Boolean isHa;고가용성 여부
    private Boolean isMultiZone;멀티존 여부
    private Boolean isBackup;백업 여부
    private Integer backupFileRetentionPeriod;백업 파일 보관 기간
    private String backupTime;백업 시간
    private Date createDate;생성일자
    private AccessControlGroupNoList accessControlGroupNoList;ACG 번호 목록
    private CloudPostgresqlConfigList cloudPostgresqlConfigList;Cloud DB for PostgreSQL Config 목록
    private List<CloudPostgresqlServerInstance> cloudPostgresqlServerInstanceList;Cloud DB for PostgreSQL 서버 인스턴스 목록
    • AccessControlGroupNoList 타입
    AccessControlGroupNoList설명
    private List<String> accessControlGroupNoList = new ArrayList<>();ACG 번호 목록
    • CloudPostgresqlConfigList 타입
    CloudPostgresqlConfigList설명
    private List<String> cloudPostgresqlConfigList = new ArrayList<>();Cloud DB for PostgreSQL Config 목록
    • CloudPostgresqlServerInstance 타입
    CloudPostgresqlServerInstance설명
    private String cloudPostgresqlServerInstanceNo;Cloud DB for PostgreSQL 서버 인스턴스 번호
    private String cloudPostgresqlServerName;Cloud DB for PostgreSQL 서버 이름
    private CommonCode cloudPostgresqlServerRole;Cloud DB for PostgreSQL 서버 역할
    private String cloudPostgresqlServerInstanceStatusName;Cloud DB for PostgreSQL 서버 인스턴스 상태 이름
    - creating
    - deleted
    - deleting
    - downgrading
    - pending
    - recovering
    - reinstalling
    - restarting
    - running
    - settingup
    - shuttingdown
    - stopped
    - upgrading
    - downgrading
    private CommonCode cloudPostgresqlServerInstanceStatus;Cloud DB for PostgreSQL 서버 인스턴스 상태 코드
    - DEL (deleted)
    - PEND (pending)
    - RUN (running)
    - STOP (stopped)
    - FSTOP (failure stopped)
    private CommonCode cloudPostgresqlServerInstanceOperation;Cloud DB for PostgreSQL 서버 인스턴스 Operation 코드
    - NOOP (no operation)
    - CREAT (create)
    - START (start)
    - RSTRT (restart)
    - SETUP (setup)
    - STOP (stop)
    - FO (failover)
    - DEL (delete)
    - UPGD (upgrade)
    - DWGD (downgrade)
    - RISTL (reinstall)
    private String cloudPostgresqlProductCode;Cloud DB for PostgreSQL 상품 코드
    private String regionCode;리전 코드
    private String zoneCode;Zone 코드
    private String vpcNo;VPC 번호
    private String subnetNo;Subnet 번호
    private Boolean isPublicSubnet;Public Subnet 여부
    private String publicDomain;공인 도메인명
    private String privateDomain;사설 도메인명
    private String privateIp;사설 IP
    private CommonCode dataStorageType;데이터 스토리지 타입
    private Boolean isStorageEncryption;데이터 스토리지 암호화 여부
    private Long dataStorageSize;데이터 스토리지 사이즈
    private Long usedDataStorageSize;사용중인 데이터 스토리지 사이즈
    private Integer cpuCount;CPU 개수
    private Long memorySize;메모리 사이즈
    private Date uptime;VM 부팅 완료 시간
    private Date createDate;생성일자

    예시

    호출과 응답 예시를 설명합니다.

    호출 예시

    호출 예시는 다음과 같습니다.

    ncloud vpostgresql deleteCloudPostgresqlInstance --regionCode FKR --cloudPostgresqlInstanceNo ****925
    

    응답 예시

    응답 예시는 다음과 같습니다.

    응답 결과 포맷 타입(output)이 json 일 때

    {
      "deleteCloudPostgresqlInstanceResponse": {
        "requestId": "53ed7e6b-ed9b-4703-bbdb-771266cf4b09",
        "returnCode": 0,
        "returnMessage": "success",
        "totalRows": 1,
        "cloudPostgresqlInstanceList": [
          {
            "cloudPostgresqlInstanceNo": "****925",
            "cloudPostgresqlServiceName": "test-****",
            "cloudPostgresqlInstanceStatusName": "deleted",
            "cloudPostgresqlInstanceStatus": {
              "code": "DEL",
              "codeName": "CLOUD DATABASE(VPC) Deleted State"
            },
            "cloudPostgresqlInstanceOperation": {
              "code": "NULL",
              "codeName": "CLOUD DATABASE(VPC) Null OP"
            },
            "cloudPostgresqlImageProductCode": "SW.VPGSL.OS.LNX64.CNTOS.0708.PGSQL.133.B050",
            "engineVersion": "PostgreSQL 13.3",
            "generationCode": "G2",
            "license": "PostgreSQL License",
            "cloudPostgresqlPort": 15432,
            "isHa": true,
            "isMultiZone": true,
            "isBackup": true,
            "backupFileRetentionPeriod": 10,
            "backupTime": "02:00",
            "createDate": "2021-08-30T18:00:00+0900",
            "accessControlGroupNoList": [
              "****48"
            ],
            "cloudPostgresqlConfigList": [
                "sample_config=sample_value"
            ],
            "cloudPostgresqlServerInstanceList": [
              {
                "cloudPostgresqlServerInstanceNo": "****926",
                "cloudPostgresqlServerName": "test-****-001-gcb",
                "cloudPostgresqlServerRole": {
                  "code": "M",
                  "codeName": "Primary"
                },
                "cloudPostgresqlServerInstanceStatusName": "deleted",
                "cloudPostgresqlServerInstanceStatus": {
                  "code": "DEL",
                  "codeName": "CLOUD DATABASE(VPC) Server Deleted State"
                },
                "cloudPostgresqlServerInstanceOperation": {
                  "code": "NOOP",
                  "codeName": "CLOUD DATABASE(VPC) Server Null OP"
                },
                "cloudPostgresqlProductCode": "SVR.VPGSL.DBSVR.STAND.C002.M004.NET.SSD.B050.G001",
                "regionCode": "FKR",
                "zoneCode": "FKR-1",
                "vpcNo": "****87",
                "subnetNo": "****49",
                "isPublicSubnet": true,
                "privateDomain": "pg-****.vpc-cdb-fkr.fin-ntruss.com",
                "privateIp": "***.***.***.***",
                "dataStorageType": {
                  "code": "SSD",
                  "codeName": "SSD"
                },
                "isStorageEncryption": true,
                "dataStorageSize": 10737418240,
                "usedDataStorageSize": 4365676544,
                "cpuCount": 2,
                "memorySize": 4294967296,
                "uptime": "2021-08-30T18:10:00+0900",
                "createDate": "2021-08-30T18:00:00+0900"
              },
              {
                "cloudPostgresqlServerInstanceNo": "****932",
                "cloudPostgresqlServerName": "test-****-002-gcc",
                "cloudPostgresqlServerRole": {
                  "code": "H",
                  "codeName": "Secondary"
                },
                "cloudPostgresqlServerInstanceStatusName": "deleted",
                "cloudPostgresqlServerInstanceStatus": {
                  "code": "DEL",
                  "codeName": "CLOUD DATABASE(VPC) Server Deleted State"
                },
                "cloudPostgresqlServerInstanceOperation": {
                  "code": "NOOP",
                  "codeName": "CLOUD DATABASE(VPC) Server Null OP"
                },
                "cloudPostgresqlProductCode": "SVR.VPGSL.DBSVR.STAND.C002.M004.NET.SSD.B050.G001",
                "regionCode": "FKR",
                "zoneCode": "FKR-2",
                "vpcNo": "****87",
                "subnetNo": "****51",
                "isPublicSubnet": true,
                "privateDomain": "pg-****.vpc-cdb-fkr.fin-ntruss.com",
                "privateIp": "***.***.***.***",
                "dataStorageType": {
                  "code": "SSD",
                  "codeName": "SSD"
                },
                "isStorageEncryption": true,
                "dataStorageSize": 10737418240,
                "usedDataStorageSize": 4365430784,
                "cpuCount": 2,
                "memorySize": 4294967296,
                "uptime": "2021-08-30T18:10:00+0900",
                "createDate": "2021-08-30T18:00:00+0900"
              }
            ]
          }
        ]
      }
    }
    

    응답 결과 포맷 타입(output)이 xml 일 때

    <deleteCloudPostgresqlInstanceResponse>
        <requestId>53ed7e6b-ed9b-4703-bbdb-771266cf4b09</requestId>
        <returnCode>0</returnCode>
        <returnMessage>success</returnMessage>
        <totalRows>1</totalRows>
        <cloudPostgresqlInstanceList>
            <cloudPostgresqlInstance>
                <cloudPostgresqlInstanceNo>****925</cloudPostgresqlInstanceNo>
                <cloudPostgresqlServiceName>test-****</cloudPostgresqlServiceName>
                <cloudPostgresqlInstanceStatusName>deleted</cloudPostgresqlInstanceStatusName>
                <cloudPostgresqlInstanceStatus>
                    <code>DEL</code>
                    <codeName>CLOUD DATABASE(VPC) Deleted State</codeName>
                </cloudPostgresqlInstanceStatus>
                <cloudPostgresqlInstanceOperation>
                    <code>NULL</code>
                    <codeName>CLOUD DATABASE(VPC) Null OP</codeName>
                </cloudPostgresqlInstanceOperation>
                <cloudPostgresqlImageProductCode>SW.VPGSL.OS.LNX64.CNTOS.0708.PGSQL.133.B050</cloudPostgresqlImageProductCode>
                <engineVersion>PostgreSQL 13.3</engineVersion>
                <generationCode>G2</generationCode>
                <license>PostgreSQL License</license>
                <cloudPostgresqlPort>15432</cloudPostgresqlPort>
                <isHa>true</isHa>
                <isMultiZone>true</isMultiZone>
                <isBackup>true</isBackup>
                <backupFileRetentionPeriod>10</backupFileRetentionPeriod>
                <backupTime>02:00</backupTime>
                <createDate>2021-08-30T18:00:00+0900</createDate>
                <accessControlGroupNoList>
                    <accessControlGroupNo>****48</accessControlGroupNo>
                </accessControlGroupNoList>
                <cloudPostgresqlConfigList>
                    <cloudPostgresqlConfig>sample_config=sample_value</cloudPostgresqlConfig>
                </cloudPostgresqlConfigList>
                <cloudPostgresqlServerInstanceList>
                    <cloudPostgresqlServerInstance>
                        <cloudPostgresqlServerInstanceNo>****926</cloudPostgresqlServerInstanceNo>
                        <cloudPostgresqlServerName>test-****-001-gcb</cloudPostgresqlServerName>
                        <cloudPostgresqlServerRole>
                            <code>M</code>
                            <codeName>Primary</codeName>
                        </cloudPostgresqlServerRole>
                        <cloudPostgresqlServerInstanceStatusName>deleted</cloudPostgresqlServerInstanceStatusName>
                        <cloudPostgresqlServerInstanceStatus>
                            <code>DEL</code>
                            <codeName>CLOUD DATABASE(VPC) Server Deleted State</codeName>
                        </cloudPostgresqlServerInstanceStatus>
                        <cloudPostgresqlServerInstanceOperation>
                            <code>NOOP</code>
                            <codeName>CLOUD DATABASE(VPC) Server Null OP</codeName>
                        </cloudPostgresqlServerInstanceOperation>
                        <cloudPostgresqlProductCode>SVR.VPGSL.DBSVR.STAND.C002.M004.NET.SSD.B050.G001</cloudPostgresqlProductCode>
                        <regionCode>FKR</regionCode>
                        <zoneCode>FKR-1</zoneCode>
                        <vpcNo>****87</vpcNo>
                        <subnetNo>****49</subnetNo>
                        <isPublicSubnet>true</isPublicSubnet>
                        <privateDomain>pg-****.vpc-cdb-fkr.fin-ntruss.com</privateDomain>
                        <privateIp>***.***.***.***</privateIp>
                        <dataStorageType>
                            <code>SSD</code>
                            <codeName>SSD</codeName>
                        </dataStorageType>
                        <isStorageEncryption>true</isStorageEncryption>
                        <dataStorageSize>10737418240</dataStorageSize>
                        <usedDataStorageSize>4365676544</usedDataStorageSize>
                        <cpuCount>2</cpuCount>
                        <memorySize>4294967296</memorySize>
                        <uptime>2021-08-30T18:10:00+0900</uptime>
                        <createDate>2021-08-30T18:00:00+0900</createDate>
                    </cloudPostgresqlServerInstance>
                    <cloudPostgresqlServerInstance>
                        <cloudPostgresqlServerInstanceNo>****932</cloudPostgresqlServerInstanceNo>
                        <cloudPostgresqlServerName>test-****-002-gcc</cloudPostgresqlServerName>
                        <cloudPostgresqlServerRole>
                            <code>H</code>
                            <codeName>Secondary</codeName>
                        </cloudPostgresqlServerRole>
                        <cloudPostgresqlServerInstanceStatusName>deleted</cloudPostgresqlServerInstanceStatusName>
                        <cloudPostgresqlServerInstanceStatus>
                            <code>DEL</code>
                            <codeName>CLOUD DATABASE(VPC) Server Deleted State</codeName>
                        </cloudPostgresqlServerInstanceStatus>
                        <cloudPostgresqlServerInstanceOperation>
                            <code>NOOP</code>
                            <codeName>CLOUD DATABASE(VPC) Server Null OP</codeName>
                        </cloudPostgresqlServerInstanceOperation>
                        <cloudPostgresqlProductCode>SVR.VPGSL.DBSVR.STAND.C002.M004.NET.SSD.B050.G001</cloudPostgresqlProductCode>
                        <regionCode>FKR</regionCode>
                        <zoneCode>FKR-2</zoneCode>
                        <vpcNo>****87</vpcNo>
                        <subnetNo>****51</subnetNo>
                        <isPublicSubnet>true</isPublicSubnet>
                        <privateDomain>pg-****.vpc-cdb-fkr.fin-ntruss.com</privateDomain>
                        <privateIp>***.***.***.***</privateIp>
                        <dataStorageType>
                            <code>SSD</code>
                            <codeName>SSD</codeName>
                        </dataStorageType>
                        <isStorageEncryption>true</isStorageEncryption>
                        <dataStorageSize>10737418240</dataStorageSize>
                        <usedDataStorageSize>4365430784</usedDataStorageSize>
                        <cpuCount>2</cpuCount>
                        <memorySize>4294967296</memorySize>
                        <uptime>2021-08-30T18:10:00+0900</uptime>
                        <createDate>2021-08-30T18:00:00+0900</createDate>
                    </cloudPostgresqlServerInstance>
                </cloudPostgresqlServerInstanceList>
            </cloudPostgresqlInstance>
        </cloudPostgresqlInstanceList>
    </deleteCloudPostgresqlInstanceResponse>
    

    이 문서가 도움이 되었습니까?

    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.