Associates a Resource Access Management (RAM) user or a RAM role with a product portfolio.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
servicecatalog:AssociatePrincipalWithPortfolio |
create |
*Portfolio
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| PortfolioId |
string |
Yes |
The ID of the product portfolio. |
port-bp1yt7582g**** |
| PrincipalType |
string |
Yes |
The type of the RAM entity. Valid values:
|
RamUser |
| PrincipalId |
string |
No |
The ID of the RAM entity. For information about how to obtain the ID of a RAM user, see GetUser. For information about how to obtain the ID of a RAM role, see GetRole. |
24477111603637**** |
| PrincipalPattern |
string |
No |
user/userName |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response parameters. |
||
| RequestId |
string |
The request ID. |
0FEEF92D-4052-5202-87D0-3D8EC16F81BF |
Examples
Success response
JSON format
{
"RequestId": "0FEEF92D-4052-5202-87D0-3D8EC16F81BF"
}
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.