1. Packages
  2. Alibaba Cloud Provider
  3. API Docs
  4. eflo
  5. getVpds
Alibaba Cloud v3.76.0 published on Tuesday, Apr 8, 2025 by Pulumi

alicloud.eflo.getVpds

Explore with Pulumi AI

Alibaba Cloud v3.76.0 published on Tuesday, Apr 8, 2025 by Pulumi

This data source provides Eflo Vpd available to the user.What is Vpd

NOTE: Available in 1.201.0+

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";

const _default = alicloud.eflo.getVpds({
    ids: [defaultAlicloudEfloVpd.id],
    nameRegex: defaultAlicloudEfloVpd.name,
    vpdName: "RMC-Terraform-Test",
});
export const alicloudEfloVpdExampleId = _default.then(_default => _default.vpds?.[0]?.id);
Copy
import pulumi
import pulumi_alicloud as alicloud

default = alicloud.eflo.get_vpds(ids=[default_alicloud_eflo_vpd["id"]],
    name_regex=default_alicloud_eflo_vpd["name"],
    vpd_name="RMC-Terraform-Test")
pulumi.export("alicloudEfloVpdExampleId", default.vpds[0].id)
Copy
package main

import (
	"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/eflo"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_default, err := eflo.GetVpds(ctx, &eflo.GetVpdsArgs{
Ids: interface{}{
defaultAlicloudEfloVpd.Id,
},
NameRegex: pulumi.StringRef(defaultAlicloudEfloVpd.Name),
VpdName: pulumi.StringRef("RMC-Terraform-Test"),
}, nil);
if err != nil {
return err
}
ctx.Export("alicloudEfloVpdExampleId", _default.Vpds[0].Id)
return nil
})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AliCloud = Pulumi.AliCloud;

return await Deployment.RunAsync(() => 
{
    var @default = AliCloud.Eflo.GetVpds.Invoke(new()
    {
        Ids = new[]
        {
            defaultAlicloudEfloVpd.Id,
        },
        NameRegex = defaultAlicloudEfloVpd.Name,
        VpdName = "RMC-Terraform-Test",
    });

    return new Dictionary<string, object?>
    {
        ["alicloudEfloVpdExampleId"] = @default.Apply(@default => @default.Apply(getVpdsResult => getVpdsResult.Vpds[0]?.Id)),
    };
});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.alicloud.eflo.EfloFunctions;
import com.pulumi.alicloud.eflo.inputs.GetVpdsArgs;
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 = EfloFunctions.getVpds(GetVpdsArgs.builder()
            .ids(defaultAlicloudEfloVpd.id())
            .nameRegex(defaultAlicloudEfloVpd.name())
            .vpdName("RMC-Terraform-Test")
            .build());

        ctx.export("alicloudEfloVpdExampleId", default_.vpds()[0].id());
    }
}
Copy
variables:
  default:
    fn::invoke:
      function: alicloud:eflo:getVpds
      arguments:
        ids:
          - ${defaultAlicloudEfloVpd.id}
        nameRegex: ${defaultAlicloudEfloVpd.name}
        vpdName: RMC-Terraform-Test
outputs:
  alicloudEfloVpdExampleId: ${default.vpds[0].id}
Copy

Using getVpds

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 getVpds(args: GetVpdsArgs, opts?: InvokeOptions): Promise<GetVpdsResult>
function getVpdsOutput(args: GetVpdsOutputArgs, opts?: InvokeOptions): Output<GetVpdsResult>
Copy
def get_vpds(enable_details: Optional[bool] = None,
             ids: Optional[Sequence[str]] = None,
             name_regex: Optional[str] = None,
             output_file: Optional[str] = None,
             page_number: Optional[int] = None,
             page_size: Optional[int] = None,
             resource_group_id: Optional[str] = None,
             status: Optional[str] = None,
             vpd_id: Optional[str] = None,
             vpd_name: Optional[str] = None,
             opts: Optional[InvokeOptions] = None) -> GetVpdsResult
def get_vpds_output(enable_details: Optional[pulumi.Input[bool]] = None,
             ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
             name_regex: Optional[pulumi.Input[str]] = None,
             output_file: Optional[pulumi.Input[str]] = None,
             page_number: Optional[pulumi.Input[int]] = None,
             page_size: Optional[pulumi.Input[int]] = None,
             resource_group_id: Optional[pulumi.Input[str]] = None,
             status: Optional[pulumi.Input[str]] = None,
             vpd_id: Optional[pulumi.Input[str]] = None,
             vpd_name: Optional[pulumi.Input[str]] = None,
             opts: Optional[InvokeOptions] = None) -> Output[GetVpdsResult]
Copy
func GetVpds(ctx *Context, args *GetVpdsArgs, opts ...InvokeOption) (*GetVpdsResult, error)
func GetVpdsOutput(ctx *Context, args *GetVpdsOutputArgs, opts ...InvokeOption) GetVpdsResultOutput
Copy

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

public static class GetVpds 
{
    public static Task<GetVpdsResult> InvokeAsync(GetVpdsArgs args, InvokeOptions? opts = null)
    public static Output<GetVpdsResult> Invoke(GetVpdsInvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<GetVpdsResult> getVpds(GetVpdsArgs args, InvokeOptions options)
public static Output<GetVpdsResult> getVpds(GetVpdsArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: alicloud:eflo/getVpds:getVpds
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

EnableDetails bool
Default to false. Set it to true can output more details about resource attributes.
Ids List<string>
A list of Vpd IDs.
NameRegex Changes to this property will trigger replacement. string
A regex string to filter results by Group Metric Rule name.
OutputFile string
File name where to save data source results (after running pulumi preview).
PageNumber int
PageSize int
ResourceGroupId Changes to this property will trigger replacement. string
The Resource group id
Status Changes to this property will trigger replacement. string
The Vpd status. Valid values: Available, Not Available, Executing, Deleting,
VpdId Changes to this property will trigger replacement. string
The id of the vpd.
VpdName Changes to this property will trigger replacement. string
The Name of the VPD.
EnableDetails bool
Default to false. Set it to true can output more details about resource attributes.
Ids []string
A list of Vpd IDs.
NameRegex Changes to this property will trigger replacement. string
A regex string to filter results by Group Metric Rule name.
OutputFile string
File name where to save data source results (after running pulumi preview).
PageNumber int
PageSize int
ResourceGroupId Changes to this property will trigger replacement. string
The Resource group id
Status Changes to this property will trigger replacement. string
The Vpd status. Valid values: Available, Not Available, Executing, Deleting,
VpdId Changes to this property will trigger replacement. string
The id of the vpd.
VpdName Changes to this property will trigger replacement. string
The Name of the VPD.
enableDetails Boolean
Default to false. Set it to true can output more details about resource attributes.
ids List<String>
A list of Vpd IDs.
nameRegex Changes to this property will trigger replacement. String
A regex string to filter results by Group Metric Rule name.
outputFile String
File name where to save data source results (after running pulumi preview).
pageNumber Integer
pageSize Integer
resourceGroupId Changes to this property will trigger replacement. String
The Resource group id
status Changes to this property will trigger replacement. String
The Vpd status. Valid values: Available, Not Available, Executing, Deleting,
vpdId Changes to this property will trigger replacement. String
The id of the vpd.
vpdName Changes to this property will trigger replacement. String
The Name of the VPD.
enableDetails boolean
Default to false. Set it to true can output more details about resource attributes.
ids string[]
A list of Vpd IDs.
nameRegex Changes to this property will trigger replacement. string
A regex string to filter results by Group Metric Rule name.
outputFile string
File name where to save data source results (after running pulumi preview).
pageNumber number
pageSize number
resourceGroupId Changes to this property will trigger replacement. string
The Resource group id
status Changes to this property will trigger replacement. string
The Vpd status. Valid values: Available, Not Available, Executing, Deleting,
vpdId Changes to this property will trigger replacement. string
The id of the vpd.
vpdName Changes to this property will trigger replacement. string
The Name of the VPD.
enable_details bool
Default to false. Set it to true can output more details about resource attributes.
ids Sequence[str]
A list of Vpd IDs.
name_regex Changes to this property will trigger replacement. str
A regex string to filter results by Group Metric Rule name.
output_file str
File name where to save data source results (after running pulumi preview).
page_number int
page_size int
resource_group_id Changes to this property will trigger replacement. str
The Resource group id
status Changes to this property will trigger replacement. str
The Vpd status. Valid values: Available, Not Available, Executing, Deleting,
vpd_id Changes to this property will trigger replacement. str
The id of the vpd.
vpd_name Changes to this property will trigger replacement. str
The Name of the VPD.
enableDetails Boolean
Default to false. Set it to true can output more details about resource attributes.
ids List<String>
A list of Vpd IDs.
nameRegex Changes to this property will trigger replacement. String
A regex string to filter results by Group Metric Rule name.
outputFile String
File name where to save data source results (after running pulumi preview).
pageNumber Number
pageSize Number
resourceGroupId Changes to this property will trigger replacement. String
The Resource group id
status Changes to this property will trigger replacement. String
The Vpd status. Valid values: Available, Not Available, Executing, Deleting,
vpdId Changes to this property will trigger replacement. String
The id of the vpd.
vpdName Changes to this property will trigger replacement. String
The Name of the VPD.

getVpds Result

The following output properties are available:

Id string
The provider-assigned unique ID for this managed resource.
Ids List<string>
A list of Vpd IDs.
Names List<string>
A list of name of Vpds.
Vpds List<Pulumi.AliCloud.Eflo.Outputs.GetVpdsVpd>
A list of Vpd Entries. Each element contains the following attributes:
EnableDetails bool
NameRegex string
OutputFile string
PageNumber int
PageSize int
ResourceGroupId string
Resource group id
Status string
The Vpd status.
VpdId string
The id of the vpd.
VpdName string
The Name of the VPD.
Id string
The provider-assigned unique ID for this managed resource.
Ids []string
A list of Vpd IDs.
Names []string
A list of name of Vpds.
Vpds []GetVpdsVpd
A list of Vpd Entries. Each element contains the following attributes:
EnableDetails bool
NameRegex string
OutputFile string
PageNumber int
PageSize int
ResourceGroupId string
Resource group id
Status string
The Vpd status.
VpdId string
The id of the vpd.
VpdName string
The Name of the VPD.
id String
The provider-assigned unique ID for this managed resource.
ids List<String>
A list of Vpd IDs.
names List<String>
A list of name of Vpds.
vpds List<GetVpdsVpd>
A list of Vpd Entries. Each element contains the following attributes:
enableDetails Boolean
nameRegex String
outputFile String
pageNumber Integer
pageSize Integer
resourceGroupId String
Resource group id
status String
The Vpd status.
vpdId String
The id of the vpd.
vpdName String
The Name of the VPD.
id string
The provider-assigned unique ID for this managed resource.
ids string[]
A list of Vpd IDs.
names string[]
A list of name of Vpds.
vpds GetVpdsVpd[]
A list of Vpd Entries. Each element contains the following attributes:
enableDetails boolean
nameRegex string
outputFile string
pageNumber number
pageSize number
resourceGroupId string
Resource group id
status string
The Vpd status.
vpdId string
The id of the vpd.
vpdName string
The Name of the VPD.
id str
The provider-assigned unique ID for this managed resource.
ids Sequence[str]
A list of Vpd IDs.
names Sequence[str]
A list of name of Vpds.
vpds Sequence[GetVpdsVpd]
A list of Vpd Entries. Each element contains the following attributes:
enable_details bool
name_regex str
output_file str
page_number int
page_size int
resource_group_id str
Resource group id
status str
The Vpd status.
vpd_id str
The id of the vpd.
vpd_name str
The Name of the VPD.
id String
The provider-assigned unique ID for this managed resource.
ids List<String>
A list of Vpd IDs.
names List<String>
A list of name of Vpds.
vpds List<Property Map>
A list of Vpd Entries. Each element contains the following attributes:
enableDetails Boolean
nameRegex String
outputFile String
pageNumber Number
pageSize Number
resourceGroupId String
Resource group id
status String
The Vpd status.
vpdId String
The id of the vpd.
vpdName String
The Name of the VPD.

Supporting Types

GetVpdsVpd

Cidr This property is required. string
CIDR network segment
CreateTime This property is required. string
The creation time of the resource
GmtModified This property is required. string
Modification time
Id This property is required. string
The id of the vpd.
ResourceGroupId This property is required. string
The Resource group id
Status This property is required. string
The Vpd status. Valid values: Available, Not Available, Executing, Deleting,
VpdId This property is required. string
The id of the vpd.
VpdName This property is required. string
The Name of the VPD.
Cidr This property is required. string
CIDR network segment
CreateTime This property is required. string
The creation time of the resource
GmtModified This property is required. string
Modification time
Id This property is required. string
The id of the vpd.
ResourceGroupId This property is required. string
The Resource group id
Status This property is required. string
The Vpd status. Valid values: Available, Not Available, Executing, Deleting,
VpdId This property is required. string
The id of the vpd.
VpdName This property is required. string
The Name of the VPD.
cidr This property is required. String
CIDR network segment
createTime This property is required. String
The creation time of the resource
gmtModified This property is required. String
Modification time
id This property is required. String
The id of the vpd.
resourceGroupId This property is required. String
The Resource group id
status This property is required. String
The Vpd status. Valid values: Available, Not Available, Executing, Deleting,
vpdId This property is required. String
The id of the vpd.
vpdName This property is required. String
The Name of the VPD.
cidr This property is required. string
CIDR network segment
createTime This property is required. string
The creation time of the resource
gmtModified This property is required. string
Modification time
id This property is required. string
The id of the vpd.
resourceGroupId This property is required. string
The Resource group id
status This property is required. string
The Vpd status. Valid values: Available, Not Available, Executing, Deleting,
vpdId This property is required. string
The id of the vpd.
vpdName This property is required. string
The Name of the VPD.
cidr This property is required. str
CIDR network segment
create_time This property is required. str
The creation time of the resource
gmt_modified This property is required. str
Modification time
id This property is required. str
The id of the vpd.
resource_group_id This property is required. str
The Resource group id
status This property is required. str
The Vpd status. Valid values: Available, Not Available, Executing, Deleting,
vpd_id This property is required. str
The id of the vpd.
vpd_name This property is required. str
The Name of the VPD.
cidr This property is required. String
CIDR network segment
createTime This property is required. String
The creation time of the resource
gmtModified This property is required. String
Modification time
id This property is required. String
The id of the vpd.
resourceGroupId This property is required. String
The Resource group id
status This property is required. String
The Vpd status. Valid values: Available, Not Available, Executing, Deleting,
vpdId This property is required. String
The id of the vpd.
vpdName This property is required. String
The Name of the VPD.

Package Details

Repository
Alibaba Cloud pulumi/pulumi-alicloud
License
Apache-2.0
Notes
This Pulumi package is based on the alicloud Terraform Provider.
Alibaba Cloud v3.76.0 published on Tuesday, Apr 8, 2025 by Pulumi