Creates a product version.
Operation description
Before you call the CreateProductVersion operation, you must call the CreateTemplate operation to create a template.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
servicecatalog:CreateProductVersion |
create |
*Product
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| ProductVersionName |
string |
Yes |
The name of the product version. The value must be 1 to 128 characters in length. |
1.0 |
| TemplateType |
string |
Yes |
The type of the product template. Valid values:
|
RosTerraformTemplate |
| TemplateUrl |
string |
Yes |
The URL of the template. For more information about how to obtain the URL of a template, see CreateTemplate. |
oss://servicecatalog-cn-hangzhou/146611588617****/terraform/template/tpl-bp1217we23****/template.json |
| Description |
string |
No |
The description of the product version. The value must be 1 to 128 characters in length. |
This is a product version description |
| Guidance |
string |
No |
The recommendation information. Valid values:
|
Default |
| Active |
boolean |
No |
Specifies whether the product version is active. Valid values:
|
true |
| ProductId |
string |
Yes |
The ID of the product to which the product version belongs. |
prod-bp18r7q127**** |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response parameters. |
||
| RequestId |
string |
The ID of the request. |
0FEEF92D-4052-5202-87D0-3D8EC16F81BF |
| ProductVersionId |
string |
The ID of the product version. |
pv-bp15e79d26**** |
Examples
Success response
JSON format
{
"RequestId": "0FEEF92D-4052-5202-87D0-3D8EC16F81BF",
"ProductVersionId": "pv-bp15e79d26****"
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 500 | InternalError | A system error occurred. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.