Alibaba Cloud v3.57.1 published on Wednesday, Jun 26, 2024 by Pulumi
alicloud.eflo.getVpds
Explore with Pulumi AI
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);
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)
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
})
}
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)),
};
});
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());
}
}
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}
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:
- Enable
Details bool - Default to
false
. Set it totrue
can output more details about resource attributes. - Ids List<string>
- A list of Vpd IDs.
- Name
Regex string - A regex string to filter results by Group Metric Rule name.
- Output
File string - File name where to save data source results (after running
pulumi preview
). - Page
Number int - Page
Size int - Resource
Group stringId - The Resource group id
- Status string
- The Vpd status. Valid values:
Available
,Not Available
,Executing
,Deleting
, - Vpd
Id string - The id of the vpd.
- Vpd
Name string - The Name of the VPD.
- Enable
Details bool - Default to
false
. Set it totrue
can output more details about resource attributes. - Ids []string
- A list of Vpd IDs.
- Name
Regex string - A regex string to filter results by Group Metric Rule name.
- Output
File string - File name where to save data source results (after running
pulumi preview
). - Page
Number int - Page
Size int - Resource
Group stringId - The Resource group id
- Status string
- The Vpd status. Valid values:
Available
,Not Available
,Executing
,Deleting
, - Vpd
Id string - The id of the vpd.
- Vpd
Name string - The Name of the VPD.
- enable
Details Boolean - Default to
false
. Set it totrue
can output more details about resource attributes. - ids List<String>
- A list of Vpd IDs.
- name
Regex String - A regex string to filter results by Group Metric Rule name.
- output
File String - File name where to save data source results (after running
pulumi preview
). - page
Number Integer - page
Size Integer - resource
Group StringId - The Resource group id
- status String
- The Vpd status. Valid values:
Available
,Not Available
,Executing
,Deleting
, - vpd
Id String - The id of the vpd.
- vpd
Name String - The Name of the VPD.
- enable
Details boolean - Default to
false
. Set it totrue
can output more details about resource attributes. - ids string[]
- A list of Vpd IDs.
- name
Regex string - A regex string to filter results by Group Metric Rule name.
- output
File string - File name where to save data source results (after running
pulumi preview
). - page
Number number - page
Size number - resource
Group stringId - The Resource group id
- status string
- The Vpd status. Valid values:
Available
,Not Available
,Executing
,Deleting
, - vpd
Id string - The id of the vpd.
- vpd
Name string - The Name of the VPD.
- enable_
details bool - Default to
false
. Set it totrue
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_ strid - 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.
- enable
Details Boolean - Default to
false
. Set it totrue
can output more details about resource attributes. - ids List<String>
- A list of Vpd IDs.
- name
Regex String - A regex string to filter results by Group Metric Rule name.
- output
File String - File name where to save data source results (after running
pulumi preview
). - page
Number Number - page
Size Number - resource
Group StringId - The Resource group id
- status String
- The Vpd status. Valid values:
Available
,Not Available
,Executing
,Deleting
, - vpd
Id String - The id of the vpd.
- vpd
Name 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.
Ali Cloud. Eflo. Outputs. Get Vpds Vpd> - A list of Vpd Entries. Each element contains the following attributes:
- Enable
Details bool - Name
Regex string - Output
File string - Page
Number int - Page
Size int - Resource
Group stringId - Resource group id
- Status string
- The Vpd status.
- Vpd
Id string - The id of the vpd.
- Vpd
Name 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
[]Get
Vpds Vpd - A list of Vpd Entries. Each element contains the following attributes:
- Enable
Details bool - Name
Regex string - Output
File string - Page
Number int - Page
Size int - Resource
Group stringId - Resource group id
- Status string
- The Vpd status.
- Vpd
Id string - The id of the vpd.
- Vpd
Name 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<Get
Vpds Vpd> - A list of Vpd Entries. Each element contains the following attributes:
- enable
Details Boolean - name
Regex String - output
File String - page
Number Integer - page
Size Integer - resource
Group StringId - Resource group id
- status String
- The Vpd status.
- vpd
Id String - The id of the vpd.
- vpd
Name 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
Get
Vpds Vpd[] - A list of Vpd Entries. Each element contains the following attributes:
- enable
Details boolean - name
Regex string - output
File string - page
Number number - page
Size number - resource
Group stringId - Resource group id
- status string
- The Vpd status.
- vpd
Id string - The id of the vpd.
- vpd
Name 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[Get
Vpds Vpd] - 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_ strid - 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:
- enable
Details Boolean - name
Regex String - output
File String - page
Number Number - page
Size Number - resource
Group StringId - Resource group id
- status String
- The Vpd status.
- vpd
Id String - The id of the vpd.
- vpd
Name String - The Name of the VPD.
Supporting Types
GetVpdsVpd
- Cidr string
- CIDR network segment
- Create
Time string - The creation time of the resource
- Gmt
Modified string - Modification time
- Id string
- The id of the vpd.
- Resource
Group stringId - The Resource group id
- Status string
- The Vpd status. Valid values:
Available
,Not Available
,Executing
,Deleting
, - Vpd
Id string - The id of the vpd.
- Vpd
Name string - The Name of the VPD.
- Cidr string
- CIDR network segment
- Create
Time string - The creation time of the resource
- Gmt
Modified string - Modification time
- Id string
- The id of the vpd.
- Resource
Group stringId - The Resource group id
- Status string
- The Vpd status. Valid values:
Available
,Not Available
,Executing
,Deleting
, - Vpd
Id string - The id of the vpd.
- Vpd
Name string - The Name of the VPD.
- cidr String
- CIDR network segment
- create
Time String - The creation time of the resource
- gmt
Modified String - Modification time
- id String
- The id of the vpd.
- resource
Group StringId - The Resource group id
- status String
- The Vpd status. Valid values:
Available
,Not Available
,Executing
,Deleting
, - vpd
Id String - The id of the vpd.
- vpd
Name String - The Name of the VPD.
- cidr string
- CIDR network segment
- create
Time string - The creation time of the resource
- gmt
Modified string - Modification time
- id string
- The id of the vpd.
- resource
Group stringId - The Resource group id
- status string
- The Vpd status. Valid values:
Available
,Not Available
,Executing
,Deleting
, - vpd
Id string - The id of the vpd.
- vpd
Name 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_ strid - 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
- create
Time String - The creation time of the resource
- gmt
Modified String - Modification time
- id String
- The id of the vpd.
- resource
Group StringId - The Resource group id
- status String
- The Vpd status. Valid values:
Available
,Not Available
,Executing
,Deleting
, - vpd
Id String - The id of the vpd.
- vpd
Name 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.