Alibaba Cloud v3.62.1 published on Monday, Sep 16, 2024 by Pulumi
alicloud.servicecatalog.getEndUserProducts
Explore with Pulumi AI
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.
- 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
). - Page
Number int - Page
Size int - Sort
By string - 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 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.
- 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
). - Page
Number int - Page
Size int - Sort
By string - 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 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.
- 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
). - page
Number Integer - page
Size Integer - sort
By String - 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 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.
- 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
). - page
Number number - page
Size number - sort
By string - 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 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.
- 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
). - page
Number Number - page
Size Number - sort
By String - 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 String - The order in which you want to sort the queried data. Valid values:
Asc
,Desc
.
getEndUserProducts Result
The following output properties are available:
- End
User List<Pulumi.Products Ali Cloud. Service Catalog. Outputs. Get End User Products End User Product> - 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.
- Name
Regex string - Output
File string - Page
Number int - Page
Size int - Sort
By string - Sort
Order string
- End
User []GetProducts End User Products End User Product - 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.
- Name
Regex string - Output
File string - Page
Number int - Page
Size int - Sort
By string - Sort
Order string
- end
User List<GetProducts End User Products End User Product> - 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.
- name
Regex String - output
File String - page
Number Integer - page
Size Integer - sort
By String - sort
Order String
- end
User GetProducts End User Products End User Product[] - 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.
- name
Regex string - output
File string - page
Number number - page
Size number - sort
By string - sort
Order string
- end_
user_ Sequence[Getproducts End User Products End User Product] - 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
- end
User List<Property Map>Products - 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.
- name
Regex String - output
File String - page
Number Number - page
Size Number - sort
By String - sort
Order String
Supporting Types
GetEndUserProductsEndUserProduct
- 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. 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
. - 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. 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
. - 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. 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
. - 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. 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
. - 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. 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.
- 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. 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
. - 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.