get End User Products
This data source provides Service Catalog End User Product available to the user.What is End User Product
NOTE: Available since v1.197.0.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";
const _default = alicloud.servicecatalog.getEndUserProducts({
nameRegex: "ram模板创建",
});
export const alicloudServiceCatalogEndUserProductExampleId = _default.then(_default => _default.endUserProducts?.[0]?.id);
import pulumi
import pulumi_alicloud as alicloud
default = alicloud.servicecatalog.get_end_user_products(name_regex="ram模板创建")
pulumi.export("alicloudServiceCatalogEndUserProductExampleId", default.end_user_products[0].id)
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AliCloud = Pulumi.AliCloud;
return await Deployment.RunAsync(() =>
{
var @default = AliCloud.ServiceCatalog.GetEndUserProducts.Invoke(new()
{
NameRegex = "ram模板创建",
});
return new Dictionary<string, object?>
{
["alicloudServiceCatalogEndUserProductExampleId"] = @default.Apply(@default => @default.Apply(getEndUserProductsResult => getEndUserProductsResult.EndUserProducts[0]?.Id)),
};
});
package main
import (
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/servicecatalog"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_default, err := servicecatalog.GetEndUserProducts(ctx, &servicecatalog.GetEndUserProductsArgs{
NameRegex: pulumi.StringRef("ram模板创建"),
}, nil)
if err != nil {
return err
}
ctx.Export("alicloudServiceCatalogEndUserProductExampleId", _default.EndUserProducts[0].Id)
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.alicloud.servicecatalog.ServicecatalogFunctions;
import com.pulumi.alicloud.servicecatalog.inputs.GetEndUserProductsArgs;
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 = ServicecatalogFunctions.getEndUserProducts(GetEndUserProductsArgs.builder()
.nameRegex("ram模板创建")
.build());
ctx.export("alicloudServiceCatalogEndUserProductExampleId", default_.endUserProducts()[0].id());
}
}
variables:
default:
fn::invoke:
function: alicloud:servicecatalog:getEndUserProducts
arguments:
nameRegex: ram模板创建
outputs:
alicloudServiceCatalogEndUserProductExampleId: ${default.endUserProducts[0].id}
Return
A collection of values returned by getEndUserProducts.
Parameters
A collection of arguments for invoking getEndUserProducts.
Return
A collection of values returned by getEndUserProducts.
Parameters
A list of End User Product IDs.
A regex string to filter results by product name.
File name where to save data source results (after running pulumi preview
).
The field that is used to sort the queried data. The value is fixed as CreateTime, which specifies the creation time of products.
The order in which you want to sort the queried data. Valid values: Asc
, Desc
.
See also
Return
A collection of values returned by getEndUserProducts.
Parameters
Builder for com.pulumi.alicloud.servicecatalog.kotlin.inputs.GetEndUserProductsPlainArgs.