Amazon.ElasticLoadBalancingV2.AmazonElasticLoadBalancingV2Client.RegisterTargets C# (CSharp) Method

RegisterTargets() public method

Registers the specified targets with the specified target group.

By default, the load balancer routes requests to registered targets using the protocol and port number for the target group. Alternatively, you can override the port for a target when you register it.

The target must be in the virtual private cloud (VPC) that you specified for the target group. If the target is an EC2 instance, it can't be in the stopped or running state when you register it.

To remove a target from a target group, use DeregisterTargets.

/// The specified target does not exist or is not in the same VPC as the target group. /// /// The specified target group does not exist. /// /// You've reached the limit on the number of times a target can be registered with a /// load balancer. /// /// You've reached the limit on the number of targets. ///
public RegisterTargets ( RegisterTargetsRequest request ) : RegisterTargetsResponse
request Amazon.ElasticLoadBalancingV2.Model.RegisterTargetsRequest Container for the necessary parameters to execute the RegisterTargets service method.
return RegisterTargetsResponse
        public RegisterTargetsResponse RegisterTargets(RegisterTargetsRequest request)
        {
            var marshaller = new RegisterTargetsRequestMarshaller();
            var unmarshaller = RegisterTargetsResponseUnmarshaller.Instance;

            return Invoke<RegisterTargetsRequest,RegisterTargetsResponse>(request, marshaller, unmarshaller);
        }
AmazonElasticLoadBalancingV2Client