All Products
Search
Document Center

Service Catalog:AssociatePrincipalWithPortfolio

Last Updated:Nov 05, 2025

Associates a portfolio with a RAM identity.

Try it now

Try this API in OpenAPI Explorer, no manual signing needed. Successful calls auto-generate SDK code matching your parameters. Download it with built-in credential security for local usage.

Test

RAM authorization

No authorization for this operation. If you encounter issues with this operation, contact technical support.

Request parameters

Parameter

Type

Required

Description

Example

PortfolioId

string

Yes

The portfolio ID.

port-bp1yt7582g****

PrincipalType

string

Yes

The type of the RAM identity. Valid values:

  • RamUser: RAM user.

  • RamRole: RAM role.

RamUser

PrincipalId

string

Yes

The ID of the RAM identity.

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****

Response elements

Parameter

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.