Volcengine v0.0.26 published on Friday, Sep 13, 2024 by Volcengine
volcengine.vpc.Vpcs
Explore with Pulumi AI
Use this data source to query detailed information of vpcs
Example Usage
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Volcengine = Pulumi.Volcengine;
return await Deployment.RunAsync(() =>
{
var @default = Volcengine.Vpc.Vpcs.Invoke(new()
{
Ids = new[]
{
"vpc-mizl7m1kqccg5smt1bdpijuj",
},
});
});
package main
import (
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/volcengine/pulumi-volcengine/sdk/go/volcengine/vpc"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := vpc.Vpcs(ctx, &vpc.VpcsArgs{
Ids: []string{
"vpc-mizl7m1kqccg5smt1bdpijuj",
},
}, nil)
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.volcengine.vpc.VpcFunctions;
import com.pulumi.volcengine.vpc_vpcs.inputs.VpcsArgs;
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 default = VpcFunctions.Vpcs(VpcsArgs.builder()
.ids("vpc-mizl7m1kqccg5smt1bdpijuj")
.build());
}
}
import pulumi
import pulumi_volcengine as volcengine
default = volcengine.vpc.vpcs(ids=["vpc-mizl7m1kqccg5smt1bdpijuj"])
import * as pulumi from "@pulumi/pulumi";
import * as volcengine from "@pulumi/volcengine";
const default = volcengine.vpc.Vpcs({
ids: ["vpc-mizl7m1kqccg5smt1bdpijuj"],
});
variables:
default:
fn::invoke:
Function: volcengine:vpc:Vpcs
Arguments:
ids:
- vpc-mizl7m1kqccg5smt1bdpijuj
Using Vpcs
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 vpcs(args: VpcsArgs, opts?: InvokeOptions): Promise<VpcsResult>
function vpcsOutput(args: VpcsOutputArgs, opts?: InvokeOptions): Output<VpcsResult>
def vpcs(ids: Optional[Sequence[str]] = None,
name_regex: Optional[str] = None,
output_file: Optional[str] = None,
project_name: Optional[str] = None,
tags: Optional[Sequence[VpcsTag]] = None,
vpc_name: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> VpcsResult
def vpcs_output(ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
name_regex: Optional[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[VpcsTagArgs]]]] = None,
vpc_name: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[VpcsResult]
func Vpcs(ctx *Context, args *VpcsArgs, opts ...InvokeOption) (*VpcsResult, error)
func VpcsOutput(ctx *Context, args *VpcsOutputArgs, opts ...InvokeOption) VpcsResultOutput
public static class Vpcs
{
public static Task<VpcsResult> InvokeAsync(VpcsArgs args, InvokeOptions? opts = null)
public static Output<VpcsResult> Invoke(VpcsInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<VpcsResult> vpcs(VpcsArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: volcengine:vpc:Vpcs
arguments:
# arguments dictionary
The following arguments are supported:
- Ids List<string>
- A list of VPC IDs.
- Name
Regex string - A Name Regex of Vpc.
- Output
File string - File name where to save data source results.
- Project
Name string - The ProjectName of the VPC.
- List<Vpcs
Tag> - Tags.
- Vpc
Name string - The vpc name to query.
- Ids []string
- A list of VPC IDs.
- Name
Regex string - A Name Regex of Vpc.
- Output
File string - File name where to save data source results.
- Project
Name string - The ProjectName of the VPC.
- []Vpcs
Tag - Tags.
- Vpc
Name string - The vpc name to query.
- ids List<String>
- A list of VPC IDs.
- name
Regex String - A Name Regex of Vpc.
- output
File String - File name where to save data source results.
- project
Name String - The ProjectName of the VPC.
- List<Vpcs
Tag> - Tags.
- vpc
Name String - The vpc name to query.
- ids string[]
- A list of VPC IDs.
- name
Regex string - A Name Regex of Vpc.
- output
File string - File name where to save data source results.
- project
Name string - The ProjectName of the VPC.
- Vpcs
Tag[] - Tags.
- vpc
Name string - The vpc name to query.
- ids Sequence[str]
- A list of VPC IDs.
- name_
regex str - A Name Regex of Vpc.
- output_
file str - File name where to save data source results.
- project_
name str - The ProjectName of the VPC.
- Sequence[Vpcs
Tag] - Tags.
- vpc_
name str - The vpc name to query.
- ids List<String>
- A list of VPC IDs.
- name
Regex String - A Name Regex of Vpc.
- output
File String - File name where to save data source results.
- project
Name String - The ProjectName of the VPC.
- List<Property Map>
- Tags.
- vpc
Name String - The vpc name to query.
Vpcs Result
The following output properties are available:
- Id string
- The provider-assigned unique ID for this managed resource.
- Total
Count int - The total count of Vpc query.
- Vpcs
List<Vpcs
Vpc> - The collection of Vpc query.
- Ids List<string>
- Name
Regex string - Output
File string - Project
Name string - The ProjectName of the VPC.
- List<Vpcs
Tag> - Tags.
- Vpc
Name string - The name of VPC.
- Id string
- The provider-assigned unique ID for this managed resource.
- Total
Count int - The total count of Vpc query.
- Vpcs
[]Vpcs
Vpc - The collection of Vpc query.
- Ids []string
- Name
Regex string - Output
File string - Project
Name string - The ProjectName of the VPC.
- []Vpcs
Tag - Tags.
- Vpc
Name string - The name of VPC.
- id String
- The provider-assigned unique ID for this managed resource.
- total
Count Integer - The total count of Vpc query.
- vpcs
List<Vpcs
Vpc> - The collection of Vpc query.
- ids List<String>
- name
Regex String - output
File String - project
Name String - The ProjectName of the VPC.
- List<Vpcs
Tag> - Tags.
- vpc
Name String - The name of VPC.
- id string
- The provider-assigned unique ID for this managed resource.
- total
Count number - The total count of Vpc query.
- vpcs
Vpcs
Vpc[] - The collection of Vpc query.
- ids string[]
- name
Regex string - output
File string - project
Name string - The ProjectName of the VPC.
- Vpcs
Tag[] - Tags.
- vpc
Name string - The name of VPC.
- id str
- The provider-assigned unique ID for this managed resource.
- total_
count int - The total count of Vpc query.
- vpcs
Sequence[Vpcs
Vpc] - The collection of Vpc query.
- ids Sequence[str]
- name_
regex str - output_
file str - project_
name str - The ProjectName of the VPC.
- Sequence[Vpcs
Tag] - Tags.
- vpc_
name str - The name of VPC.
- id String
- The provider-assigned unique ID for this managed resource.
- total
Count Number - The total count of Vpc query.
- vpcs List<Property Map>
- The collection of Vpc query.
- ids List<String>
- name
Regex String - output
File String - project
Name String - The ProjectName of the VPC.
- List<Property Map>
- Tags.
- vpc
Name String - The name of VPC.
Supporting Types
VpcsTag
VpcsVpc
- Account
Id string - The account ID of VPC.
- Associate
Cens List<VpcsVpc Associate Cen> - The associate cen list of VPC.
- Auxiliary
Cidr List<string>Blocks - The auxiliary cidr block list of VPC.
- Cidr
Block string - The cidr block of VPC.
- Creation
Time string - The create time of VPC.
- Description string
- The description of VPC.
- Dns
Servers List<string> - The dns server list of VPC.
- Ipv6Cidr
Block string - The IPv6 CIDR block of the VPC.
- Nat
Gateway List<string>Ids - The nat gateway ID list of VPC.
- Project
Name string - The ProjectName of the VPC.
- Route
Table List<string>Ids - The route table ID list of VPC.
- Security
Group List<string>Ids - The security group ID list of VPC.
- Status string
- The status of VPC.
- Subnet
Ids List<string> - The subnet ID list of VPC.
- List<Vpcs
Vpc Tag> - Tags.
- Update
Time string - The update time of VPC.
- Vpc
Id string - The ID of VPC.
- Vpc
Name string - The vpc name to query.
- Account
Id string - The account ID of VPC.
- Associate
Cens []VpcsVpc Associate Cen - The associate cen list of VPC.
- Auxiliary
Cidr []stringBlocks - The auxiliary cidr block list of VPC.
- Cidr
Block string - The cidr block of VPC.
- Creation
Time string - The create time of VPC.
- Description string
- The description of VPC.
- Dns
Servers []string - The dns server list of VPC.
- Ipv6Cidr
Block string - The IPv6 CIDR block of the VPC.
- Nat
Gateway []stringIds - The nat gateway ID list of VPC.
- Project
Name string - The ProjectName of the VPC.
- Route
Table []stringIds - The route table ID list of VPC.
- Security
Group []stringIds - The security group ID list of VPC.
- Status string
- The status of VPC.
- Subnet
Ids []string - The subnet ID list of VPC.
- []Vpcs
Vpc Tag - Tags.
- Update
Time string - The update time of VPC.
- Vpc
Id string - The ID of VPC.
- Vpc
Name string - The vpc name to query.
- account
Id String - The account ID of VPC.
- associate
Cens List<VpcsVpc Associate Cen> - The associate cen list of VPC.
- auxiliary
Cidr List<String>Blocks - The auxiliary cidr block list of VPC.
- cidr
Block String - The cidr block of VPC.
- creation
Time String - The create time of VPC.
- description String
- The description of VPC.
- dns
Servers List<String> - The dns server list of VPC.
- ipv6Cidr
Block String - The IPv6 CIDR block of the VPC.
- nat
Gateway List<String>Ids - The nat gateway ID list of VPC.
- project
Name String - The ProjectName of the VPC.
- route
Table List<String>Ids - The route table ID list of VPC.
- security
Group List<String>Ids - The security group ID list of VPC.
- status String
- The status of VPC.
- subnet
Ids List<String> - The subnet ID list of VPC.
- List<Vpcs
Vpc Tag> - Tags.
- update
Time String - The update time of VPC.
- vpc
Id String - The ID of VPC.
- vpc
Name String - The vpc name to query.
- account
Id string - The account ID of VPC.
- associate
Cens VpcsVpc Associate Cen[] - The associate cen list of VPC.
- auxiliary
Cidr string[]Blocks - The auxiliary cidr block list of VPC.
- cidr
Block string - The cidr block of VPC.
- creation
Time string - The create time of VPC.
- description string
- The description of VPC.
- dns
Servers string[] - The dns server list of VPC.
- ipv6Cidr
Block string - The IPv6 CIDR block of the VPC.
- nat
Gateway string[]Ids - The nat gateway ID list of VPC.
- project
Name string - The ProjectName of the VPC.
- route
Table string[]Ids - The route table ID list of VPC.
- security
Group string[]Ids - The security group ID list of VPC.
- status string
- The status of VPC.
- subnet
Ids string[] - The subnet ID list of VPC.
- Vpcs
Vpc Tag[] - Tags.
- update
Time string - The update time of VPC.
- vpc
Id string - The ID of VPC.
- vpc
Name string - The vpc name to query.
- account_
id str - The account ID of VPC.
- associate_
cens Sequence[VpcsVpc Associate Cen] - The associate cen list of VPC.
- auxiliary_
cidr_ Sequence[str]blocks - The auxiliary cidr block list of VPC.
- cidr_
block str - The cidr block of VPC.
- creation_
time str - The create time of VPC.
- description str
- The description of VPC.
- dns_
servers Sequence[str] - The dns server list of VPC.
- ipv6_
cidr_ strblock - The IPv6 CIDR block of the VPC.
- nat_
gateway_ Sequence[str]ids - The nat gateway ID list of VPC.
- project_
name str - The ProjectName of the VPC.
- route_
table_ Sequence[str]ids - The route table ID list of VPC.
- security_
group_ Sequence[str]ids - The security group ID list of VPC.
- status str
- The status of VPC.
- subnet_
ids Sequence[str] - The subnet ID list of VPC.
- Sequence[Vpcs
Vpc Tag] - Tags.
- update_
time str - The update time of VPC.
- vpc_
id str - The ID of VPC.
- vpc_
name str - The vpc name to query.
- account
Id String - The account ID of VPC.
- associate
Cens List<Property Map> - The associate cen list of VPC.
- auxiliary
Cidr List<String>Blocks - The auxiliary cidr block list of VPC.
- cidr
Block String - The cidr block of VPC.
- creation
Time String - The create time of VPC.
- description String
- The description of VPC.
- dns
Servers List<String> - The dns server list of VPC.
- ipv6Cidr
Block String - The IPv6 CIDR block of the VPC.
- nat
Gateway List<String>Ids - The nat gateway ID list of VPC.
- project
Name String - The ProjectName of the VPC.
- route
Table List<String>Ids - The route table ID list of VPC.
- security
Group List<String>Ids - The security group ID list of VPC.
- status String
- The status of VPC.
- subnet
Ids List<String> - The subnet ID list of VPC.
- List<Property Map>
- Tags.
- update
Time String - The update time of VPC.
- vpc
Id String - The ID of VPC.
- vpc
Name String - The vpc name to query.
VpcsVpcAssociateCen
- Cen
Id string - The ID of CEN.
- Cen
Owner stringId - The owner ID of CEN.
- Cen
Status string - The status of CEN.
- Cen
Id string - The ID of CEN.
- Cen
Owner stringId - The owner ID of CEN.
- Cen
Status string - The status of CEN.
- cen
Id String - The ID of CEN.
- cen
Owner StringId - The owner ID of CEN.
- cen
Status String - The status of CEN.
- cen
Id string - The ID of CEN.
- cen
Owner stringId - The owner ID of CEN.
- cen
Status string - The status of CEN.
- cen_
id str - The ID of CEN.
- cen_
owner_ strid - The owner ID of CEN.
- cen_
status str - The status of CEN.
- cen
Id String - The ID of CEN.
- cen
Owner StringId - The owner ID of CEN.
- cen
Status String - The status of CEN.
VpcsVpcTag
Package Details
- Repository
- volcengine volcengine/pulumi-volcengine
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
volcengine
Terraform Provider.