createTargetGroup
    • PDF

    createTargetGroup

    • PDF

    Article Summary

    Available in VPC

    Overview

    Create target groups. The created target groups can be used in load balancers or an Auto Scaling Group.

    Requests

    Request parameters

    Parameter nameRequirement statusTypeRestrictionsDescription
    regionCodeNoString- Region code
    Determines the region in which the target group will be created.
    regionCode can be obtained via the getRegionList action
    Default: Selects the first region of the getRegionList query results
    vpcNoYesString- VPC number
    Determines the VPC where the target group will be created.
    vpcNo can be obtained via the getVpcList action.
    targetGroupNameNoStringMin : 3, Max : 30
    Only English letters, numbers, and "-" can be used, and this must start with an English letter.
    It must end with an English letter or number.
    - Target group name
    Default: Automatically granted by NAVER Cloud Platform
    targetTypeCodeNoString- Target type code
    You can decide the target type that will be added to the target group.
    Options : VSVR (Server (VPC))
    targetGroupProtocolTypeCodeYesString- Target group protocol type code
    Determines the target group's protocol type.
    Options : TCP | UDP
    targetGroupPortNoIntegerMin : 1, Max : 65534- Target group port
    You can decide the port number that will be used in the target group.
    Default : 80
    targetGroupDescriptionNoStringMin : 0, Max : 1000 Bytes- Description of the target group to be created
    healthCheckProtocolTypeCodeYesString- Health check protocol type code
    Determines the protocol type to use for the health check.
    Options : TCP | HTTP
    healthCheckPortNoIntegerMin : 1, Max : 65534- Health check port
    Specifies the port to use for the health check.
    Default : 80
    healthCheckUrlPathNoString- Health check URL path
    You can specify the URL path to use for the health check.
    It is only valid if the health check protocol type is either HTTP or HTTPS.
    / Enter the URL path starting with this.
    Default : /
    healthCheckHttpMethodTypeCodeConditionalString- Health check HTTP method type code
    You can decide the HTTP method to use for the health check.
    It must be entered it if the health check protocol type is either HTTP or HTTPS.
    Options : HEAD | GET
    healthCheckCycleNoIntegerMin: 5, Max: 300 (seconds)- Health check interval
    Determines the health check interval.
    Default: 30 seconds
    healthCheckUpThresholdNoIntegerMin : 2, Max : 10- Health check normal threshold
    Specifies the number of consecutive successful status checks required before the health check result is considered normal.
    Default : 2
    healthCheckDownThresholdNoIntegerMin : 2, Max : 10- Health check failure threshold
    Specifies the number of consecutive successful status checks required before the health check result is considered failed.
    Default : 2
    targetNoList.NNoList<String>- List of target numbers
    Specifies the list of targets that will be bound to the target group.
    targetNo can be obtained through the search action corresponding to targetTypeCode.
    <Example> targetNoList.1=1234&targetNoList.2=2345
    responseFormatTypeNoString- Format type of the response result
    Options : xml | json
    Default : xml

    Responses

    Response bodies

    Examples

    Request examples

    GET {API_URL}/createTargetGroup
    ?regionCode=KR
    &vpcNo=***04
    &targetGroupName=test-***
    &targetTypeCode=VSVR
    &targetGroupProtocolTypeCode=VSVR
    &targetGroupPort=80
    &healthCheckProtocolTypeCode=HTTP
    &healthCheckPort=80
    &healthCheckUrlPath=/
    &healthCheckHttpMethodTypeCode=GET
    &healthCheckCycle=30
    &healthCheckUpThreshold=2
    &healthCheckDownThreshold=2
    

    Response examples

    <createTargetGroupResponse>
      <requestId>b644e5ed-6ca8-48d5-9b7f-2a3549ef3c96</requestId>
      <returnCode>0</returnCode>
      <returnMessage>success</returnMessage>
      <totalRows>1</totalRows>
      <targetGroupList>
        <targetGroup>
          <targetGroupNo>***095</targetGroupNo>
          <targetGroupName>test-***</targetGroupName>
          <targetType>
            <code>VSVR</code>
            <codeName>Server (VPC)</codeName>
          </targetType>
          <vpcNo>***04</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>2020-12-17T21:06:45+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>get</codeName>
          </healthCheckHttpMethodType>
          <healthCheckCycle>30</healthCheckCycle>
          <healthCheckUpThreshold>2</healthCheckUpThreshold>
          <healthCheckDownThreshold>2</healthCheckDownThreshold>
          <targetNoList/>
        </targetGroup>
      </targetGroupList>
    </createTargetGroupResponse>
    

    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.