Provisioned Product
Provides a Service Catalog Provisioned Product resource. For information about Service Catalog Provisioned Product and how to use it, see What is Provisioned Product.
NOTE: Available since v1.196.0.
Example Usage
Basic Usage
import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";
const config = new pulumi.Config();
const name = config.get("name") || "tf-testAccServiceCatalogProvisionedProduct";
const _default = new alicloud.servicecatalog.ProvisionedProduct("default", {
provisionedProductName: name,
stackRegionId: "cn-hangzhou",
productVersionId: "pv-bp1d7dxy2pcc1g",
productId: "prod-bp1u3dkc282cwd",
portfolioId: "port-bp119dvn27jccw",
tags: {
v1: "tf-test",
},
parameters: [{
parameterKey: "role_name",
parameterValue: name,
}],
});
import pulumi
import pulumi_alicloud as alicloud
config = pulumi.Config()
name = config.get("name")
if name is None:
name = "tf-testAccServiceCatalogProvisionedProduct"
default = alicloud.servicecatalog.ProvisionedProduct("default",
provisioned_product_name=name,
stack_region_id="cn-hangzhou",
product_version_id="pv-bp1d7dxy2pcc1g",
product_id="prod-bp1u3dkc282cwd",
portfolio_id="port-bp119dvn27jccw",
tags={
"v1": "tf-test",
},
parameters=[{
"parameter_key": "role_name",
"parameter_value": name,
}])
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AliCloud = Pulumi.AliCloud;
return await Deployment.RunAsync(() =>
{
var config = new Config();
var name = config.Get("name") ?? "tf-testAccServiceCatalogProvisionedProduct";
var @default = new AliCloud.ServiceCatalog.ProvisionedProduct("default", new()
{
ProvisionedProductName = name,
StackRegionId = "cn-hangzhou",
ProductVersionId = "pv-bp1d7dxy2pcc1g",
ProductId = "prod-bp1u3dkc282cwd",
PortfolioId = "port-bp119dvn27jccw",
Tags =
{
{ "v1", "tf-test" },
},
Parameters = new[]
{
new AliCloud.ServiceCatalog.Inputs.ProvisionedProductParameterArgs
{
ParameterKey = "role_name",
ParameterValue = name,
},
},
});
});
package main
import (
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/servicecatalog"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi/config"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
cfg := config.New(ctx, "")
name := "tf-testAccServiceCatalogProvisionedProduct"
if param := cfg.Get("name"); param != "" {
name = param
}
_, err := servicecatalog.NewProvisionedProduct(ctx, "default", &servicecatalog.ProvisionedProductArgs{
ProvisionedProductName: pulumi.String(name),
StackRegionId: pulumi.String("cn-hangzhou"),
ProductVersionId: pulumi.String("pv-bp1d7dxy2pcc1g"),
ProductId: pulumi.String("prod-bp1u3dkc282cwd"),
PortfolioId: pulumi.String("port-bp119dvn27jccw"),
Tags: pulumi.StringMap{
"v1": pulumi.String("tf-test"),
},
Parameters: servicecatalog.ProvisionedProductParameterArray{
&servicecatalog.ProvisionedProductParameterArgs{
ParameterKey: pulumi.String("role_name"),
ParameterValue: pulumi.String(name),
},
},
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.alicloud.servicecatalog.ProvisionedProduct;
import com.pulumi.alicloud.servicecatalog.ProvisionedProductArgs;
import com.pulumi.alicloud.servicecatalog.inputs.ProvisionedProductParameterArgs;
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 config = ctx.config();
final var name = config.get("name").orElse("tf-testAccServiceCatalogProvisionedProduct");
var default_ = new ProvisionedProduct("default", ProvisionedProductArgs.builder()
.provisionedProductName(name)
.stackRegionId("cn-hangzhou")
.productVersionId("pv-bp1d7dxy2pcc1g")
.productId("prod-bp1u3dkc282cwd")
.portfolioId("port-bp119dvn27jccw")
.tags(Map.of("v1", "tf-test"))
.parameters(ProvisionedProductParameterArgs.builder()
.parameterKey("role_name")
.parameterValue(name)
.build())
.build());
}
}
configuration:
name:
type: string
default: tf-testAccServiceCatalogProvisionedProduct
resources:
default:
type: alicloud:servicecatalog:ProvisionedProduct
properties:
provisionedProductName: ${name}
stackRegionId: cn-hangzhou
productVersionId: pv-bp1d7dxy2pcc1g
productId: prod-bp1u3dkc282cwd
portfolioId: port-bp119dvn27jccw
tags:
v1: tf-test
parameters:
- parameterKey: role_name
parameterValue: ${name}
Import
Service Catalog Provisioned Product can be imported using the id, e.g.
$ pulumi import alicloud:servicecatalog/provisionedProduct:ProvisionedProduct example <id>
Properties
The creation time of the product instance
The ID of the last instance operation task
The ID of the last successful instance operation task
The ID of the last task
The output value of the template.
The RAM entity ID of the owner
The RAM entity type of the owner
Template parameters entered by the user.The maximum value of N is 200.See the following Block Parameters
.
Product mix ID.> When there is a default Startup option, there is no need to fill in the portfolio. When there is no default Startup option, you must fill in the portfolio.
The name of the product
Product version ID.
The name of the product version
The ARN of the product instance
The ID of the instance.
The name of the instance.The length is 1~128 characters.
Instance type.The value is RosStack, which indicates the stack of Alibaba Cloud resource orchestration service (ROS).
The ID of the region to which the resource stack of the Alibaba Cloud resource orchestration service (ROS) belongs.
The status message of the product instance