Mengkueri daftar portofolio.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
servicecatalog:ListPortfolios |
get |
*Portfolio
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| ProductId |
string |
No |
ID produk. |
prod-bp18r7q127**** |
| Filters |
array<object> |
No |
Filter. |
|
|
object |
No |
|||
| Key |
string |
No |
The filter key. Valid values:
|
PortfolioName |
| Value |
string |
No |
The filter value. |
DEMO-IT |
| SortBy |
string |
No |
Bidang yang digunakan untuk mengurutkan. Atur nilai ke |
CreateTime |
| SortOrder |
string |
No |
Pesanan. Nilai valid:
|
Desc |
| PageNumber |
integer |
No |
Nomor halaman. Nomor halaman dimulai dari 1. Nilai default: 1. |
1 |
| PageSize |
integer |
No |
Jumlah entri yang dikembalikan pada setiap halaman. Nilai valid: 1 hingga 100. Nilai default: 10. |
10 |
| Scope |
string |
No |
Cakupan (dalam OAuth) kueri. Nilai valid:
|
Local |
Elemen respons
|
Element |
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 |
Contoh
Respons sukses
JSONformat
{
"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
}
Kode kesalahan
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 500 | InternalError | A system error occurred. |
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.