1. Packages
  2. Alibaba Cloud Provider
  3. API Docs
  4. servicecatalog
  5. getProductAsEndUsers
Alibaba Cloud v3.75.0 published on Friday, Mar 7, 2025 by Pulumi

alicloud.servicecatalog.getProductAsEndUsers

Explore with Pulumi AI

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);
Copy
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)
Copy
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
	})
}
Copy
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)),
    };
});
Copy
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());
    }
}
Copy
variables:
  default:
    fn::invoke:
      function: alicloud:servicecatalog:getProductAsEndUsers
      arguments:
        nameRegex: ram模板创建
outputs:
  alicloudServiceCatalogProductAsEndUserExampleId: ${default.users[0].id}
Copy

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>
Copy
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]
Copy
func GetProductAsEndUsers(ctx *Context, args *GetProductAsEndUsersArgs, opts ...InvokeOption) (*GetProductAsEndUsersResult, error)
func GetProductAsEndUsersOutput(ctx *Context, args *GetProductAsEndUsersOutputArgs, opts ...InvokeOption) GetProductAsEndUsersResultOutput
Copy

> 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)
}
Copy
public static CompletableFuture<GetProductAsEndUsersResult> getProductAsEndUsers(GetProductAsEndUsersArgs args, InvokeOptions options)
public static Output<GetProductAsEndUsersResult> getProductAsEndUsers(GetProductAsEndUsersArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: alicloud:servicecatalog/getProductAsEndUsers:getProductAsEndUsers
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

Ids List<string>
A list of Product As End User IDs.
NameRegex Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. string
SortOrder Changes to this property will trigger replacement. string
Ids []string
A list of Product As End User IDs.
NameRegex Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. string
SortOrder Changes to this property will trigger replacement. string
ids List<String>
A list of Product As End User IDs.
nameRegex Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. String
sortOrder Changes to this property will trigger replacement. String
ids string[]
A list of Product As End User IDs.
nameRegex Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. string
sortOrder Changes to this property will trigger replacement. string
ids Sequence[str]
A list of Product As End User IDs.
name_regex Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. str
sort_order Changes to this property will trigger replacement. str
ids List<String>
A list of Product As End User IDs.
nameRegex Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. String
sortOrder Changes to this property will trigger replacement. 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 This property is required. string
Product creation time.According to ISO8601 standard, UTC time is used in the format: YYYY-MM-DDThh:mm:ssZ.
Description This property is required. string
Product description.
HasDefaultLaunchOption This property is required. 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 This property is required. string
ID of product, Its value is the same as product_id.
ProductArn This property is required. string
Product ARN.
ProductId This property is required. string
Product ID.
ProductName This property is required. string
Product name.
ProductType This property is required. string
Type of product.The value is Ros, which indicates the resource orchestration service (ROS).
ProviderName This property is required. string
Product provider.
CreateTime This property is required. string
Product creation time.According to ISO8601 standard, UTC time is used in the format: YYYY-MM-DDThh:mm:ssZ.
Description This property is required. string
Product description.
HasDefaultLaunchOption This property is required. 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 This property is required. string
ID of product, Its value is the same as product_id.
ProductArn This property is required. string
Product ARN.
ProductId This property is required. string
Product ID.
ProductName This property is required. string
Product name.
ProductType This property is required. string
Type of product.The value is Ros, which indicates the resource orchestration service (ROS).
ProviderName This property is required. string
Product provider.
createTime This property is required. String
Product creation time.According to ISO8601 standard, UTC time is used in the format: YYYY-MM-DDThh:mm:ssZ.
description This property is required. String
Product description.
hasDefaultLaunchOption This property is required. 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 This property is required. String
ID of product, Its value is the same as product_id.
productArn This property is required. String
Product ARN.
productId This property is required. String
Product ID.
productName This property is required. String
Product name.
productType This property is required. String
Type of product.The value is Ros, which indicates the resource orchestration service (ROS).
providerName This property is required. String
Product provider.
createTime This property is required. string
Product creation time.According to ISO8601 standard, UTC time is used in the format: YYYY-MM-DDThh:mm:ssZ.
description This property is required. string
Product description.
hasDefaultLaunchOption This property is required. 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 This property is required. string
ID of product, Its value is the same as product_id.
productArn This property is required. string
Product ARN.
productId This property is required. string
Product ID.
productName This property is required. string
Product name.
productType This property is required. string
Type of product.The value is Ros, which indicates the resource orchestration service (ROS).
providerName This property is required. string
Product provider.
create_time This property is required. str
Product creation time.According to ISO8601 standard, UTC time is used in the format: YYYY-MM-DDThh:mm:ssZ.
description This property is required. str
Product description.
has_default_launch_option This property is required. 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 This property is required. str
ID of product, Its value is the same as product_id.
product_arn This property is required. str
Product ARN.
product_id This property is required. str
Product ID.
product_name This property is required. str
Product name.
product_type This property is required. str
Type of product.The value is Ros, which indicates the resource orchestration service (ROS).
provider_name This property is required. str
Product provider.
createTime This property is required. String
Product creation time.According to ISO8601 standard, UTC time is used in the format: YYYY-MM-DDThh:mm:ssZ.
description This property is required. String
Product description.
hasDefaultLaunchOption This property is required. 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 This property is required. String
ID of product, Its value is the same as product_id.
productArn This property is required. String
Product ARN.
productId This property is required. String
Product ID.
productName This property is required. String
Product name.
productType This property is required. String
Type of product.The value is Ros, which indicates the resource orchestration service (ROS).
providerName This property is required. 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.