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

tencentcloud.DayuEip

Explore with Pulumi AI

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

    Use this resource to create dayu eip rule

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as tencentcloud from "@pulumi/tencentcloud";
    
    const test = new tencentcloud.DayuEip("test", {
        bindResourceId: "ins-4m0jvxic",
        bindResourceRegion: "hk",
        bindResourceType: "cvm",
        eip: "162.62.163.50",
        resourceId: "bgpip-000004xg",
    });
    
    import pulumi
    import pulumi_tencentcloud as tencentcloud
    
    test = tencentcloud.DayuEip("test",
        bind_resource_id="ins-4m0jvxic",
        bind_resource_region="hk",
        bind_resource_type="cvm",
        eip="162.62.163.50",
        resource_id="bgpip-000004xg")
    
    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.NewDayuEip(ctx, "test", &tencentcloud.DayuEipArgs{
    			BindResourceId:     pulumi.String("ins-4m0jvxic"),
    			BindResourceRegion: pulumi.String("hk"),
    			BindResourceType:   pulumi.String("cvm"),
    			Eip:                pulumi.String("162.62.163.50"),
    			ResourceId:         pulumi.String("bgpip-000004xg"),
    		})
    		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 test = new Tencentcloud.DayuEip("test", new()
        {
            BindResourceId = "ins-4m0jvxic",
            BindResourceRegion = "hk",
            BindResourceType = "cvm",
            Eip = "162.62.163.50",
            ResourceId = "bgpip-000004xg",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.tencentcloud.DayuEip;
    import com.pulumi.tencentcloud.DayuEipArgs;
    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 test = new DayuEip("test", DayuEipArgs.builder()
                .bindResourceId("ins-4m0jvxic")
                .bindResourceRegion("hk")
                .bindResourceType("cvm")
                .eip("162.62.163.50")
                .resourceId("bgpip-000004xg")
                .build());
    
        }
    }
    
    resources:
      test:
        type: tencentcloud:DayuEip
        properties:
          bindResourceId: ins-4m0jvxic
          bindResourceRegion: hk
          bindResourceType: cvm
          eip: 162.62.163.50
          resourceId: bgpip-000004xg
    

    Create DayuEip Resource

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

    Constructor syntax

    new DayuEip(name: string, args: DayuEipArgs, opts?: CustomResourceOptions);
    @overload
    def DayuEip(resource_name: str,
                args: DayuEipArgs,
                opts: Optional[ResourceOptions] = None)
    
    @overload
    def DayuEip(resource_name: str,
                opts: Optional[ResourceOptions] = None,
                bind_resource_id: Optional[str] = None,
                bind_resource_region: Optional[str] = None,
                bind_resource_type: Optional[str] = None,
                eip: Optional[str] = None,
                resource_id: Optional[str] = None,
                dayu_eip_id: Optional[str] = None)
    func NewDayuEip(ctx *Context, name string, args DayuEipArgs, opts ...ResourceOption) (*DayuEip, error)
    public DayuEip(string name, DayuEipArgs args, CustomResourceOptions? opts = null)
    public DayuEip(String name, DayuEipArgs args)
    public DayuEip(String name, DayuEipArgs args, CustomResourceOptions options)
    
    type: tencentcloud:DayuEip
    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 DayuEipArgs
    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 DayuEipArgs
    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 DayuEipArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args DayuEipArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args DayuEipArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    DayuEip 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 DayuEip resource accepts the following input properties:

    BindResourceId string
    Resource id to bind.
    BindResourceRegion string
    Resource region to bind.
    BindResourceType string
    Resource type to bind, value range [clb, cvm].
    Eip string
    Eip of the resource.
    ResourceId string
    ID of the resource.
    DayuEipId string
    ID of the resource.
    BindResourceId string
    Resource id to bind.
    BindResourceRegion string
    Resource region to bind.
    BindResourceType string
    Resource type to bind, value range [clb, cvm].
    Eip string
    Eip of the resource.
    ResourceId string
    ID of the resource.
    DayuEipId string
    ID of the resource.
    bindResourceId String
    Resource id to bind.
    bindResourceRegion String
    Resource region to bind.
    bindResourceType String
    Resource type to bind, value range [clb, cvm].
    eip String
    Eip of the resource.
    resourceId String
    ID of the resource.
    dayuEipId String
    ID of the resource.
    bindResourceId string
    Resource id to bind.
    bindResourceRegion string
    Resource region to bind.
    bindResourceType string
    Resource type to bind, value range [clb, cvm].
    eip string
    Eip of the resource.
    resourceId string
    ID of the resource.
    dayuEipId string
    ID of the resource.
    bind_resource_id str
    Resource id to bind.
    bind_resource_region str
    Resource region to bind.
    bind_resource_type str
    Resource type to bind, value range [clb, cvm].
    eip str
    Eip of the resource.
    resource_id str
    ID of the resource.
    dayu_eip_id str
    ID of the resource.
    bindResourceId String
    Resource id to bind.
    bindResourceRegion String
    Resource region to bind.
    bindResourceType String
    Resource type to bind, value range [clb, cvm].
    eip String
    Eip of the resource.
    resourceId String
    ID of the resource.
    dayuEipId String
    ID of the resource.

    Outputs

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

    CreatedTime string
    Created time of the resource instance.
    EipAddressStatus string
    Eip address status of the resource instance.
    EipBoundRscEni string
    Eip bound rsc eni of the resource instance.
    EipBoundRscIns string
    Eip bound rsc ins of the resource instance.
    EipBoundRscVip string
    Eip bound rsc vip of the resource instance.
    ExpiredTime string
    Expired time of the resource instance.
    Id string
    The provider-assigned unique ID for this managed resource.
    ModifyTime string
    Modify time of the resource instance.
    ProtectionStatus string
    Protection status of the resource instance.
    ResourceRegion string
    Region of the resource instance.
    CreatedTime string
    Created time of the resource instance.
    EipAddressStatus string
    Eip address status of the resource instance.
    EipBoundRscEni string
    Eip bound rsc eni of the resource instance.
    EipBoundRscIns string
    Eip bound rsc ins of the resource instance.
    EipBoundRscVip string
    Eip bound rsc vip of the resource instance.
    ExpiredTime string
    Expired time of the resource instance.
    Id string
    The provider-assigned unique ID for this managed resource.
    ModifyTime string
    Modify time of the resource instance.
    ProtectionStatus string
    Protection status of the resource instance.
    ResourceRegion string
    Region of the resource instance.
    createdTime String
    Created time of the resource instance.
    eipAddressStatus String
    Eip address status of the resource instance.
    eipBoundRscEni String
    Eip bound rsc eni of the resource instance.
    eipBoundRscIns String
    Eip bound rsc ins of the resource instance.
    eipBoundRscVip String
    Eip bound rsc vip of the resource instance.
    expiredTime String
    Expired time of the resource instance.
    id String
    The provider-assigned unique ID for this managed resource.
    modifyTime String
    Modify time of the resource instance.
    protectionStatus String
    Protection status of the resource instance.
    resourceRegion String
    Region of the resource instance.
    createdTime string
    Created time of the resource instance.
    eipAddressStatus string
    Eip address status of the resource instance.
    eipBoundRscEni string
    Eip bound rsc eni of the resource instance.
    eipBoundRscIns string
    Eip bound rsc ins of the resource instance.
    eipBoundRscVip string
    Eip bound rsc vip of the resource instance.
    expiredTime string
    Expired time of the resource instance.
    id string
    The provider-assigned unique ID for this managed resource.
    modifyTime string
    Modify time of the resource instance.
    protectionStatus string
    Protection status of the resource instance.
    resourceRegion string
    Region of the resource instance.
    created_time str
    Created time of the resource instance.
    eip_address_status str
    Eip address status of the resource instance.
    eip_bound_rsc_eni str
    Eip bound rsc eni of the resource instance.
    eip_bound_rsc_ins str
    Eip bound rsc ins of the resource instance.
    eip_bound_rsc_vip str
    Eip bound rsc vip of the resource instance.
    expired_time str
    Expired time of the resource instance.
    id str
    The provider-assigned unique ID for this managed resource.
    modify_time str
    Modify time of the resource instance.
    protection_status str
    Protection status of the resource instance.
    resource_region str
    Region of the resource instance.
    createdTime String
    Created time of the resource instance.
    eipAddressStatus String
    Eip address status of the resource instance.
    eipBoundRscEni String
    Eip bound rsc eni of the resource instance.
    eipBoundRscIns String
    Eip bound rsc ins of the resource instance.
    eipBoundRscVip String
    Eip bound rsc vip of the resource instance.
    expiredTime String
    Expired time of the resource instance.
    id String
    The provider-assigned unique ID for this managed resource.
    modifyTime String
    Modify time of the resource instance.
    protectionStatus String
    Protection status of the resource instance.
    resourceRegion String
    Region of the resource instance.

    Look up Existing DayuEip Resource

    Get an existing DayuEip 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?: DayuEipState, opts?: CustomResourceOptions): DayuEip
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            bind_resource_id: Optional[str] = None,
            bind_resource_region: Optional[str] = None,
            bind_resource_type: Optional[str] = None,
            created_time: Optional[str] = None,
            dayu_eip_id: Optional[str] = None,
            eip: Optional[str] = None,
            eip_address_status: Optional[str] = None,
            eip_bound_rsc_eni: Optional[str] = None,
            eip_bound_rsc_ins: Optional[str] = None,
            eip_bound_rsc_vip: Optional[str] = None,
            expired_time: Optional[str] = None,
            modify_time: Optional[str] = None,
            protection_status: Optional[str] = None,
            resource_id: Optional[str] = None,
            resource_region: Optional[str] = None) -> DayuEip
    func GetDayuEip(ctx *Context, name string, id IDInput, state *DayuEipState, opts ...ResourceOption) (*DayuEip, error)
    public static DayuEip Get(string name, Input<string> id, DayuEipState? state, CustomResourceOptions? opts = null)
    public static DayuEip get(String name, Output<String> id, DayuEipState state, CustomResourceOptions options)
    resources:  _:    type: tencentcloud:DayuEip    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:
    BindResourceId string
    Resource id to bind.
    BindResourceRegion string
    Resource region to bind.
    BindResourceType string
    Resource type to bind, value range [clb, cvm].
    CreatedTime string
    Created time of the resource instance.
    DayuEipId string
    ID of the resource.
    Eip string
    Eip of the resource.
    EipAddressStatus string
    Eip address status of the resource instance.
    EipBoundRscEni string
    Eip bound rsc eni of the resource instance.
    EipBoundRscIns string
    Eip bound rsc ins of the resource instance.
    EipBoundRscVip string
    Eip bound rsc vip of the resource instance.
    ExpiredTime string
    Expired time of the resource instance.
    ModifyTime string
    Modify time of the resource instance.
    ProtectionStatus string
    Protection status of the resource instance.
    ResourceId string
    ID of the resource.
    ResourceRegion string
    Region of the resource instance.
    BindResourceId string
    Resource id to bind.
    BindResourceRegion string
    Resource region to bind.
    BindResourceType string
    Resource type to bind, value range [clb, cvm].
    CreatedTime string
    Created time of the resource instance.
    DayuEipId string
    ID of the resource.
    Eip string
    Eip of the resource.
    EipAddressStatus string
    Eip address status of the resource instance.
    EipBoundRscEni string
    Eip bound rsc eni of the resource instance.
    EipBoundRscIns string
    Eip bound rsc ins of the resource instance.
    EipBoundRscVip string
    Eip bound rsc vip of the resource instance.
    ExpiredTime string
    Expired time of the resource instance.
    ModifyTime string
    Modify time of the resource instance.
    ProtectionStatus string
    Protection status of the resource instance.
    ResourceId string
    ID of the resource.
    ResourceRegion string
    Region of the resource instance.
    bindResourceId String
    Resource id to bind.
    bindResourceRegion String
    Resource region to bind.
    bindResourceType String
    Resource type to bind, value range [clb, cvm].
    createdTime String
    Created time of the resource instance.
    dayuEipId String
    ID of the resource.
    eip String
    Eip of the resource.
    eipAddressStatus String
    Eip address status of the resource instance.
    eipBoundRscEni String
    Eip bound rsc eni of the resource instance.
    eipBoundRscIns String
    Eip bound rsc ins of the resource instance.
    eipBoundRscVip String
    Eip bound rsc vip of the resource instance.
    expiredTime String
    Expired time of the resource instance.
    modifyTime String
    Modify time of the resource instance.
    protectionStatus String
    Protection status of the resource instance.
    resourceId String
    ID of the resource.
    resourceRegion String
    Region of the resource instance.
    bindResourceId string
    Resource id to bind.
    bindResourceRegion string
    Resource region to bind.
    bindResourceType string
    Resource type to bind, value range [clb, cvm].
    createdTime string
    Created time of the resource instance.
    dayuEipId string
    ID of the resource.
    eip string
    Eip of the resource.
    eipAddressStatus string
    Eip address status of the resource instance.
    eipBoundRscEni string
    Eip bound rsc eni of the resource instance.
    eipBoundRscIns string
    Eip bound rsc ins of the resource instance.
    eipBoundRscVip string
    Eip bound rsc vip of the resource instance.
    expiredTime string
    Expired time of the resource instance.
    modifyTime string
    Modify time of the resource instance.
    protectionStatus string
    Protection status of the resource instance.
    resourceId string
    ID of the resource.
    resourceRegion string
    Region of the resource instance.
    bind_resource_id str
    Resource id to bind.
    bind_resource_region str
    Resource region to bind.
    bind_resource_type str
    Resource type to bind, value range [clb, cvm].
    created_time str
    Created time of the resource instance.
    dayu_eip_id str
    ID of the resource.
    eip str
    Eip of the resource.
    eip_address_status str
    Eip address status of the resource instance.
    eip_bound_rsc_eni str
    Eip bound rsc eni of the resource instance.
    eip_bound_rsc_ins str
    Eip bound rsc ins of the resource instance.
    eip_bound_rsc_vip str
    Eip bound rsc vip of the resource instance.
    expired_time str
    Expired time of the resource instance.
    modify_time str
    Modify time of the resource instance.
    protection_status str
    Protection status of the resource instance.
    resource_id str
    ID of the resource.
    resource_region str
    Region of the resource instance.
    bindResourceId String
    Resource id to bind.
    bindResourceRegion String
    Resource region to bind.
    bindResourceType String
    Resource type to bind, value range [clb, cvm].
    createdTime String
    Created time of the resource instance.
    dayuEipId String
    ID of the resource.
    eip String
    Eip of the resource.
    eipAddressStatus String
    Eip address status of the resource instance.
    eipBoundRscEni String
    Eip bound rsc eni of the resource instance.
    eipBoundRscIns String
    Eip bound rsc ins of the resource instance.
    eipBoundRscVip String
    Eip bound rsc vip of the resource instance.
    expiredTime String
    Expired time of the resource instance.
    modifyTime String
    Modify time of the resource instance.
    protectionStatus String
    Protection status of the resource instance.
    resourceId String
    ID of the resource.
    resourceRegion String
    Region of the resource instance.

    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