1. Packages
  2. Alibaba Cloud
  3. API Docs
  4. eflo
  5. getVpds
Alibaba Cloud v3.53.0 published on Wednesday, Apr 17, 2024 by Pulumi

alicloud.eflo.getVpds

Explore with Pulumi AI

alicloud logo
Alibaba Cloud v3.53.0 published on Wednesday, Apr 17, 2024 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: [alicloud_eflo_vpd["default"].id],
        nameRegex: alicloud_eflo_vpd["default"].name,
        vpdName: "RMC-Terraform-Test",
    });
    export const alicloudEfloVpdExampleId = _default.then(_default => _default.vpds?.[0]?.id);
    
    import pulumi
    import pulumi_alicloud as alicloud
    
    default = alicloud.eflo.get_vpds(ids=[alicloud_eflo_vpd["default"]["id"]],
        name_regex=alicloud_eflo_vpd["default"]["name"],
        vpd_name="RMC-Terraform-Test")
    pulumi.export("alicloudEfloVpdExampleId", default.vpds[0].id)
    
    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{}{
    alicloud_eflo_vpd.Default.Id,
    },
    NameRegex: pulumi.StringRef(alicloud_eflo_vpd.Default.Name),
    VpdName: pulumi.StringRef("RMC-Terraform-Test"),
    }, nil);
    if err != nil {
    return err
    }
    ctx.Export("alicloudEfloVpdExampleId", _default.Vpds[0].Id)
    return nil
    })
    }
    
    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[]
            {
                alicloud_eflo_vpd.Default.Id,
            },
            NameRegex = alicloud_eflo_vpd.Default.Name,
            VpdName = "RMC-Terraform-Test",
        });
    
        return new Dictionary<string, object?>
        {
            ["alicloudEfloVpdExampleId"] = @default.Apply(@default => @default.Apply(getVpdsResult => getVpdsResult.Vpds[0]?.Id)),
        };
    });
    
    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(alicloud_eflo_vpd.default().id())
                .nameRegex(alicloud_eflo_vpd.default().name())
                .vpdName("RMC-Terraform-Test")
                .build());
    
            ctx.export("alicloudEfloVpdExampleId", default_.vpds()[0].id());
        }
    }
    
    variables:
      default:
        fn::invoke:
          Function: alicloud:eflo:getVpds
          Arguments:
            ids:
              - ${alicloud_eflo_vpd.default.id}
            nameRegex: ${alicloud_eflo_vpd.default.name}
            vpdName: RMC-Terraform-Test
    outputs:
      alicloudEfloVpdExampleId: ${default.vpds[0].id}
    

    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>
    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]
    func GetVpds(ctx *Context, args *GetVpdsArgs, opts ...InvokeOption) (*GetVpdsResult, error)
    func GetVpdsOutput(ctx *Context, args *GetVpdsOutputArgs, opts ...InvokeOption) GetVpdsResultOutput

    > 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)
    }
    public static CompletableFuture<GetVpdsResult> getVpds(GetVpdsArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: alicloud:eflo/getVpds:getVpds
      arguments:
        # arguments dictionary

    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 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 string
    The Resource group id
    Status string
    The Vpd status. Valid values: Available, Not Available, Executing, Deleting,
    VpdId string
    The id of the vpd.
    VpdName 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 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 string
    The Resource group id
    Status string
    The Vpd status. Valid values: Available, Not Available, Executing, Deleting,
    VpdId string
    The id of the vpd.
    VpdName 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 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 String
    The Resource group id
    status String
    The Vpd status. Valid values: Available, Not Available, Executing, Deleting,
    vpdId String
    The id of the vpd.
    vpdName 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 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 string
    The Resource group id
    status string
    The Vpd status. Valid values: Available, Not Available, Executing, Deleting,
    vpdId string
    The id of the vpd.
    vpdName 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 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 str
    The Resource group id
    status str
    The Vpd status. Valid values: Available, Not Available, Executing, Deleting,
    vpd_id str
    The id of the vpd.
    vpd_name 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 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 String
    The Resource group id
    status String
    The Vpd status. Valid values: Available, Not Available, Executing, Deleting,
    vpdId String
    The id of the vpd.
    vpdName 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 string
    CIDR network segment
    CreateTime string
    The creation time of the resource
    GmtModified string
    Modification time
    Id string
    The id of the vpd.
    ResourceGroupId string
    The Resource group id
    Status string
    The Vpd status. Valid values: Available, Not Available, Executing, Deleting,
    VpdId string
    The id of the vpd.
    VpdName string
    The Name of the VPD.
    Cidr string
    CIDR network segment
    CreateTime string
    The creation time of the resource
    GmtModified string
    Modification time
    Id string
    The id of the vpd.
    ResourceGroupId string
    The Resource group id
    Status string
    The Vpd status. Valid values: Available, Not Available, Executing, Deleting,
    VpdId string
    The id of the vpd.
    VpdName string
    The Name of the VPD.
    cidr String
    CIDR network segment
    createTime String
    The creation time of the resource
    gmtModified String
    Modification time
    id String
    The id of the vpd.
    resourceGroupId String
    The Resource group id
    status String
    The Vpd status. Valid values: Available, Not Available, Executing, Deleting,
    vpdId String
    The id of the vpd.
    vpdName String
    The Name of the VPD.
    cidr string
    CIDR network segment
    createTime string
    The creation time of the resource
    gmtModified string
    Modification time
    id string
    The id of the vpd.
    resourceGroupId string
    The Resource group id
    status string
    The Vpd status. Valid values: Available, Not Available, Executing, Deleting,
    vpdId string
    The id of the vpd.
    vpdName string
    The Name of the VPD.
    cidr str
    CIDR network segment
    create_time str
    The creation time of the resource
    gmt_modified str
    Modification time
    id str
    The id of the vpd.
    resource_group_id str
    The Resource group id
    status str
    The Vpd status. Valid values: Available, Not Available, Executing, Deleting,
    vpd_id str
    The id of the vpd.
    vpd_name str
    The Name of the VPD.
    cidr String
    CIDR network segment
    createTime String
    The creation time of the resource
    gmtModified String
    Modification time
    id String
    The id of the vpd.
    resourceGroupId String
    The Resource group id
    status String
    The Vpd status. Valid values: Available, Not Available, Executing, Deleting,
    vpdId String
    The id of the vpd.
    vpdName 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.
    alicloud logo
    Alibaba Cloud v3.53.0 published on Wednesday, Apr 17, 2024 by Pulumi