MENU
      deleteTargetGroups
        • PDF

        deleteTargetGroups

        • PDF

        記事の要約

        VPC環境で利用できます。

        ターゲットグループを削除します。使用中のターゲットグループは削除できません。

        リクエスト

        リクエスト形式を説明します。リクエスト形式は次の通りです。

        メソッドURI
        GET/deleteTargetGroups

        リクエストヘッダ

        Load Balancer APIで共通して使用されるヘッダの詳細は、Load Balancerの共通ヘッダをご参照ください。

        リクエストクエリパラメータ

        パラメータの説明は次の通りです。

        フィールドタイプ必須の有無説明
        regionCodeStringOptional削除対象のターゲットグループのリージョンコード
        • getRegionList照会結果の最初のリージョン(デフォルト)
        • getRegionListを通じて確認
        targetGroupNoList.NList<String>Requiredターゲットグループの番号リスト
        • targetGroupNogetTargetGroupListを通じて確認
        • <例> targetGroupNoList.1=1234&targetGroupNoList.2=2345
        responseFormatTypeStringOptionalレスポンス結果の形式
        • xml(デフォルト) | json

        リクエスト例

        リクエストのサンプルコードは次の通りです。

        curl --location 'https://ncloud.apigw.ntruss.com/vloadbalancer/v2/deleteTargetGroups
        ?regionCode=KR
        &targetGroupNoList.1=*******'
        --header 'x-ncp-apigw-timestamp: {Timestamp}'
        --header 'x-ncp-iam-access-key: {Access Key}'
        --header 'x-ncp-apigw-signature-v2: {API Gateway Signature}'
        Curl

        レスポンス

        レスポンス形式を説明します。

        レスポンスボディ

        レスポンスボディの詳細は、TargetGroupListをご参照ください。

        レスポンスステータスコード

        NAVERクラウドプラットフォームでで共通して使用されるレスポンスステータスコードの詳細は、Ncloud APIのレスポンスステータスコードをご参照ください。

        レスポンス例

        レスポンスのサンプルコードは次の通りです。

        <deleteTargetGroupsResponse>
            <requestId>9b6f0a2f-abeb-49e5-bd25-a3aa365c4566</requestId>
            <returnCode>0</returnCode>
            <returnMessage>success</returnMessage>
            <totalRows>1</totalRows>
            <targetGroupList>
                <targetGroup>
                    <targetGroupNo>*******</targetGroupNo>
                    <targetGroupName>YOUR_TARGET_GROUP</targetGroupName>
                    <targetType>
                        <code>VSVR</code>
                        <codeName>Server (VPC)</codeName>
                    </targetType>
                    <vpcNo>*****</vpcNo>
                    <targetGroupProtocolType>
                        <code>HTTP</code>
                        <codeName>HTTP protocol</codeName>
                    </targetGroupProtocolType>
                    <targetGroupPort>80</targetGroupPort>
                    <targetGroupDescription></targetGroupDescription>
                    <useStickySession>false</useStickySession>
                    <useProxyProtocol>false</useProxyProtocol>
                    <algorithmType>
                        <code>RR</code>
                        <codeName>Round Robin</codeName>
                    </algorithmType>
                    <createDate>2024-06-04T10:17:10+0900</createDate>
                    <regionCode>KR</regionCode>
                    <loadBalancerInstanceNo></loadBalancerInstanceNo>
                    <healthCheckProtocolType>
                        <code>HTTP</code>
                        <codeName>HTTP protocol</codeName>
                    </healthCheckProtocolType>
                    <healthCheckPort>80</healthCheckPort>
                    <healthCheckUrlPath>/</healthCheckUrlPath>
                    <healthCheckHttpMethodType>
                        <code>GET</code>
                        <codeName>HTTP GET Method</codeName>
                    </healthCheckHttpMethodType>
                    <healthCheckCycle>30</healthCheckCycle>
                    <healthCheckUpThreshold>2</healthCheckUpThreshold>
                    <healthCheckDownThreshold>2</healthCheckDownThreshold>
                    <targetNoList/>
                </targetGroup>
            </targetGroupList>
        </deleteTargetGroupsResponse>
        XML

        この記事は役に立ちましたか?

        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.