get End User Products
This data source provides Service Catalog End User Product available to the user.What is End User Product
NOTE: Available in 1.197.0+
Example Usage
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());
}
}
Content copied to clipboard
Return
A collection of values returned by getEndUserProducts.
Parameters
argument
A collection of arguments for invoking getEndUserProducts.
suspend fun getEndUserProducts(ids: List<String>? = null, nameRegex: String? = null, outputFile: String? = null, pageNumber: Int? = null, pageSize: Int? = null, sortBy: String? = null, sortOrder: String? = null): GetEndUserProductsResult
Return
A collection of values returned by getEndUserProducts.
See also
Parameters
ids
A list of End User Product IDs.
name Regex
A regex string to filter results by product name.
output File
page Number
page Size
sort By
The field that is used to sort the queried data. The value is fixed as CreateTime, which specifies the creation time of products.
sort Order
The order in which you want to sort the queried data. Valid values: Asc
, Desc
.
suspend fun getEndUserProducts(argument: suspend GetEndUserProductsPlainArgsBuilder.() -> Unit): GetEndUserProductsResult
Return
A collection of values returned by getEndUserProducts.
See also
Parameters
argument
Builder for com.pulumi.alicloud.servicecatalog.kotlin.inputs.GetEndUserProductsPlainArgs.