1. Packages
  2. Volcengine
  3. API Docs
  4. transit_router
  5. BandwidthPackages
Volcengine v0.0.24 published on Tuesday, Jun 25, 2024 by Volcengine

volcengine.transit_router.BandwidthPackages

Explore with Pulumi AI

volcengine logo
Volcengine v0.0.24 published on Tuesday, Jun 25, 2024 by Volcengine

    Use this data source to query detailed information of transit router bandwidth packages

    Example Usage

    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Volcengine = Pulumi.Volcengine;
    
    return await Deployment.RunAsync(() => 
    {
        var fooBandwidthPackage = new Volcengine.Transit_router.BandwidthPackage("fooBandwidthPackage", new()
        {
            TransitRouterBandwidthPackageName = "acc-tf-test",
            Description = "acc-test",
            Bandwidth = 2,
            Period = 1,
            RenewType = "Manual",
        });
    
        var fooBandwidthPackages = Volcengine.Transit_router.BandwidthPackages.Invoke(new()
        {
            Ids = new[]
            {
                fooBandwidthPackage.Id,
            },
        });
    
    });
    
    package main
    
    import (
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    	"github.com/volcengine/pulumi-volcengine/sdk/go/volcengine/transit_router"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		fooBandwidthPackage, err := transit_router.NewBandwidthPackage(ctx, "fooBandwidthPackage", &transit_router.BandwidthPackageArgs{
    			TransitRouterBandwidthPackageName: pulumi.String("acc-tf-test"),
    			Description:                       pulumi.String("acc-test"),
    			Bandwidth:                         pulumi.Int(2),
    			Period:                            pulumi.Int(1),
    			RenewType:                         pulumi.String("Manual"),
    		})
    		if err != nil {
    			return err
    		}
    		_ = transit_router.BandwidthPackagesOutput(ctx, transit_router.BandwidthPackagesOutputArgs{
    			Ids: pulumi.StringArray{
    				fooBandwidthPackage.ID(),
    			},
    		}, nil)
    		return nil
    	})
    }
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.volcengine.transit_router.BandwidthPackage;
    import com.pulumi.volcengine.transit_router.BandwidthPackageArgs;
    import com.pulumi.volcengine.transit_router.Transit_routerFunctions;
    import com.pulumi.volcengine.transit_router.inputs.BandwidthPackagesArgs;
    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 fooBandwidthPackage = new BandwidthPackage("fooBandwidthPackage", BandwidthPackageArgs.builder()        
                .transitRouterBandwidthPackageName("acc-tf-test")
                .description("acc-test")
                .bandwidth(2)
                .period(1)
                .renewType("Manual")
                .build());
    
            final var fooBandwidthPackages = Transit_routerFunctions.BandwidthPackages(BandwidthPackagesArgs.builder()
                .ids(fooBandwidthPackage.id())
                .build());
    
        }
    }
    
    import pulumi
    import pulumi_volcengine as volcengine
    
    foo_bandwidth_package = volcengine.transit_router.BandwidthPackage("fooBandwidthPackage",
        transit_router_bandwidth_package_name="acc-tf-test",
        description="acc-test",
        bandwidth=2,
        period=1,
        renew_type="Manual")
    foo_bandwidth_packages = volcengine.transit_router.bandwidth_packages_output(ids=[foo_bandwidth_package.id])
    
    import * as pulumi from "@pulumi/pulumi";
    import * as volcengine from "@pulumi/volcengine";
    import * as volcengine from "@volcengine/pulumi";
    
    const fooBandwidthPackage = new volcengine.transit_router.BandwidthPackage("fooBandwidthPackage", {
        transitRouterBandwidthPackageName: "acc-tf-test",
        description: "acc-test",
        bandwidth: 2,
        period: 1,
        renewType: "Manual",
    });
    const fooBandwidthPackages = volcengine.transit_router.BandwidthPackagesOutput({
        ids: [fooBandwidthPackage.id],
    });
    
    resources:
      fooBandwidthPackage:
        type: volcengine:transit_router:BandwidthPackage
        properties:
          transitRouterBandwidthPackageName: acc-tf-test
          description: acc-test
          bandwidth: 2
          period: 1
          renewType: Manual
    variables:
      fooBandwidthPackages:
        fn::invoke:
          Function: volcengine:transit_router:BandwidthPackages
          Arguments:
            ids:
              - ${fooBandwidthPackage.id}
    

    Using BandwidthPackages

    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 bandwidthPackages(args: BandwidthPackagesArgs, opts?: InvokeOptions): Promise<BandwidthPackagesResult>
    function bandwidthPackagesOutput(args: BandwidthPackagesOutputArgs, opts?: InvokeOptions): Output<BandwidthPackagesResult>
    def bandwidth_packages(ids: Optional[Sequence[str]] = None,
                           output_file: Optional[str] = None,
                           project_name: Optional[str] = None,
                           tags: Optional[Sequence[BandwidthPackagesTag]] = None,
                           transit_router_bandwidth_package_name: Optional[str] = None,
                           transit_router_peer_attachment_id: Optional[str] = None,
                           opts: Optional[InvokeOptions] = None) -> BandwidthPackagesResult
    def bandwidth_packages_output(ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
                           output_file: Optional[pulumi.Input[str]] = None,
                           project_name: Optional[pulumi.Input[str]] = None,
                           tags: Optional[pulumi.Input[Sequence[pulumi.Input[BandwidthPackagesTagArgs]]]] = None,
                           transit_router_bandwidth_package_name: Optional[pulumi.Input[str]] = None,
                           transit_router_peer_attachment_id: Optional[pulumi.Input[str]] = None,
                           opts: Optional[InvokeOptions] = None) -> Output[BandwidthPackagesResult]
    func BandwidthPackages(ctx *Context, args *BandwidthPackagesArgs, opts ...InvokeOption) (*BandwidthPackagesResult, error)
    func BandwidthPackagesOutput(ctx *Context, args *BandwidthPackagesOutputArgs, opts ...InvokeOption) BandwidthPackagesResultOutput
    public static class BandwidthPackages 
    {
        public static Task<BandwidthPackagesResult> InvokeAsync(BandwidthPackagesArgs args, InvokeOptions? opts = null)
        public static Output<BandwidthPackagesResult> Invoke(BandwidthPackagesInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<BandwidthPackagesResult> bandwidthPackages(BandwidthPackagesArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: volcengine:transit_router:BandwidthPackages
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Ids List<string>
    The ID list of the TransitRouter bandwidth package.
    OutputFile string
    File name where to save data source results.
    ProjectName string
    The ProjectName of the TransitRouter bandwidth package.
    Tags List<BandwidthPackagesTag>
    Tags.
    TransitRouterBandwidthPackageName string
    The name of the TransitRouter bandwidth package.
    TransitRouterPeerAttachmentId string
    The ID of the peer attachment.
    Ids []string
    The ID list of the TransitRouter bandwidth package.
    OutputFile string
    File name where to save data source results.
    ProjectName string
    The ProjectName of the TransitRouter bandwidth package.
    Tags []BandwidthPackagesTag
    Tags.
    TransitRouterBandwidthPackageName string
    The name of the TransitRouter bandwidth package.
    TransitRouterPeerAttachmentId string
    The ID of the peer attachment.
    ids List<String>
    The ID list of the TransitRouter bandwidth package.
    outputFile String
    File name where to save data source results.
    projectName String
    The ProjectName of the TransitRouter bandwidth package.
    tags List<BandwidthPackagesTag>
    Tags.
    transitRouterBandwidthPackageName String
    The name of the TransitRouter bandwidth package.
    transitRouterPeerAttachmentId String
    The ID of the peer attachment.
    ids string[]
    The ID list of the TransitRouter bandwidth package.
    outputFile string
    File name where to save data source results.
    projectName string
    The ProjectName of the TransitRouter bandwidth package.
    tags BandwidthPackagesTag[]
    Tags.
    transitRouterBandwidthPackageName string
    The name of the TransitRouter bandwidth package.
    transitRouterPeerAttachmentId string
    The ID of the peer attachment.
    ids Sequence[str]
    The ID list of the TransitRouter bandwidth package.
    output_file str
    File name where to save data source results.
    project_name str
    The ProjectName of the TransitRouter bandwidth package.
    tags Sequence[BandwidthPackagesTag]
    Tags.
    transit_router_bandwidth_package_name str
    The name of the TransitRouter bandwidth package.
    transit_router_peer_attachment_id str
    The ID of the peer attachment.
    ids List<String>
    The ID list of the TransitRouter bandwidth package.
    outputFile String
    File name where to save data source results.
    projectName String
    The ProjectName of the TransitRouter bandwidth package.
    tags List<Property Map>
    Tags.
    transitRouterBandwidthPackageName String
    The name of the TransitRouter bandwidth package.
    transitRouterPeerAttachmentId String
    The ID of the peer attachment.

    BandwidthPackages Result

    The following output properties are available:

    BandwidthPackages List<BandwidthPackagesBandwidthPackage>
    The collection of query.
    Id string
    The provider-assigned unique ID for this managed resource.
    TotalCount int
    The total count of query.
    Ids List<string>
    OutputFile string
    ProjectName string
    The ProjectName of the transit router bandwidth package.
    Tags List<BandwidthPackagesTag>
    Tags.
    TransitRouterBandwidthPackageName string
    The name of the transit router bandwidth package.
    TransitRouterPeerAttachmentId string
    The ID of the peer attachment.
    BandwidthPackages []BandwidthPackagesBandwidthPackage
    The collection of query.
    Id string
    The provider-assigned unique ID for this managed resource.
    TotalCount int
    The total count of query.
    Ids []string
    OutputFile string
    ProjectName string
    The ProjectName of the transit router bandwidth package.
    Tags []BandwidthPackagesTag
    Tags.
    TransitRouterBandwidthPackageName string
    The name of the transit router bandwidth package.
    TransitRouterPeerAttachmentId string
    The ID of the peer attachment.
    bandwidthPackages List<BandwidthPackagesBandwidthPackage>
    The collection of query.
    id String
    The provider-assigned unique ID for this managed resource.
    totalCount Integer
    The total count of query.
    ids List<String>
    outputFile String
    projectName String
    The ProjectName of the transit router bandwidth package.
    tags List<BandwidthPackagesTag>
    Tags.
    transitRouterBandwidthPackageName String
    The name of the transit router bandwidth package.
    transitRouterPeerAttachmentId String
    The ID of the peer attachment.
    bandwidthPackages BandwidthPackagesBandwidthPackage[]
    The collection of query.
    id string
    The provider-assigned unique ID for this managed resource.
    totalCount number
    The total count of query.
    ids string[]
    outputFile string
    projectName string
    The ProjectName of the transit router bandwidth package.
    tags BandwidthPackagesTag[]
    Tags.
    transitRouterBandwidthPackageName string
    The name of the transit router bandwidth package.
    transitRouterPeerAttachmentId string
    The ID of the peer attachment.
    bandwidth_packages Sequence[BandwidthPackagesBandwidthPackage]
    The collection of query.
    id str
    The provider-assigned unique ID for this managed resource.
    total_count int
    The total count of query.
    ids Sequence[str]
    output_file str
    project_name str
    The ProjectName of the transit router bandwidth package.
    tags Sequence[BandwidthPackagesTag]
    Tags.
    transit_router_bandwidth_package_name str
    The name of the transit router bandwidth package.
    transit_router_peer_attachment_id str
    The ID of the peer attachment.
    bandwidthPackages List<Property Map>
    The collection of query.
    id String
    The provider-assigned unique ID for this managed resource.
    totalCount Number
    The total count of query.
    ids List<String>
    outputFile String
    projectName String
    The ProjectName of the transit router bandwidth package.
    tags List<Property Map>
    Tags.
    transitRouterBandwidthPackageName String
    The name of the transit router bandwidth package.
    transitRouterPeerAttachmentId String
    The ID of the peer attachment.

    Supporting Types

    BandwidthPackagesBandwidthPackage

    AccountId string
    The account id.
    Allocations List<BandwidthPackagesBandwidthPackageAllocation>
    The detailed information on cross regional connections associated with bandwidth packets.
    Bandwidth int
    The bandwidth peak of the transit router bandwidth package. Unit: Mbps.
    BillingType string
    The billing type of the transit router bandwidth package.
    BusinessStatus string
    The business status of the transit router bandwidth package.
    CreationTime string
    The create time of the transit router bandwidth package.
    DeleteTime string
    The delete time of the transit router bandwidth package.
    Description string
    The description of the transit router bandwidth package.
    ExpiredTime string
    The expired time of the transit router bandwidth package.
    Id string
    The id of the transit router bandwidth package.
    LocalGeographicRegionSetId string
    The local geographic region set ID.
    PeerGeographicRegionSetId string
    The peer geographic region set ID.
    ProjectName string
    The ProjectName of the TransitRouter bandwidth package.
    RemainingBandwidth int
    The remaining bandwidth of the transit router bandwidth package. Unit: Mbps.
    Status string
    The status of the transit router bandwidth package.
    Tags List<BandwidthPackagesBandwidthPackageTag>
    Tags.
    TransitRouterBandwidthPackageId string
    The id of the transit router attachment.
    TransitRouterBandwidthPackageName string
    The name of the TransitRouter bandwidth package.
    UpdateTime string
    The update time of the transit router bandwidth package.
    AccountId string
    The account id.
    Allocations []BandwidthPackagesBandwidthPackageAllocation
    The detailed information on cross regional connections associated with bandwidth packets.
    Bandwidth int
    The bandwidth peak of the transit router bandwidth package. Unit: Mbps.
    BillingType string
    The billing type of the transit router bandwidth package.
    BusinessStatus string
    The business status of the transit router bandwidth package.
    CreationTime string
    The create time of the transit router bandwidth package.
    DeleteTime string
    The delete time of the transit router bandwidth package.
    Description string
    The description of the transit router bandwidth package.
    ExpiredTime string
    The expired time of the transit router bandwidth package.
    Id string
    The id of the transit router bandwidth package.
    LocalGeographicRegionSetId string
    The local geographic region set ID.
    PeerGeographicRegionSetId string
    The peer geographic region set ID.
    ProjectName string
    The ProjectName of the TransitRouter bandwidth package.
    RemainingBandwidth int
    The remaining bandwidth of the transit router bandwidth package. Unit: Mbps.
    Status string
    The status of the transit router bandwidth package.
    Tags []BandwidthPackagesBandwidthPackageTag
    Tags.
    TransitRouterBandwidthPackageId string
    The id of the transit router attachment.
    TransitRouterBandwidthPackageName string
    The name of the TransitRouter bandwidth package.
    UpdateTime string
    The update time of the transit router bandwidth package.
    accountId String
    The account id.
    allocations List<BandwidthPackagesBandwidthPackageAllocation>
    The detailed information on cross regional connections associated with bandwidth packets.
    bandwidth Integer
    The bandwidth peak of the transit router bandwidth package. Unit: Mbps.
    billingType String
    The billing type of the transit router bandwidth package.
    businessStatus String
    The business status of the transit router bandwidth package.
    creationTime String
    The create time of the transit router bandwidth package.
    deleteTime String
    The delete time of the transit router bandwidth package.
    description String
    The description of the transit router bandwidth package.
    expiredTime String
    The expired time of the transit router bandwidth package.
    id String
    The id of the transit router bandwidth package.
    localGeographicRegionSetId String
    The local geographic region set ID.
    peerGeographicRegionSetId String
    The peer geographic region set ID.
    projectName String
    The ProjectName of the TransitRouter bandwidth package.
    remainingBandwidth Integer
    The remaining bandwidth of the transit router bandwidth package. Unit: Mbps.
    status String
    The status of the transit router bandwidth package.
    tags List<BandwidthPackagesBandwidthPackageTag>
    Tags.
    transitRouterBandwidthPackageId String
    The id of the transit router attachment.
    transitRouterBandwidthPackageName String
    The name of the TransitRouter bandwidth package.
    updateTime String
    The update time of the transit router bandwidth package.
    accountId string
    The account id.
    allocations BandwidthPackagesBandwidthPackageAllocation[]
    The detailed information on cross regional connections associated with bandwidth packets.
    bandwidth number
    The bandwidth peak of the transit router bandwidth package. Unit: Mbps.
    billingType string
    The billing type of the transit router bandwidth package.
    businessStatus string
    The business status of the transit router bandwidth package.
    creationTime string
    The create time of the transit router bandwidth package.
    deleteTime string
    The delete time of the transit router bandwidth package.
    description string
    The description of the transit router bandwidth package.
    expiredTime string
    The expired time of the transit router bandwidth package.
    id string
    The id of the transit router bandwidth package.
    localGeographicRegionSetId string
    The local geographic region set ID.
    peerGeographicRegionSetId string
    The peer geographic region set ID.
    projectName string
    The ProjectName of the TransitRouter bandwidth package.
    remainingBandwidth number
    The remaining bandwidth of the transit router bandwidth package. Unit: Mbps.
    status string
    The status of the transit router bandwidth package.
    tags BandwidthPackagesBandwidthPackageTag[]
    Tags.
    transitRouterBandwidthPackageId string
    The id of the transit router attachment.
    transitRouterBandwidthPackageName string
    The name of the TransitRouter bandwidth package.
    updateTime string
    The update time of the transit router bandwidth package.
    account_id str
    The account id.
    allocations Sequence[BandwidthPackagesBandwidthPackageAllocation]
    The detailed information on cross regional connections associated with bandwidth packets.
    bandwidth int
    The bandwidth peak of the transit router bandwidth package. Unit: Mbps.
    billing_type str
    The billing type of the transit router bandwidth package.
    business_status str
    The business status of the transit router bandwidth package.
    creation_time str
    The create time of the transit router bandwidth package.
    delete_time str
    The delete time of the transit router bandwidth package.
    description str
    The description of the transit router bandwidth package.
    expired_time str
    The expired time of the transit router bandwidth package.
    id str
    The id of the transit router bandwidth package.
    local_geographic_region_set_id str
    The local geographic region set ID.
    peer_geographic_region_set_id str
    The peer geographic region set ID.
    project_name str
    The ProjectName of the TransitRouter bandwidth package.
    remaining_bandwidth int
    The remaining bandwidth of the transit router bandwidth package. Unit: Mbps.
    status str
    The status of the transit router bandwidth package.
    tags Sequence[BandwidthPackagesBandwidthPackageTag]
    Tags.
    transit_router_bandwidth_package_id str
    The id of the transit router attachment.
    transit_router_bandwidth_package_name str
    The name of the TransitRouter bandwidth package.
    update_time str
    The update time of the transit router bandwidth package.
    accountId String
    The account id.
    allocations List<Property Map>
    The detailed information on cross regional connections associated with bandwidth packets.
    bandwidth Number
    The bandwidth peak of the transit router bandwidth package. Unit: Mbps.
    billingType String
    The billing type of the transit router bandwidth package.
    businessStatus String
    The business status of the transit router bandwidth package.
    creationTime String
    The create time of the transit router bandwidth package.
    deleteTime String
    The delete time of the transit router bandwidth package.
    description String
    The description of the transit router bandwidth package.
    expiredTime String
    The expired time of the transit router bandwidth package.
    id String
    The id of the transit router bandwidth package.
    localGeographicRegionSetId String
    The local geographic region set ID.
    peerGeographicRegionSetId String
    The peer geographic region set ID.
    projectName String
    The ProjectName of the TransitRouter bandwidth package.
    remainingBandwidth Number
    The remaining bandwidth of the transit router bandwidth package. Unit: Mbps.
    status String
    The status of the transit router bandwidth package.
    tags List<Property Map>
    Tags.
    transitRouterBandwidthPackageId String
    The id of the transit router attachment.
    transitRouterBandwidthPackageName String
    The name of the TransitRouter bandwidth package.
    updateTime String
    The update time of the transit router bandwidth package.

    BandwidthPackagesBandwidthPackageAllocation

    AllocateTime string
    The delete time of the transit router bandwidth package.
    DeleteTime string
    The delete time of the transit router bandwidth package.
    LocalRegionId string
    The local region id of the transit router.
    TransitRouterPeerAttachmentId string
    The ID of the peer attachment.
    AllocateTime string
    The delete time of the transit router bandwidth package.
    DeleteTime string
    The delete time of the transit router bandwidth package.
    LocalRegionId string
    The local region id of the transit router.
    TransitRouterPeerAttachmentId string
    The ID of the peer attachment.
    allocateTime String
    The delete time of the transit router bandwidth package.
    deleteTime String
    The delete time of the transit router bandwidth package.
    localRegionId String
    The local region id of the transit router.
    transitRouterPeerAttachmentId String
    The ID of the peer attachment.
    allocateTime string
    The delete time of the transit router bandwidth package.
    deleteTime string
    The delete time of the transit router bandwidth package.
    localRegionId string
    The local region id of the transit router.
    transitRouterPeerAttachmentId string
    The ID of the peer attachment.
    allocate_time str
    The delete time of the transit router bandwidth package.
    delete_time str
    The delete time of the transit router bandwidth package.
    local_region_id str
    The local region id of the transit router.
    transit_router_peer_attachment_id str
    The ID of the peer attachment.
    allocateTime String
    The delete time of the transit router bandwidth package.
    deleteTime String
    The delete time of the transit router bandwidth package.
    localRegionId String
    The local region id of the transit router.
    transitRouterPeerAttachmentId String
    The ID of the peer attachment.

    BandwidthPackagesBandwidthPackageTag

    Key string
    The Key of Tags.
    Value string
    The Value of Tags.
    Key string
    The Key of Tags.
    Value string
    The Value of Tags.
    key String
    The Key of Tags.
    value String
    The Value of Tags.
    key string
    The Key of Tags.
    value string
    The Value of Tags.
    key str
    The Key of Tags.
    value str
    The Value of Tags.
    key String
    The Key of Tags.
    value String
    The Value of Tags.

    BandwidthPackagesTag

    Key string
    The Key of Tags.
    Value string
    The Value of Tags.
    Key string
    The Key of Tags.
    Value string
    The Value of Tags.
    key String
    The Key of Tags.
    value String
    The Value of Tags.
    key string
    The Key of Tags.
    value string
    The Value of Tags.
    key str
    The Key of Tags.
    value str
    The Value of Tags.
    key String
    The Key of Tags.
    value String
    The Value of Tags.

    Package Details

    Repository
    volcengine volcengine/pulumi-volcengine
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the volcengine Terraform Provider.
    volcengine logo
    Volcengine v0.0.24 published on Tuesday, Jun 25, 2024 by Volcengine