Creates a product version.
Operation description
Before you call the CreateProductVersion operation, you must call the CreateTemplate operation to create a template.
Debugging
Authorization information
There is currently no authorization information disclosed in the API.
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. | The description of the product version. |
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 parameters
Examples
Sample success responses
JSON
format
{
"RequestId": "0FEEF92D-4052-5202-87D0-3D8EC16F81BF",
"ProductVersionId": "pv-bp15e79d26****"
}
Error codes
HTTP status code | Error code | Error message |
---|---|---|
500 | InternalError | A system error occurred. |
For a list of error codes, visit the Service error codes.