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

tencentcloud.getLighthouseInstanceTrafficPackage

Explore with Pulumi AI

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

    Use this data source to query detailed information of lighthouse instance_traffic_package

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as tencentcloud from "@pulumi/tencentcloud";
    
    const instanceTrafficPackage = tencentcloud.getLighthouseInstanceTrafficPackage({});
    
    import pulumi
    import pulumi_tencentcloud as tencentcloud
    
    instance_traffic_package = tencentcloud.get_lighthouse_instance_traffic_package()
    
    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.GetLighthouseInstanceTrafficPackage(ctx, &tencentcloud.GetLighthouseInstanceTrafficPackageArgs{}, 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 instanceTrafficPackage = Tencentcloud.GetLighthouseInstanceTrafficPackage.Invoke();
    
    });
    
    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.GetLighthouseInstanceTrafficPackageArgs;
    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 instanceTrafficPackage = TencentcloudFunctions.getLighthouseInstanceTrafficPackage();
    
        }
    }
    
    variables:
      instanceTrafficPackage:
        fn::invoke:
          function: tencentcloud:getLighthouseInstanceTrafficPackage
          arguments: {}
    

    Using getLighthouseInstanceTrafficPackage

    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 getLighthouseInstanceTrafficPackage(args: GetLighthouseInstanceTrafficPackageArgs, opts?: InvokeOptions): Promise<GetLighthouseInstanceTrafficPackageResult>
    function getLighthouseInstanceTrafficPackageOutput(args: GetLighthouseInstanceTrafficPackageOutputArgs, opts?: InvokeOptions): Output<GetLighthouseInstanceTrafficPackageResult>
    def get_lighthouse_instance_traffic_package(id: Optional[str] = None,
                                                instance_ids: Optional[Sequence[str]] = None,
                                                limit: Optional[float] = None,
                                                offset: Optional[float] = None,
                                                result_output_file: Optional[str] = None,
                                                opts: Optional[InvokeOptions] = None) -> GetLighthouseInstanceTrafficPackageResult
    def get_lighthouse_instance_traffic_package_output(id: Optional[pulumi.Input[str]] = None,
                                                instance_ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
                                                limit: Optional[pulumi.Input[float]] = None,
                                                offset: Optional[pulumi.Input[float]] = None,
                                                result_output_file: Optional[pulumi.Input[str]] = None,
                                                opts: Optional[InvokeOptions] = None) -> Output[GetLighthouseInstanceTrafficPackageResult]
    func GetLighthouseInstanceTrafficPackage(ctx *Context, args *GetLighthouseInstanceTrafficPackageArgs, opts ...InvokeOption) (*GetLighthouseInstanceTrafficPackageResult, error)
    func GetLighthouseInstanceTrafficPackageOutput(ctx *Context, args *GetLighthouseInstanceTrafficPackageOutputArgs, opts ...InvokeOption) GetLighthouseInstanceTrafficPackageResultOutput

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

    public static class GetLighthouseInstanceTrafficPackage 
    {
        public static Task<GetLighthouseInstanceTrafficPackageResult> InvokeAsync(GetLighthouseInstanceTrafficPackageArgs args, InvokeOptions? opts = null)
        public static Output<GetLighthouseInstanceTrafficPackageResult> Invoke(GetLighthouseInstanceTrafficPackageInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetLighthouseInstanceTrafficPackageResult> getLighthouseInstanceTrafficPackage(GetLighthouseInstanceTrafficPackageArgs args, InvokeOptions options)
    public static Output<GetLighthouseInstanceTrafficPackageResult> getLighthouseInstanceTrafficPackage(GetLighthouseInstanceTrafficPackageArgs args, InvokeOptions options)
    
    fn::invoke:
      function: tencentcloud:index/getLighthouseInstanceTrafficPackage:getLighthouseInstanceTrafficPackage
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Id string
    InstanceIds List<string>
    Instance ID list.
    Limit double
    Number of returned results. Default value is 20. Maximum value is 100.
    Offset double
    Offset. Default value is 0.
    ResultOutputFile string
    Used to save results.
    Id string
    InstanceIds []string
    Instance ID list.
    Limit float64
    Number of returned results. Default value is 20. Maximum value is 100.
    Offset float64
    Offset. Default value is 0.
    ResultOutputFile string
    Used to save results.
    id String
    instanceIds List<String>
    Instance ID list.
    limit Double
    Number of returned results. Default value is 20. Maximum value is 100.
    offset Double
    Offset. Default value is 0.
    resultOutputFile String
    Used to save results.
    id string
    instanceIds string[]
    Instance ID list.
    limit number
    Number of returned results. Default value is 20. Maximum value is 100.
    offset number
    Offset. Default value is 0.
    resultOutputFile string
    Used to save results.
    id str
    instance_ids Sequence[str]
    Instance ID list.
    limit float
    Number of returned results. Default value is 20. Maximum value is 100.
    offset float
    Offset. Default value is 0.
    result_output_file str
    Used to save results.
    id String
    instanceIds List<String>
    Instance ID list.
    limit Number
    Number of returned results. Default value is 20. Maximum value is 100.
    offset Number
    Offset. Default value is 0.
    resultOutputFile String
    Used to save results.

    getLighthouseInstanceTrafficPackage Result

    The following output properties are available:

    id String
    instanceTrafficPackageSets List<Property Map>
    List of details of instance traffic packages.
    instanceIds List<String>
    limit Number
    offset Number
    resultOutputFile String

    Supporting Types

    GetLighthouseInstanceTrafficPackageInstanceTrafficPackageSet

    instanceId String
    Instance ID.
    trafficPackageSets List<Property Map>
    List of traffic package details.

    GetLighthouseInstanceTrafficPackageInstanceTrafficPackageSetTrafficPackageSet

    Deadline string
    The expiration time of the traffic package. Expressed according to the ISO8601 standard, and using UTC time. The format is YYYY-MM-DDThh:mm:ssZ..
    EndTime string
    The end time of the effective period of the traffic packet. Expressed according to the ISO8601 standard, and using UTC time. The format is YYYY-MM-DDThh:mm:ssZ.
    StartTime string
    The start time of the effective cycle of the traffic packet. Expressed according to the ISO8601 standard, and using UTC time. The format is YYYY-MM-DDThh:mm:ssZ.
    Status string
    Traffic packet status:- NETWORK_NORMAL: normal.- OVERDUE_NETWORK_DISABLED: network disconnection due to arrears.
    TrafficOverflow double
    The amount of traffic that exceeds the quota of the traffic packet during the effective period of the traffic packet, in bytes.
    TrafficPackageId string
    Traffic packet ID.
    TrafficPackageRemaining double
    The remaining traffic during the effective period of the traffic packet, in bytes.
    TrafficPackageTotal double
    The total traffic in bytes during the effective period of the traffic packet.
    TrafficUsed double
    Traffic has been used during the effective period of the traffic packet, in bytes.
    Deadline string
    The expiration time of the traffic package. Expressed according to the ISO8601 standard, and using UTC time. The format is YYYY-MM-DDThh:mm:ssZ..
    EndTime string
    The end time of the effective period of the traffic packet. Expressed according to the ISO8601 standard, and using UTC time. The format is YYYY-MM-DDThh:mm:ssZ.
    StartTime string
    The start time of the effective cycle of the traffic packet. Expressed according to the ISO8601 standard, and using UTC time. The format is YYYY-MM-DDThh:mm:ssZ.
    Status string
    Traffic packet status:- NETWORK_NORMAL: normal.- OVERDUE_NETWORK_DISABLED: network disconnection due to arrears.
    TrafficOverflow float64
    The amount of traffic that exceeds the quota of the traffic packet during the effective period of the traffic packet, in bytes.
    TrafficPackageId string
    Traffic packet ID.
    TrafficPackageRemaining float64
    The remaining traffic during the effective period of the traffic packet, in bytes.
    TrafficPackageTotal float64
    The total traffic in bytes during the effective period of the traffic packet.
    TrafficUsed float64
    Traffic has been used during the effective period of the traffic packet, in bytes.
    deadline String
    The expiration time of the traffic package. Expressed according to the ISO8601 standard, and using UTC time. The format is YYYY-MM-DDThh:mm:ssZ..
    endTime String
    The end time of the effective period of the traffic packet. Expressed according to the ISO8601 standard, and using UTC time. The format is YYYY-MM-DDThh:mm:ssZ.
    startTime String
    The start time of the effective cycle of the traffic packet. Expressed according to the ISO8601 standard, and using UTC time. The format is YYYY-MM-DDThh:mm:ssZ.
    status String
    Traffic packet status:- NETWORK_NORMAL: normal.- OVERDUE_NETWORK_DISABLED: network disconnection due to arrears.
    trafficOverflow Double
    The amount of traffic that exceeds the quota of the traffic packet during the effective period of the traffic packet, in bytes.
    trafficPackageId String
    Traffic packet ID.
    trafficPackageRemaining Double
    The remaining traffic during the effective period of the traffic packet, in bytes.
    trafficPackageTotal Double
    The total traffic in bytes during the effective period of the traffic packet.
    trafficUsed Double
    Traffic has been used during the effective period of the traffic packet, in bytes.
    deadline string
    The expiration time of the traffic package. Expressed according to the ISO8601 standard, and using UTC time. The format is YYYY-MM-DDThh:mm:ssZ..
    endTime string
    The end time of the effective period of the traffic packet. Expressed according to the ISO8601 standard, and using UTC time. The format is YYYY-MM-DDThh:mm:ssZ.
    startTime string
    The start time of the effective cycle of the traffic packet. Expressed according to the ISO8601 standard, and using UTC time. The format is YYYY-MM-DDThh:mm:ssZ.
    status string
    Traffic packet status:- NETWORK_NORMAL: normal.- OVERDUE_NETWORK_DISABLED: network disconnection due to arrears.
    trafficOverflow number
    The amount of traffic that exceeds the quota of the traffic packet during the effective period of the traffic packet, in bytes.
    trafficPackageId string
    Traffic packet ID.
    trafficPackageRemaining number
    The remaining traffic during the effective period of the traffic packet, in bytes.
    trafficPackageTotal number
    The total traffic in bytes during the effective period of the traffic packet.
    trafficUsed number
    Traffic has been used during the effective period of the traffic packet, in bytes.
    deadline str
    The expiration time of the traffic package. Expressed according to the ISO8601 standard, and using UTC time. The format is YYYY-MM-DDThh:mm:ssZ..
    end_time str
    The end time of the effective period of the traffic packet. Expressed according to the ISO8601 standard, and using UTC time. The format is YYYY-MM-DDThh:mm:ssZ.
    start_time str
    The start time of the effective cycle of the traffic packet. Expressed according to the ISO8601 standard, and using UTC time. The format is YYYY-MM-DDThh:mm:ssZ.
    status str
    Traffic packet status:- NETWORK_NORMAL: normal.- OVERDUE_NETWORK_DISABLED: network disconnection due to arrears.
    traffic_overflow float
    The amount of traffic that exceeds the quota of the traffic packet during the effective period of the traffic packet, in bytes.
    traffic_package_id str
    Traffic packet ID.
    traffic_package_remaining float
    The remaining traffic during the effective period of the traffic packet, in bytes.
    traffic_package_total float
    The total traffic in bytes during the effective period of the traffic packet.
    traffic_used float
    Traffic has been used during the effective period of the traffic packet, in bytes.
    deadline String
    The expiration time of the traffic package. Expressed according to the ISO8601 standard, and using UTC time. The format is YYYY-MM-DDThh:mm:ssZ..
    endTime String
    The end time of the effective period of the traffic packet. Expressed according to the ISO8601 standard, and using UTC time. The format is YYYY-MM-DDThh:mm:ssZ.
    startTime String
    The start time of the effective cycle of the traffic packet. Expressed according to the ISO8601 standard, and using UTC time. The format is YYYY-MM-DDThh:mm:ssZ.
    status String
    Traffic packet status:- NETWORK_NORMAL: normal.- OVERDUE_NETWORK_DISABLED: network disconnection due to arrears.
    trafficOverflow Number
    The amount of traffic that exceeds the quota of the traffic packet during the effective period of the traffic packet, in bytes.
    trafficPackageId String
    Traffic packet ID.
    trafficPackageRemaining Number
    The remaining traffic during the effective period of the traffic packet, in bytes.
    trafficPackageTotal Number
    The total traffic in bytes during the effective period of the traffic packet.
    trafficUsed Number
    Traffic has been used during the effective period of the traffic packet, in bytes.

    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