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

tencentcloud.getDayuEip

Explore with Pulumi AI

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

    Use this data source to query dayu eip rules

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as tencentcloud from "@pulumi/tencentcloud";
    
    const test = tencentcloud.getDayuEip({
        resourceId: "bgpip-000004xg",
    });
    
    import pulumi
    import pulumi_tencentcloud as tencentcloud
    
    test = tencentcloud.get_dayu_eip(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.LookupDayuEip(ctx, &tencentcloud.LookupDayuEipArgs{
    			ResourceId: "bgpip-000004xg",
    		}, nil)
    		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 = Tencentcloud.GetDayuEip.Invoke(new()
        {
            ResourceId = "bgpip-000004xg",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.tencentcloud.TencentcloudFunctions;
    import com.pulumi.tencentcloud.inputs.GetDayuEipArgs;
    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) {
            final var test = TencentcloudFunctions.getDayuEip(GetDayuEipArgs.builder()
                .resourceId("bgpip-000004xg")
                .build());
    
        }
    }
    
    variables:
      test:
        fn::invoke:
          function: tencentcloud:getDayuEip
          arguments:
            resourceId: bgpip-000004xg
    

    Using getDayuEip

    Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

    function getDayuEip(args: GetDayuEipArgs, opts?: InvokeOptions): Promise<GetDayuEipResult>
    function getDayuEipOutput(args: GetDayuEipOutputArgs, opts?: InvokeOptions): Output<GetDayuEipResult>
    def get_dayu_eip(bind_statuses: Optional[Sequence[str]] = None,
                     id: Optional[str] = None,
                     limit: Optional[float] = None,
                     offset: Optional[float] = None,
                     resource_id: Optional[str] = None,
                     result_output_file: Optional[str] = None,
                     opts: Optional[InvokeOptions] = None) -> GetDayuEipResult
    def get_dayu_eip_output(bind_statuses: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
                     id: Optional[pulumi.Input[str]] = None,
                     limit: Optional[pulumi.Input[float]] = None,
                     offset: Optional[pulumi.Input[float]] = None,
                     resource_id: Optional[pulumi.Input[str]] = None,
                     result_output_file: Optional[pulumi.Input[str]] = None,
                     opts: Optional[InvokeOptions] = None) -> Output[GetDayuEipResult]
    func LookupDayuEip(ctx *Context, args *LookupDayuEipArgs, opts ...InvokeOption) (*LookupDayuEipResult, error)
    func LookupDayuEipOutput(ctx *Context, args *LookupDayuEipOutputArgs, opts ...InvokeOption) LookupDayuEipResultOutput

    > Note: This function is named LookupDayuEip in the Go SDK.

    public static class GetDayuEip 
    {
        public static Task<GetDayuEipResult> InvokeAsync(GetDayuEipArgs args, InvokeOptions? opts = null)
        public static Output<GetDayuEipResult> Invoke(GetDayuEipInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetDayuEipResult> getDayuEip(GetDayuEipArgs args, InvokeOptions options)
    public static Output<GetDayuEipResult> getDayuEip(GetDayuEipArgs args, InvokeOptions options)
    
    fn::invoke:
      function: tencentcloud:index/getDayuEip:getDayuEip
      arguments:
        # arguments dictionary

    The following arguments are supported:

    ResourceId string
    Id of the resource.
    BindStatuses List<string>
    The binding state of the instance, value range [BINDING, BIND, UNBINDING, UNBIND], default is [BINDING, BIND, UNBINDING, UNBIND].
    Id string
    Limit double
    The number of pages, default is 10.
    Offset double
    The page start offset, default is 0.
    ResultOutputFile string
    Used to save results.
    ResourceId string
    Id of the resource.
    BindStatuses []string
    The binding state of the instance, value range [BINDING, BIND, UNBINDING, UNBIND], default is [BINDING, BIND, UNBINDING, UNBIND].
    Id string
    Limit float64
    The number of pages, default is 10.
    Offset float64
    The page start offset, default is 0.
    ResultOutputFile string
    Used to save results.
    resourceId String
    Id of the resource.
    bindStatuses List<String>
    The binding state of the instance, value range [BINDING, BIND, UNBINDING, UNBIND], default is [BINDING, BIND, UNBINDING, UNBIND].
    id String
    limit Double
    The number of pages, default is 10.
    offset Double
    The page start offset, default is 0.
    resultOutputFile String
    Used to save results.
    resourceId string
    Id of the resource.
    bindStatuses string[]
    The binding state of the instance, value range [BINDING, BIND, UNBINDING, UNBIND], default is [BINDING, BIND, UNBINDING, UNBIND].
    id string
    limit number
    The number of pages, default is 10.
    offset number
    The page start offset, default is 0.
    resultOutputFile string
    Used to save results.
    resource_id str
    Id of the resource.
    bind_statuses Sequence[str]
    The binding state of the instance, value range [BINDING, BIND, UNBINDING, UNBIND], default is [BINDING, BIND, UNBINDING, UNBIND].
    id str
    limit float
    The number of pages, default is 10.
    offset float
    The page start offset, default is 0.
    result_output_file str
    Used to save results.
    resourceId String
    Id of the resource.
    bindStatuses List<String>
    The binding state of the instance, value range [BINDING, BIND, UNBINDING, UNBIND], default is [BINDING, BIND, UNBINDING, UNBIND].
    id String
    limit Number
    The number of pages, default is 10.
    offset Number
    The page start offset, default is 0.
    resultOutputFile String
    Used to save results.

    getDayuEip Result

    The following output properties are available:

    Id string
    Lists List<GetDayuEipList>
    A list of layer 4 rules. Each element contains the following attributes:
    ResourceId string
    BindStatuses List<string>
    Limit double
    Offset double
    ResultOutputFile string
    Id string
    Lists []GetDayuEipList
    A list of layer 4 rules. Each element contains the following attributes:
    ResourceId string
    BindStatuses []string
    Limit float64
    Offset float64
    ResultOutputFile string
    id String
    lists List<GetDayuEipList>
    A list of layer 4 rules. Each element contains the following attributes:
    resourceId String
    bindStatuses List<String>
    limit Double
    offset Double
    resultOutputFile String
    id string
    lists GetDayuEipList[]
    A list of layer 4 rules. Each element contains the following attributes:
    resourceId string
    bindStatuses string[]
    limit number
    offset number
    resultOutputFile string
    id str
    lists Sequence[GetDayuEipList]
    A list of layer 4 rules. Each element contains the following attributes:
    resource_id str
    bind_statuses Sequence[str]
    limit float
    offset float
    result_output_file str
    id String
    lists List<Property Map>
    A list of layer 4 rules. Each element contains the following attributes:
    resourceId String
    bindStatuses List<String>
    limit Number
    offset Number
    resultOutputFile String

    Supporting Types

    GetDayuEipList

    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