1. Packages
  2. Tencentcloud Provider
  3. API Docs
  4. ClbListenerDefaultDomain
tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack

tencentcloud.ClbListenerDefaultDomain

Explore with Pulumi AI

tencentcloud logo
tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack

    Provides a resource to set clb listener default domain

    Example Usage

    Set default domain

    import * as pulumi from "@pulumi/pulumi";
    import * as tencentcloud from "@pulumi/tencentcloud";
    
    const example = new tencentcloud.ClbListenerDefaultDomain("example", {
        clbId: "lb-g1miv1ok",
        domain: "3.com",
        listenerId: "lbl-duilx5qm",
    });
    
    import pulumi
    import pulumi_tencentcloud as tencentcloud
    
    example = tencentcloud.ClbListenerDefaultDomain("example",
        clb_id="lb-g1miv1ok",
        domain="3.com",
        listener_id="lbl-duilx5qm")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/tencentcloud/tencentcloud"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := tencentcloud.NewClbListenerDefaultDomain(ctx, "example", &tencentcloud.ClbListenerDefaultDomainArgs{
    			ClbId:      pulumi.String("lb-g1miv1ok"),
    			Domain:     pulumi.String("3.com"),
    			ListenerId: pulumi.String("lbl-duilx5qm"),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Tencentcloud = Pulumi.Tencentcloud;
    
    return await Deployment.RunAsync(() => 
    {
        var example = new Tencentcloud.ClbListenerDefaultDomain("example", new()
        {
            ClbId = "lb-g1miv1ok",
            Domain = "3.com",
            ListenerId = "lbl-duilx5qm",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.tencentcloud.ClbListenerDefaultDomain;
    import com.pulumi.tencentcloud.ClbListenerDefaultDomainArgs;
    import java.util.List;
    import java.util.ArrayList;
    import java.util.Map;
    import java.io.File;
    import java.nio.file.Files;
    import java.nio.file.Paths;
    
    public class App {
        public static void main(String[] args) {
            Pulumi.run(App::stack);
        }
    
        public static void stack(Context ctx) {
            var example = new ClbListenerDefaultDomain("example", ClbListenerDefaultDomainArgs.builder()
                .clbId("lb-g1miv1ok")
                .domain("3.com")
                .listenerId("lbl-duilx5qm")
                .build());
    
        }
    }
    
    resources:
      example:
        type: tencentcloud:ClbListenerDefaultDomain
        properties:
          clbId: lb-g1miv1ok
          domain: 3.com
          listenerId: lbl-duilx5qm
    

    Create ClbListenerDefaultDomain Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new ClbListenerDefaultDomain(name: string, args: ClbListenerDefaultDomainArgs, opts?: CustomResourceOptions);
    @overload
    def ClbListenerDefaultDomain(resource_name: str,
                                 args: ClbListenerDefaultDomainArgs,
                                 opts: Optional[ResourceOptions] = None)
    
    @overload
    def ClbListenerDefaultDomain(resource_name: str,
                                 opts: Optional[ResourceOptions] = None,
                                 clb_id: Optional[str] = None,
                                 domain: Optional[str] = None,
                                 listener_id: Optional[str] = None,
                                 clb_listener_default_domain_id: Optional[str] = None)
    func NewClbListenerDefaultDomain(ctx *Context, name string, args ClbListenerDefaultDomainArgs, opts ...ResourceOption) (*ClbListenerDefaultDomain, error)
    public ClbListenerDefaultDomain(string name, ClbListenerDefaultDomainArgs args, CustomResourceOptions? opts = null)
    public ClbListenerDefaultDomain(String name, ClbListenerDefaultDomainArgs args)
    public ClbListenerDefaultDomain(String name, ClbListenerDefaultDomainArgs args, CustomResourceOptions options)
    
    type: tencentcloud:ClbListenerDefaultDomain
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args ClbListenerDefaultDomainArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args ClbListenerDefaultDomainArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args ClbListenerDefaultDomainArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args ClbListenerDefaultDomainArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args ClbListenerDefaultDomainArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    ClbListenerDefaultDomain Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The ClbListenerDefaultDomain resource accepts the following input properties:

    ClbId string
    ID of CLB instance.
    Domain string
    Domain name of the listener rule. Single domain rules are passed to domain, and multi domain rules are passed to domains.
    ListenerId string
    ID of CLB listener.
    ClbListenerDefaultDomainId string
    ID of the resource.
    ClbId string
    ID of CLB instance.
    Domain string
    Domain name of the listener rule. Single domain rules are passed to domain, and multi domain rules are passed to domains.
    ListenerId string
    ID of CLB listener.
    ClbListenerDefaultDomainId string
    ID of the resource.
    clbId String
    ID of CLB instance.
    domain String
    Domain name of the listener rule. Single domain rules are passed to domain, and multi domain rules are passed to domains.
    listenerId String
    ID of CLB listener.
    clbListenerDefaultDomainId String
    ID of the resource.
    clbId string
    ID of CLB instance.
    domain string
    Domain name of the listener rule. Single domain rules are passed to domain, and multi domain rules are passed to domains.
    listenerId string
    ID of CLB listener.
    clbListenerDefaultDomainId string
    ID of the resource.
    clb_id str
    ID of CLB instance.
    domain str
    Domain name of the listener rule. Single domain rules are passed to domain, and multi domain rules are passed to domains.
    listener_id str
    ID of CLB listener.
    clb_listener_default_domain_id str
    ID of the resource.
    clbId String
    ID of CLB instance.
    domain String
    Domain name of the listener rule. Single domain rules are passed to domain, and multi domain rules are passed to domains.
    listenerId String
    ID of CLB listener.
    clbListenerDefaultDomainId String
    ID of the resource.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the ClbListenerDefaultDomain resource produces the following output properties:

    Id string
    The provider-assigned unique ID for this managed resource.
    RuleId string
    ID of this CLB listener rule.
    Id string
    The provider-assigned unique ID for this managed resource.
    RuleId string
    ID of this CLB listener rule.
    id String
    The provider-assigned unique ID for this managed resource.
    ruleId String
    ID of this CLB listener rule.
    id string
    The provider-assigned unique ID for this managed resource.
    ruleId string
    ID of this CLB listener rule.
    id str
    The provider-assigned unique ID for this managed resource.
    rule_id str
    ID of this CLB listener rule.
    id String
    The provider-assigned unique ID for this managed resource.
    ruleId String
    ID of this CLB listener rule.

    Look up Existing ClbListenerDefaultDomain Resource

    Get an existing ClbListenerDefaultDomain resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, state?: ClbListenerDefaultDomainState, opts?: CustomResourceOptions): ClbListenerDefaultDomain
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            clb_id: Optional[str] = None,
            clb_listener_default_domain_id: Optional[str] = None,
            domain: Optional[str] = None,
            listener_id: Optional[str] = None,
            rule_id: Optional[str] = None) -> ClbListenerDefaultDomain
    func GetClbListenerDefaultDomain(ctx *Context, name string, id IDInput, state *ClbListenerDefaultDomainState, opts ...ResourceOption) (*ClbListenerDefaultDomain, error)
    public static ClbListenerDefaultDomain Get(string name, Input<string> id, ClbListenerDefaultDomainState? state, CustomResourceOptions? opts = null)
    public static ClbListenerDefaultDomain get(String name, Output<String> id, ClbListenerDefaultDomainState state, CustomResourceOptions options)
    resources:  _:    type: tencentcloud:ClbListenerDefaultDomain    get:      id: ${id}
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    ClbId string
    ID of CLB instance.
    ClbListenerDefaultDomainId string
    ID of the resource.
    Domain string
    Domain name of the listener rule. Single domain rules are passed to domain, and multi domain rules are passed to domains.
    ListenerId string
    ID of CLB listener.
    RuleId string
    ID of this CLB listener rule.
    ClbId string
    ID of CLB instance.
    ClbListenerDefaultDomainId string
    ID of the resource.
    Domain string
    Domain name of the listener rule. Single domain rules are passed to domain, and multi domain rules are passed to domains.
    ListenerId string
    ID of CLB listener.
    RuleId string
    ID of this CLB listener rule.
    clbId String
    ID of CLB instance.
    clbListenerDefaultDomainId String
    ID of the resource.
    domain String
    Domain name of the listener rule. Single domain rules are passed to domain, and multi domain rules are passed to domains.
    listenerId String
    ID of CLB listener.
    ruleId String
    ID of this CLB listener rule.
    clbId string
    ID of CLB instance.
    clbListenerDefaultDomainId string
    ID of the resource.
    domain string
    Domain name of the listener rule. Single domain rules are passed to domain, and multi domain rules are passed to domains.
    listenerId string
    ID of CLB listener.
    ruleId string
    ID of this CLB listener rule.
    clb_id str
    ID of CLB instance.
    clb_listener_default_domain_id str
    ID of the resource.
    domain str
    Domain name of the listener rule. Single domain rules are passed to domain, and multi domain rules are passed to domains.
    listener_id str
    ID of CLB listener.
    rule_id str
    ID of this CLB listener rule.
    clbId String
    ID of CLB instance.
    clbListenerDefaultDomainId String
    ID of the resource.
    domain String
    Domain name of the listener rule. Single domain rules are passed to domain, and multi domain rules are passed to domains.
    listenerId String
    ID of CLB listener.
    ruleId String
    ID of this CLB listener rule.

    Import

    CLB listener default domain can be imported using the id (version >= 1.47.0), e.g.

    $ pulumi import tencentcloud:index/clbListenerDefaultDomain:ClbListenerDefaultDomain example lb-k2zjp9lv#lbl-hh141sn9
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    tencentcloud tencentcloudstack/terraform-provider-tencentcloud
    License
    Notes
    This Pulumi package is based on the tencentcloud Terraform Provider.
    tencentcloud logo
    tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack