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

tencentcloud.ClbListenerDefaultDomain

Explore with Pulumi AI

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",
});
Copy
import pulumi
import pulumi_tencentcloud as tencentcloud

example = tencentcloud.ClbListenerDefaultDomain("example",
    clb_id="lb-g1miv1ok",
    domain="3.com",
    listener_id="lbl-duilx5qm")
Copy
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
	})
}
Copy
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",
    });

});
Copy
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());

    }
}
Copy
resources:
  example:
    type: tencentcloud:ClbListenerDefaultDomain
    properties:
      clbId: lb-g1miv1ok
      domain: 3.com
      listenerId: lbl-duilx5qm
Copy

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 This property is required. string
The unique name of the resource.
args This property is required. ClbListenerDefaultDomainArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. 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 This property is required. string
The unique name of the resource.
args This property is required. ClbListenerDefaultDomainArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. ClbListenerDefaultDomainArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. 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 This property is required. string
ID of CLB instance.
Domain This property is required. string
Domain name of the listener rule. Single domain rules are passed to domain, and multi domain rules are passed to domains.
ListenerId This property is required. string
ID of CLB listener.
ClbListenerDefaultDomainId string
ID of the resource.
ClbId This property is required. string
ID of CLB instance.
Domain This property is required. string
Domain name of the listener rule. Single domain rules are passed to domain, and multi domain rules are passed to domains.
ListenerId This property is required. string
ID of CLB listener.
ClbListenerDefaultDomainId string
ID of the resource.
clbId This property is required. String
ID of CLB instance.
domain This property is required. String
Domain name of the listener rule. Single domain rules are passed to domain, and multi domain rules are passed to domains.
listenerId This property is required. String
ID of CLB listener.
clbListenerDefaultDomainId String
ID of the resource.
clbId This property is required. string
ID of CLB instance.
domain This property is required. string
Domain name of the listener rule. Single domain rules are passed to domain, and multi domain rules are passed to domains.
listenerId This property is required. string
ID of CLB listener.
clbListenerDefaultDomainId string
ID of the resource.
clb_id This property is required. str
ID of CLB instance.
domain This property is required. str
Domain name of the listener rule. Single domain rules are passed to domain, and multi domain rules are passed to domains.
listener_id This property is required. str
ID of CLB listener.
clb_listener_default_domain_id str
ID of the resource.
clbId This property is required. String
ID of CLB instance.
domain This property is required. String
Domain name of the listener rule. Single domain rules are passed to domain, and multi domain rules are passed to domains.
listenerId This property is required. 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 This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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
Copy

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.