1. Packages
  2. Alicloud Provider
  3. API Docs
  4. servicecatalog
  5. getProductAsEndUsers
Alibaba Cloud v3.62.1 published on Monday, Sep 16, 2024 by Pulumi

alicloud.servicecatalog.getProductAsEndUsers

Explore with Pulumi AI

alicloud logo
Alibaba Cloud v3.62.1 published on Monday, Sep 16, 2024 by Pulumi

    DEPRECATED: It has been deprecated from version 1.197.0. Please use new datasource alicloud.servicecatalog.getEndUserProducts instead.

    This data source provides Service Catalog Product As End User available to the user.What is Product As End User

    NOTE: Available in 1.196.0+

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as alicloud from "@pulumi/alicloud";
    
    const default = alicloud.servicecatalog.getProductAsEndUsers({
        nameRegex: "ram模板创建",
    });
    export const alicloudServiceCatalogProductAsEndUserExampleId = _default.then(_default => _default.users?.[0]?.id);
    
    import pulumi
    import pulumi_alicloud as alicloud
    
    default = alicloud.servicecatalog.get_product_as_end_users(name_regex="ram模板创建")
    pulumi.export("alicloudServiceCatalogProductAsEndUserExampleId", default.users[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.GetProductAsEndUsers(ctx, &servicecatalog.GetProductAsEndUsersArgs{
    			NameRegex: pulumi.StringRef("ram模板创建"),
    		}, nil)
    		if err != nil {
    			return err
    		}
    		ctx.Export("alicloudServiceCatalogProductAsEndUserExampleId", _default.Users[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.GetProductAsEndUsers.Invoke(new()
        {
            NameRegex = "ram模板创建",
        });
    
        return new Dictionary<string, object?>
        {
            ["alicloudServiceCatalogProductAsEndUserExampleId"] = @default.Apply(@default => @default.Apply(getProductAsEndUsersResult => getProductAsEndUsersResult.Users[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.GetProductAsEndUsersArgs;
    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.getProductAsEndUsers(GetProductAsEndUsersArgs.builder()
                .nameRegex("ram模板创建")
                .build());
    
            ctx.export("alicloudServiceCatalogProductAsEndUserExampleId", default_.users()[0].id());
        }
    }
    
    variables:
      default:
        fn::invoke:
          Function: alicloud:servicecatalog:getProductAsEndUsers
          Arguments:
            nameRegex: ram模板创建
    outputs:
      alicloudServiceCatalogProductAsEndUserExampleId: ${default.users[0].id}
    

    Using getProductAsEndUsers

    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 getProductAsEndUsers(args: GetProductAsEndUsersArgs, opts?: InvokeOptions): Promise<GetProductAsEndUsersResult>
    function getProductAsEndUsersOutput(args: GetProductAsEndUsersOutputArgs, opts?: InvokeOptions): Output<GetProductAsEndUsersResult>
    def get_product_as_end_users(ids: Optional[Sequence[str]] = None,
                                 name_regex: Optional[str] = None,
                                 output_file: Optional[str] = None,
                                 sort_by: Optional[str] = None,
                                 sort_order: Optional[str] = None,
                                 opts: Optional[InvokeOptions] = None) -> GetProductAsEndUsersResult
    def get_product_as_end_users_output(ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
                                 name_regex: Optional[pulumi.Input[str]] = None,
                                 output_file: Optional[pulumi.Input[str]] = None,
                                 sort_by: Optional[pulumi.Input[str]] = None,
                                 sort_order: Optional[pulumi.Input[str]] = None,
                                 opts: Optional[InvokeOptions] = None) -> Output[GetProductAsEndUsersResult]
    func GetProductAsEndUsers(ctx *Context, args *GetProductAsEndUsersArgs, opts ...InvokeOption) (*GetProductAsEndUsersResult, error)
    func GetProductAsEndUsersOutput(ctx *Context, args *GetProductAsEndUsersOutputArgs, opts ...InvokeOption) GetProductAsEndUsersResultOutput

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

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

    The following arguments are supported:

    Ids List<string>
    A list of Product As End User 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).
    SortBy string
    SortOrder string
    Ids []string
    A list of Product As End User 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).
    SortBy string
    SortOrder string
    ids List<String>
    A list of Product As End User 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).
    sortBy String
    sortOrder String
    ids string[]
    A list of Product As End User 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).
    sortBy string
    sortOrder string
    ids Sequence[str]
    A list of Product As End User 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).
    sort_by str
    sort_order str
    ids List<String>
    A list of Product As End User 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).
    sortBy String
    sortOrder String

    getProductAsEndUsers Result

    The following output properties are available:

    Id string
    The provider-assigned unique ID for this managed resource.
    Ids List<string>
    A list of Product As End User IDs.
    Users List<Pulumi.AliCloud.ServiceCatalog.Outputs.GetProductAsEndUsersUser>
    A list of Product As End User Entries. Each element contains the following attributes:
    NameRegex string
    OutputFile string
    SortBy string
    SortOrder string
    Id string
    The provider-assigned unique ID for this managed resource.
    Ids []string
    A list of Product As End User IDs.
    Users []GetProductAsEndUsersUser
    A list of Product As End User Entries. Each element contains the following attributes:
    NameRegex string
    OutputFile string
    SortBy string
    SortOrder string
    id String
    The provider-assigned unique ID for this managed resource.
    ids List<String>
    A list of Product As End User IDs.
    users List<GetProductAsEndUsersUser>
    A list of Product As End User Entries. Each element contains the following attributes:
    nameRegex String
    outputFile String
    sortBy String
    sortOrder String
    id string
    The provider-assigned unique ID for this managed resource.
    ids string[]
    A list of Product As End User IDs.
    users GetProductAsEndUsersUser[]
    A list of Product As End User Entries. Each element contains the following attributes:
    nameRegex string
    outputFile string
    sortBy string
    sortOrder string
    id str
    The provider-assigned unique ID for this managed resource.
    ids Sequence[str]
    A list of Product As End User IDs.
    users Sequence[GetProductAsEndUsersUser]
    A list of Product As End User Entries. Each element contains the following attributes:
    name_regex str
    output_file str
    sort_by str
    sort_order str
    id String
    The provider-assigned unique ID for this managed resource.
    ids List<String>
    A list of Product As End User IDs.
    users List<Property Map>
    A list of Product As End User Entries. Each element contains the following attributes:
    nameRegex String
    outputFile String
    sortBy String
    sortOrder String

    Supporting Types

    GetProductAsEndUsersUser

    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. > 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. > 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. > 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. > 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. > 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. > 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.62.1 published on Monday, Sep 16, 2024 by Pulumi