CreateConstraint
Creates a constraint.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
servicecatalog:CreateConstraint |
create |
*Portfolio
*Product
|
None |
|
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| ConstraintType |
string |
Yes |
The type of the constraint. The value is fixed as Launch, which specifies the launch constraint. |
Launch |
| Config |
string |
Yes |
The configuration of the constraint. Format: { "LocalRoleName": "<role_name>" }. |
{ "LocalRoleName": "TestRole" } |
| Description |
string |
No |
The description of the constraint. The value must be 1 to 128 characters in length. |
Launch as local role TestRole |
| PortfolioId |
string |
Yes |
The ID of the product portfolio to which the constraint belongs. |
port-bp1yt7582g**** |
| ProductId |
string |
Yes |
The ID of the product for which the constraint is created. |
prod-bp18r7q127**** |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response parameters. |
||
| RequestId |
string |
The ID of the request. |
0FEEF92D-4052-5202-87D0-3D8EC16F81BF |
| ConstraintId |
string |
The ID of the constraint. |
cons-bp1yx7x42v**** |
Examples
Success response
JSON format
{
"RequestId": "0FEEF92D-4052-5202-87D0-3D8EC16F81BF",
"ConstraintId": "cons-bp1yx7x42v****"
}
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.