Alibaba Cloud v3.66.0 published on Friday, Nov 15, 2024 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);
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.
- Name
Regex string - A regex string to filter results by product name.
- Output
File string - File name where to save data source results (after running
pulumi preview
). - Sort
By string - Sort
Order string
- Ids []string
- A list of Product As End User IDs.
- Name
Regex string - A regex string to filter results by product name.
- Output
File string - File name where to save data source results (after running
pulumi preview
). - Sort
By string - Sort
Order string
- ids List<String>
- A list of Product As End User IDs.
- name
Regex String - A regex string to filter results by product name.
- output
File String - File name where to save data source results (after running
pulumi preview
). - sort
By String - sort
Order String
- ids string[]
- A list of Product As End User IDs.
- name
Regex string - A regex string to filter results by product name.
- output
File string - File name where to save data source results (after running
pulumi preview
). - sort
By string - sort
Order 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.
- name
Regex String - A regex string to filter results by product name.
- output
File String - File name where to save data source results (after running
pulumi preview
). - sort
By String - sort
Order 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.
Ali Cloud. Service Catalog. Outputs. Get Product As End Users User> - A list of Product As End User Entries. Each element contains the following attributes:
- Name
Regex string - Output
File string - Sort
By string - Sort
Order string
- Id string
- The provider-assigned unique ID for this managed resource.
- Ids []string
- A list of Product As End User IDs.
- Users
[]Get
Product As End Users User - A list of Product As End User Entries. Each element contains the following attributes:
- Name
Regex string - Output
File string - Sort
By string - Sort
Order 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<Get
Product As End Users User> - A list of Product As End User Entries. Each element contains the following attributes:
- name
Regex String - output
File String - sort
By String - sort
Order String
- id string
- The provider-assigned unique ID for this managed resource.
- ids string[]
- A list of Product As End User IDs.
- users
Get
Product As End Users User[] - A list of Product As End User Entries. Each element contains the following attributes:
- name
Regex string - output
File string - sort
By string - sort
Order 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[Get
Product As End Users User] - 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:
- name
Regex String - output
File String - sort
By String - sort
Order String
Supporting Types
GetProductAsEndUsersUser
- Create
Time string - Product creation time.According to ISO8601 standard, UTC time is used in the format: YYYY-MM-DDThh:mm:ssZ.
- Description string
- Product description.
- Has
Default boolLaunch Option - 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
. - Product
Arn string - Product ARN.
- Product
Id string - Product ID.
- Product
Name string - Product name.
- Product
Type string - Type of product.The value is Ros, which indicates the resource orchestration service (ROS).
- Provider
Name string - Product provider.
- Create
Time string - Product creation time.According to ISO8601 standard, UTC time is used in the format: YYYY-MM-DDThh:mm:ssZ.
- Description string
- Product description.
- Has
Default boolLaunch Option - 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
. - Product
Arn string - Product ARN.
- Product
Id string - Product ID.
- Product
Name string - Product name.
- Product
Type string - Type of product.The value is Ros, which indicates the resource orchestration service (ROS).
- Provider
Name string - Product provider.
- create
Time String - Product creation time.According to ISO8601 standard, UTC time is used in the format: YYYY-MM-DDThh:mm:ssZ.
- description String
- Product description.
- has
Default BooleanLaunch Option - 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
. - product
Arn String - Product ARN.
- product
Id String - Product ID.
- product
Name String - Product name.
- product
Type String - Type of product.The value is Ros, which indicates the resource orchestration service (ROS).
- provider
Name String - Product provider.
- create
Time string - Product creation time.According to ISO8601 standard, UTC time is used in the format: YYYY-MM-DDThh:mm:ssZ.
- description string
- Product description.
- has
Default booleanLaunch Option - 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
. - product
Arn string - Product ARN.
- product
Id string - Product ID.
- product
Name string - Product name.
- product
Type string - Type of product.The value is Ros, which indicates the resource orchestration service (ROS).
- provider
Name 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_ boollaunch_ option - 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.
- create
Time String - Product creation time.According to ISO8601 standard, UTC time is used in the format: YYYY-MM-DDThh:mm:ssZ.
- description String
- Product description.
- has
Default BooleanLaunch Option - 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
. - product
Arn String - Product ARN.
- product
Id String - Product ID.
- product
Name String - Product name.
- product
Type String - Type of product.The value is Ros, which indicates the resource orchestration service (ROS).
- provider
Name 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.