查询应用联邦凭证列表。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
调试
授权信息
|
操作 |
访问级别 |
资源类型 |
条件关键字 |
关联操作 |
|
eiam:ListApplicationFederatedCredentials |
list |
*ApplicationFederatedCredential
|
无 | 无 |
请求参数
|
名称 |
类型 |
必填 |
描述 |
示例值 |
| InstanceId |
string |
是 |
实例 ID |
idaas_ue2jvisn35ea5lmthk267xxxxx |
| NextToken |
string |
否 |
查询凭证(Token) |
NTxxxxxexample |
| PreviousToken |
string |
否 |
查询上一页凭证(Token) |
PTxxxxxexample |
| MaxResults |
integer |
否 |
分页查询时每页行数 |
20 |
| ApplicationId |
string |
是 |
应用 ID |
app_xxxasda1 |
| ApplicationFederatedCredentialType |
string |
否 |
应用联邦凭证提供者类型 |
oidc |
返回参数
|
名称 |
类型 |
描述 |
示例值 |
|
object |
|||
| RequestId |
string |
请求 ID |
0441BD79-92F3-53AA-8657-F8CE4A2B912A |
| TotalCount |
integer |
列表总条数目 |
100 |
| NextToken |
string |
本次调用返回的查询凭证(Token)值 |
NTxxxexample |
| PreviousToken |
string |
本次调用返回的查询凭证(Token)值 |
PTxxxexample |
| MaxResults |
integer |
分页查询时每页行数 |
20 |
| ApplicationFederatedCredentials |
array<object> |
应用联邦凭证列表 |
|
|
array<object> |
|||
| InstanceId |
string |
实例 ID |
idaas_ue2jvisn35ea5lmthk267xxxxx |
| ApplicationFederatedCredentialId |
string |
应用联邦凭证 ID |
afc_adsa1sdaxxxxx |
| ApplicationId |
string |
应用 ID |
app_xxxasda1 |
| FederatedCredentialProviderId |
string |
联邦信任源 ID |
fcp_das1asda1xxxx |
| ApplicationFederatedCredentialType |
string |
应用联邦凭证类型 |
oidc |
| ApplicationFederatedCredentialName |
string |
应用联邦凭证名称 |
test |
| Status |
string |
应用联邦凭证状态 |
enabled |
| Description |
string |
应用联邦凭证描述 |
test |
| CreateTime |
integer |
创建时间。使用 Unix 时间戳,单位为毫秒。 |
1758785994982 |
| UpdateTime |
integer |
更新时间。使用 Unix 时间戳,单位为毫秒。 |
1758785994982 |
| LastUsedTime |
integer |
最近使用时间。使用 Unix 时间戳,单位为毫秒。 |
1758785994982 |
| VerificationCondition |
string |
校验条件 |
Equals(cert.subject.CN, "test") |
| VerificationMode |
string |
校验模式,枚举值
|
structured |
| OidcVerificationConfig |
object |
OIDC 结构化配置 |
|
| Profile |
string |
OIDC 场景 Profile,不同 Profilte 对应不同配置,枚举值:
|
kubernetes |
| KubernetesConfig |
object |
Kubernetes 场景配置 |
|
| Namespace |
string |
K8s 命名空间 |
default |
| ServiceAccountName |
string |
K8s 服务账号名称 |
default |
| PodNamePrefix |
string |
Pod 名称前缀 |
test-pod |
| GcpVmConfig |
object |
GCP VM 场景配置 |
|
| ServiceAccountId |
string |
Service Account 对应 sub |
123456789 |
| InstanceIds |
array |
VM 实例 ID 列表 |
|
|
string |
VM 实例 ID |
6193072600270353961 |
|
| ProjectId |
string |
所属的 Gcp 项目 ID |
6193072600270353961 |
| AzureVmConfig |
object |
Azure VM 场景配置 |
|
| ResourceGroupName |
string |
Azure 资源组名称。 |
user_default |
| SubscriptionId |
string |
订阅 ID |
1770621546825D6J5G |
| VmNames |
array |
虚拟机名称列表 |
|
|
string |
虚拟机名称 |
testName |
|
| PrincipalId |
string |
身份标识。 |
5dee234a-1b4c-4ad7-a19f-fxxxxx |
| GenericConfig |
object |
通用场景配置 |
|
| Subject |
string |
主体标识 |
test_subject |
| Pkcs7VerificationConfig |
object |
PKCS#7 结构化配置 |
|
| InstanceIds |
array |
允许的实例 ID 列表 |
|
|
string |
实例 ID |
i-d0abcd1234efgh5678 |
示例
正常返回示例
JSON格式
{
"RequestId": "0441BD79-92F3-53AA-8657-F8CE4A2B912A",
"TotalCount": 100,
"NextToken": "NTxxxexample",
"PreviousToken": "PTxxxexample",
"MaxResults": 20,
"ApplicationFederatedCredentials": [
{
"InstanceId": "idaas_ue2jvisn35ea5lmthk267xxxxx",
"ApplicationFederatedCredentialId": "afc_adsa1sdaxxxxx",
"ApplicationId": "app_xxxasda1",
"FederatedCredentialProviderId": "fcp_das1asda1xxxx",
"ApplicationFederatedCredentialType": "oidc",
"ApplicationFederatedCredentialName": "test",
"Status": "enabled",
"Description": "test",
"CreateTime": 1758785994982,
"UpdateTime": 1758785994982,
"LastUsedTime": 1758785994982,
"VerificationCondition": "\t\nEquals(cert.subject.CN, \"test\")",
"VerificationMode": "structured",
"OidcVerificationConfig": {
"Profile": "kubernetes",
"KubernetesConfig": {
"Namespace": "default",
"ServiceAccountName": "default",
"PodNamePrefix": "test-pod"
},
"GcpVmConfig": {
"ServiceAccountId": "123456789",
"InstanceIds": [
"6193072600270353961"
],
"ProjectId": "6193072600270353961"
},
"AzureVmConfig": {
"ResourceGroupName": "user_default",
"SubscriptionId": "1770621546825D6J5G",
"VmNames": [
"testName"
],
"PrincipalId": "5dee234a-1b4c-4ad7-a19f-fxxxxx\n"
},
"GenericConfig": {
"Subject": "test_subject"
}
},
"Pkcs7VerificationConfig": {
"InstanceIds": [
"i-d0abcd1234efgh5678"
]
}
}
]
}
错误码
访问错误中心查看更多错误码。
变更历史
更多信息,参考变更详情。