getCloudPostgresqlTargetSubnetList
    • PDF

    getCloudPostgresqlTargetSubnetList

    • PDF

    Article Summary

    Available in VPC

    Views available subnet lists in Cloud DB for PostgreSQL.

    Requests

    Request Parameters

    ParameterTypeRequirement StatusDescriptionRestrictions
    regionCodeStringNRegion code
    - regionCode can be obtained via the getRegionList action
    - default: Selects the first region of the getRegionList query results
    -
    vpcNoStringYVPC number
    - vpcNo can be obtained via the getCloudPostgresqlTargetVpcList action
    -
    cloudPostgresqlImageProductCodeStringYCloud DB for PostgreSQL image product code
    - CloudPostgresqlImageProductCode can be obtained via the getCloudPostgresqlImageProductList action's productCode
    -
    isPublicBooleanNPublic Subnet search status-
    responseFormatTypeStringNFormat type of the response result
    - options: xml | json
    - default: xml
    -

    Responses

    Response bodies

    For response bodies, refer to TargetSubnetList.

    Examples

    Request Examples

    The following is an example of a request body.

    GET {API_URL}/getCloudPostgresqlTargetSubnetList
    ?regionCode=KR
    &vpcNo=25****
    &cloudPostgresqlImageProductCode=SW.VPGSL.OS.LNX64.CNTOS.0708.PGSQL.133.B050
    

    Response examples

    The following are examples of responses.

    If the response shows that format type (responseFormatType) is json

    {
      "getCloudPostgresqlTargetSubnetListResponse": {
        "requestId": "415050c7-bda1-43b6-9af1-f5ade127ad82",
        "returnCode": 0,
        "returnMessage": "success",
        "totalRows": 2,
        "targetSubnetList": [
          {
            "subnetNo": "37****",
            "subnetName": "test-****-private-kr1",
            "vpcNo": "25****",
            "vpcName": "test-****",
            "zoneCode": "KR-1",
            "subnet": "192.168.0.0/24",
            "isPublic": false,
            "createdDate": "2022-03-24T18:00:00+0900"
          },
          {
            "subnetNo": "37****",
            "subnetName": "test-****-public-kr1",
            "vpcNo": "25****",
            "vpcName": "test-****",
            "zoneCode": "KR-1",
            "subnet": "192.168.1.0/24",
            "isPublic": true,
            "createdDate": "2022-03-24T18:00:00+0900"
          }
        ]
      }
    }
    

    If the response shows that format type (responseFormatType) is xml

    <getCloudPostgresqlTargetSubnetListResponse>
        <requestId>415050c7-bda1-43b6-9af1-f5ade127ad82</requestId>
        <returnCode>0</returnCode>
        <returnMessage>success</returnMessage>
        <totalRows>2</totalRows>
        <targetSubnetList>
            <targetSubnet>
                <subnetNo>37****</subnetNo>
                <subnetName>test-****-private-kr1</subnetName>
                <vpcNo>25****</vpcNo>
                <vpcName>test-****</vpcName>
                <zoneCode>KR-1</zoneCode>
                <subnet>192.168.0.0/24</subnet>
                <isPublic>false</isPublic>
                <createdDate>2022-03-24T18:00:00+0900</createdDate>
            </targetSubnet>
            <targetSubnet>
                <subnetNo>37****</subnetNo>
                <subnetName>test-****-public-kr1</subnetName>
                <vpcNo>25****</vpcNo>
                <vpcName>test-****</vpcName>
                <zoneCode>KR-1</zoneCode>
                <subnet>192.168.1.0/24</subnet>
                <isPublic>true</isPublic>
                <createdDate>2022-03-24T18:00:00+0900</createdDate>
            </targetSubnet>
        </targetSubnetList>
    </getCloudPostgresqlTargetSubnetListResponse>
    

    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.