1. Packages
  2. Alibaba Cloud
  3. API Docs
  4. servicecatalog
  5. getEndUserProducts
Alibaba Cloud v3.56.0 published on Friday, May 31, 2024 by Pulumi

alicloud.servicecatalog.getEndUserProducts

Explore with Pulumi AI

alicloud logo
Alibaba Cloud v3.56.0 published on Friday, May 31, 2024 by Pulumi

    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)
    
    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
    	})
    }
    
    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 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}
    

    Using getEndUserProducts

    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 getEndUserProducts(args: GetEndUserProductsArgs, opts?: InvokeOptions): Promise<GetEndUserProductsResult>
    function getEndUserProductsOutput(args: GetEndUserProductsOutputArgs, opts?: InvokeOptions): Output<GetEndUserProductsResult>
    def get_end_user_products(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,
                              sort_by: Optional[str] = None,
                              sort_order: Optional[str] = None,
                              opts: Optional[InvokeOptions] = None) -> GetEndUserProductsResult
    def get_end_user_products_output(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,
                              sort_by: Optional[pulumi.Input[str]] = None,
                              sort_order: Optional[pulumi.Input[str]] = None,
                              opts: Optional[InvokeOptions] = None) -> Output[GetEndUserProductsResult]
    func GetEndUserProducts(ctx *Context, args *GetEndUserProductsArgs, opts ...InvokeOption) (*GetEndUserProductsResult, error)
    func GetEndUserProductsOutput(ctx *Context, args *GetEndUserProductsOutputArgs, opts ...InvokeOption) GetEndUserProductsResultOutput

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

    public static class GetEndUserProducts 
    {
        public static Task<GetEndUserProductsResult> InvokeAsync(GetEndUserProductsArgs args, InvokeOptions? opts = null)
        public static Output<GetEndUserProductsResult> Invoke(GetEndUserProductsInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetEndUserProductsResult> getEndUserProducts(GetEndUserProductsArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: alicloud:servicecatalog/getEndUserProducts:getEndUserProducts
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Ids List<string>
    A list of End User Product IDs.
    NameRegex string
    A regex string to filter results by product name.
    OutputFile string
    File name where to save data source results (after running pulumi preview).
    PageNumber int
    PageSize int
    SortBy string
    The field that is used to sort the queried data. The value is fixed as CreateTime, which specifies the creation time of products.
    SortOrder string
    The order in which you want to sort the queried data. Valid values: Asc, Desc.
    Ids []string
    A list of End User Product IDs.
    NameRegex string
    A regex string to filter results by product name.
    OutputFile string
    File name where to save data source results (after running pulumi preview).
    PageNumber int
    PageSize int
    SortBy string
    The field that is used to sort the queried data. The value is fixed as CreateTime, which specifies the creation time of products.
    SortOrder string
    The order in which you want to sort the queried data. Valid values: Asc, Desc.
    ids List<String>
    A list of End User Product IDs.
    nameRegex String
    A regex string to filter results by product name.
    outputFile String
    File name where to save data source results (after running pulumi preview).
    pageNumber Integer
    pageSize Integer
    sortBy String
    The field that is used to sort the queried data. The value is fixed as CreateTime, which specifies the creation time of products.
    sortOrder String
    The order in which you want to sort the queried data. Valid values: Asc, Desc.
    ids string[]
    A list of End User Product IDs.
    nameRegex string
    A regex string to filter results by product name.
    outputFile string
    File name where to save data source results (after running pulumi preview).
    pageNumber number
    pageSize number
    sortBy string
    The field that is used to sort the queried data. The value is fixed as CreateTime, which specifies the creation time of products.
    sortOrder string
    The order in which you want to sort the queried data. Valid values: Asc, Desc.
    ids Sequence[str]
    A list of End User Product IDs.
    name_regex str
    A regex string to filter results by product name.
    output_file str
    File name where to save data source results (after running pulumi preview).
    page_number int
    page_size int
    sort_by str
    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 str
    The order in which you want to sort the queried data. Valid values: Asc, Desc.
    ids List<String>
    A list of End User Product IDs.
    nameRegex String
    A regex string to filter results by product name.
    outputFile String
    File name where to save data source results (after running pulumi preview).
    pageNumber Number
    pageSize Number
    sortBy String
    The field that is used to sort the queried data. The value is fixed as CreateTime, which specifies the creation time of products.
    sortOrder String
    The order in which you want to sort the queried data. Valid values: Asc, Desc.

    getEndUserProducts Result

    The following output properties are available:

    EndUserProducts List<Pulumi.AliCloud.ServiceCatalog.Outputs.GetEndUserProductsEndUserProduct>
    A list of End User Product Entries. Each element contains the following attributes:
    Id string
    The provider-assigned unique ID for this managed resource.
    Ids List<string>
    A list of End User Product IDs.
    NameRegex string
    OutputFile string
    PageNumber int
    PageSize int
    SortBy string
    SortOrder string
    EndUserProducts []GetEndUserProductsEndUserProduct
    A list of End User Product Entries. Each element contains the following attributes:
    Id string
    The provider-assigned unique ID for this managed resource.
    Ids []string
    A list of End User Product IDs.
    NameRegex string
    OutputFile string
    PageNumber int
    PageSize int
    SortBy string
    SortOrder string
    endUserProducts List<GetEndUserProductsEndUserProduct>
    A list of End User Product Entries. Each element contains the following attributes:
    id String
    The provider-assigned unique ID for this managed resource.
    ids List<String>
    A list of End User Product IDs.
    nameRegex String
    outputFile String
    pageNumber Integer
    pageSize Integer
    sortBy String
    sortOrder String
    endUserProducts GetEndUserProductsEndUserProduct[]
    A list of End User Product Entries. Each element contains the following attributes:
    id string
    The provider-assigned unique ID for this managed resource.
    ids string[]
    A list of End User Product IDs.
    nameRegex string
    outputFile string
    pageNumber number
    pageSize number
    sortBy string
    sortOrder string
    end_user_products Sequence[GetEndUserProductsEndUserProduct]
    A list of End User Product Entries. Each element contains the following attributes:
    id str
    The provider-assigned unique ID for this managed resource.
    ids Sequence[str]
    A list of End User Product IDs.
    name_regex str
    output_file str
    page_number int
    page_size int
    sort_by str
    sort_order str
    endUserProducts List<Property Map>
    A list of End User Product Entries. Each element contains the following attributes:
    id String
    The provider-assigned unique ID for this managed resource.
    ids List<String>
    A list of End User Product IDs.
    nameRegex String
    outputFile String
    pageNumber Number
    pageSize Number
    sortBy String
    sortOrder String

    Supporting Types

    GetEndUserProductsEndUserProduct

    CreateTime string
    Product creation time.According to ISO8601 standard, UTC time is used in the format: YYYY-MM-DDThh:mm:ssZ.
    Description string
    Product description.
    HasDefaultLaunchOption bool
    Whether there is a default Startup option. Value:-true: There is a default Startup option, and there is no need to fill in the portfolio when starting the product or updating the instance.-false: there is no default Startup option. You must fill in the portfolio when starting the product or updating the instance. For more information about how to obtain the portfolio, see ListLaunchOptions.> If the product is added to only one product portfolio, there will be a default Startup option. If the product is added to multiple product combinations, there will be multiple startup options at the same time, but there is no default Startup option at this time.
    Id string
    ID of product, Its value is the same as product_id.
    ProductArn string
    Product ARN.
    ProductId string
    Product ID.
    ProductName string
    Product name.
    ProductType string
    Type of product.The value is Ros, which indicates the resource orchestration service (ROS).
    ProviderName string
    Product provider.
    CreateTime string
    Product creation time.According to ISO8601 standard, UTC time is used in the format: YYYY-MM-DDThh:mm:ssZ.
    Description string
    Product description.
    HasDefaultLaunchOption bool
    Whether there is a default Startup option. Value:-true: There is a default Startup option, and there is no need to fill in the portfolio when starting the product or updating the instance.-false: there is no default Startup option. You must fill in the portfolio when starting the product or updating the instance. For more information about how to obtain the portfolio, see ListLaunchOptions.> If the product is added to only one product portfolio, there will be a default Startup option. If the product is added to multiple product combinations, there will be multiple startup options at the same time, but there is no default Startup option at this time.
    Id string
    ID of product, Its value is the same as product_id.
    ProductArn string
    Product ARN.
    ProductId string
    Product ID.
    ProductName string
    Product name.
    ProductType string
    Type of product.The value is Ros, which indicates the resource orchestration service (ROS).
    ProviderName string
    Product provider.
    createTime String
    Product creation time.According to ISO8601 standard, UTC time is used in the format: YYYY-MM-DDThh:mm:ssZ.
    description String
    Product description.
    hasDefaultLaunchOption Boolean
    Whether there is a default Startup option. Value:-true: There is a default Startup option, and there is no need to fill in the portfolio when starting the product or updating the instance.-false: there is no default Startup option. You must fill in the portfolio when starting the product or updating the instance. For more information about how to obtain the portfolio, see ListLaunchOptions.> If the product is added to only one product portfolio, there will be a default Startup option. If the product is added to multiple product combinations, there will be multiple startup options at the same time, but there is no default Startup option at this time.
    id String
    ID of product, Its value is the same as product_id.
    productArn String
    Product ARN.
    productId String
    Product ID.
    productName String
    Product name.
    productType String
    Type of product.The value is Ros, which indicates the resource orchestration service (ROS).
    providerName String
    Product provider.
    createTime string
    Product creation time.According to ISO8601 standard, UTC time is used in the format: YYYY-MM-DDThh:mm:ssZ.
    description string
    Product description.
    hasDefaultLaunchOption boolean
    Whether there is a default Startup option. Value:-true: There is a default Startup option, and there is no need to fill in the portfolio when starting the product or updating the instance.-false: there is no default Startup option. You must fill in the portfolio when starting the product or updating the instance. For more information about how to obtain the portfolio, see ListLaunchOptions.> If the product is added to only one product portfolio, there will be a default Startup option. If the product is added to multiple product combinations, there will be multiple startup options at the same time, but there is no default Startup option at this time.
    id string
    ID of product, Its value is the same as product_id.
    productArn string
    Product ARN.
    productId string
    Product ID.
    productName string
    Product name.
    productType string
    Type of product.The value is Ros, which indicates the resource orchestration service (ROS).
    providerName string
    Product provider.
    create_time str
    Product creation time.According to ISO8601 standard, UTC time is used in the format: YYYY-MM-DDThh:mm:ssZ.
    description str
    Product description.
    has_default_launch_option bool
    Whether there is a default Startup option. Value:-true: There is a default Startup option, and there is no need to fill in the portfolio when starting the product or updating the instance.-false: there is no default Startup option. You must fill in the portfolio when starting the product or updating the instance. For more information about how to obtain the portfolio, see ListLaunchOptions.> If the product is added to only one product portfolio, there will be a default Startup option. If the product is added to multiple product combinations, there will be multiple startup options at the same time, but there is no default Startup option at this time.
    id str
    ID of product, Its value is the same as product_id.
    product_arn str
    Product ARN.
    product_id str
    Product ID.
    product_name str
    Product name.
    product_type str
    Type of product.The value is Ros, which indicates the resource orchestration service (ROS).
    provider_name str
    Product provider.
    createTime String
    Product creation time.According to ISO8601 standard, UTC time is used in the format: YYYY-MM-DDThh:mm:ssZ.
    description String
    Product description.
    hasDefaultLaunchOption Boolean
    Whether there is a default Startup option. Value:-true: There is a default Startup option, and there is no need to fill in the portfolio when starting the product or updating the instance.-false: there is no default Startup option. You must fill in the portfolio when starting the product or updating the instance. For more information about how to obtain the portfolio, see ListLaunchOptions.> If the product is added to only one product portfolio, there will be a default Startup option. If the product is added to multiple product combinations, there will be multiple startup options at the same time, but there is no default Startup option at this time.
    id String
    ID of product, Its value is the same as product_id.
    productArn String
    Product ARN.
    productId String
    Product ID.
    productName String
    Product name.
    productType String
    Type of product.The value is Ros, which indicates the resource orchestration service (ROS).
    providerName String
    Product provider.

    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.56.0 published on Friday, May 31, 2024 by Pulumi