Queries a list of portfolios.
Try it now
Test
RAM authorization
Action | Access level | Resource type | Condition key | Dependent action |
servicecatalog:ListPortfolios | get | *Portfolio
| None | None |
Request parameters
Parameter | Type | Required | Description | Example |
ProductId | string | No | The product ID. | prod-bp18r7q127**** |
| Filters | array<object> | No | The filters. | |
object | No | |||
Key | string | No | The filter key. Valid values:
| PortfolioName |
Value | string | No | The filter value. | DEMO-IT |
SortBy | string | No | The field to sort by. Set the value to | CreateTime |
SortOrder | string | No | The ordering. Valid values:
| Desc |
PageNumber | integer | No | The page number. The page number starts from 1. Default value: 1. | 1 |
PageSize | integer | No | The number of entries to return on each page. Valid values: 1 to 100. Default value: 10. | 10 |
Scope | string | No | The query scope. Valid values:
| Local |
Response elements
Parameter | Type | Description | Example |
object | The response parameters. | ||
| PortfolioDetails | array<object> | The list of portfolios. | |
object | The details of the portfolio. | ||
Description | string | The description of the portfolio. | This is a product portfolio description. |
PortfolioName | string | The name of the portfolio. | DEMO-IT |
CreateTime | string | The time when the portfolio was created. Time is displayed in UTC and formatted as | 2022-04-12T06:11:12Z |
ProviderName | string | The provider of the portfolio. | IT team |
PortfolioId | string | The ID of the portfolio. | port-bp1yt7582g**** |
PortfolioArn | string | The portfolio ARN. | acs:servicecatalog:cn-hangzhou:146611588617****:portfolio/port-bp1yt7582g**** |
RequestId | string | The request ID. | 0FEEF92D-4052-5202-87D0-3D8EC16F81BF |
TotalCount | integer | The total number of entries. | 2 |
PageNumber | integer | The page number. | 1 |
PageSize | integer | The number of entries returned per page. | 10 |
Examples
Success response
JSON format
{
"PortfolioDetails": [
{
"Description": "This is a product portfolio description.",
"PortfolioName": "DEMO-IT",
"CreateTime": "2022-04-12T06:11:12Z",
"ProviderName": "IT team",
"PortfolioId": "port-bp1yt7582g****",
"PortfolioArn": "acs:servicecatalog:cn-hangzhou:146611588617****:portfolio/port-bp1yt7582g****"
}
],
"RequestId": "0FEEF92D-4052-5202-87D0-3D8EC16F81BF",
"TotalCount": 2,
"PageNumber": 1,
"PageSize": 10
}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.