获取应用联邦凭证。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
调试
授权信息
|
操作 |
访问级别 |
资源类型 |
条件关键字 |
关联操作 |
|
eiam:GetApplicationFederatedCredential |
get |
*ApplicationFederatedCredential
|
无 | 无 |
请求参数
|
名称 |
类型 |
必填 |
描述 |
示例值 |
| InstanceId |
string |
是 |
实例 ID。 |
idaas_ue2jvisn35ea5lmthk267xxxxx |
| ApplicationId |
string |
是 |
应用 ID。 |
app_mkv7rgt4d7i4u7zqtzev2mxxxx |
| ApplicationFederatedCredentialId |
string |
是 |
应用联邦凭证 ID。 |
afc_aaaaa1111 |
返回参数
|
名称 |
类型 |
描述 |
示例值 |
|
object |
|||
| RequestId |
string |
请求 ID。 |
0441BD79-92F3-53AA-8657-F8CE4A2B912A |
| ApplicationFederatedCredential |
object |
应用联邦凭证对象 |
|
| InstanceId |
string |
实例 ID |
idaas_ue2jvisn35ea5lmthk267xxxxx |
| ApplicationFederatedCredentialId |
string |
应用联邦凭证 ID |
afc_aaaaa1111 |
| ApplicationId |
string |
应用 ID |
app_mkv7rgt4d7i4u7zqtzev2mxxxx |
| FederatedCredentialProviderId |
string |
联邦信任源 ID |
fcp_asda1dasdxxxx |
| ApplicationFederatedCredentialType |
string |
应用联邦凭证类型 |
oidc |
| ApplicationFederatedCredentialName |
string |
应用联邦凭证名称 |
test |
| Status |
string |
应用联邦凭证状态 |
enabled |
| Description |
string |
应用联邦凭证描述 |
test |
| CreateTime |
integer |
创建时间 |
1758785994982 |
| UpdateTime |
integer |
更新时间 |
1758785994982 |
| LastUsedTime |
integer |
最近使用时间 |
1758785994982 |
| AttributeMappings |
array<object> |
属性映射 |
|
|
object |
|||
| SourceValueExpression |
string |
源值表达式 |
Append(client.applicationFederatedCredentialId, ":", cert.subject.CN, ":", cert.serialNumber) |
| TargetField |
string |
目标字段 |
client.activeSubjectUrn |
| VerificationCondition |
string |
验证条件 |
Equals(cert.subject.CN, "test") |
| VerificationMode |
string |
校验模式:freedom / structured |
|
| OidcVerificationConfig |
object |
OIDC 结构化配置(structured 模式 + oidc 类型) |
|
| Profile |
string |
OIDC 场景 Profile:generic / kubernetes / gcp_vm / azure_vm |
|
| KubernetesConfig |
object |
Kubernetes 场景配置 |
|
| Namespace |
string |
K8s 命名空间 |
|
| ServiceAccountName |
string |
K8s 服务账号名称 |
|
| PodNamePrefix |
string |
Pod 名称前缀 |
|
| GcpVmConfig |
object |
GCP VM 场景配置 |
|
| ServiceAccountId |
string |
Service Account 对应 sub |
|
| InstanceIds |
array |
VM 实例 ID 列表,最多 10 个 |
|
|
string |
|||
| ProjectId |
string |
||
| AzureVmConfig |
object |
Azure VM 场景配置 |
|
| ResourceGroupName |
string |
||
| SubscriptionId |
string |
||
| VmNames |
array |
||
|
string |
|||
| PrincipalId |
string |
||
| GenericConfig |
object |
||
| Subject |
string |
||
| Pkcs7VerificationConfig |
object |
PKCS#7 结构化配置(structured 模式 + pkcs7 类型) |
|
| InstanceIds |
array |
允许的实例 ID 列表,最多 10 个 |
|
|
string |
示例
正常返回示例
JSON格式
{
"RequestId": "0441BD79-92F3-53AA-8657-F8CE4A2B912A",
"ApplicationFederatedCredential": {
"InstanceId": "idaas_ue2jvisn35ea5lmthk267xxxxx",
"ApplicationFederatedCredentialId": "afc_aaaaa1111",
"ApplicationId": "app_mkv7rgt4d7i4u7zqtzev2mxxxx",
"FederatedCredentialProviderId": "fcp_asda1dasdxxxx",
"ApplicationFederatedCredentialType": "oidc",
"ApplicationFederatedCredentialName": "test",
"Status": "enabled",
"Description": "test",
"CreateTime": 1758785994982,
"UpdateTime": 1758785994982,
"LastUsedTime": 1758785994982,
"AttributeMappings": [
{
"SourceValueExpression": "Append(client.applicationFederatedCredentialId, \":\", cert.subject.CN, \":\", cert.serialNumber)",
"TargetField": "client.activeSubjectUrn\n"
}
],
"VerificationCondition": "Equals(cert.subject.CN, \"test\")",
"VerificationMode": "",
"OidcVerificationConfig": {
"Profile": "",
"KubernetesConfig": {
"Namespace": "",
"ServiceAccountName": "",
"PodNamePrefix": ""
},
"GcpVmConfig": {
"ServiceAccountId": "",
"InstanceIds": [
""
],
"ProjectId": ""
},
"AzureVmConfig": {
"ResourceGroupName": "",
"SubscriptionId": "",
"VmNames": [
""
],
"PrincipalId": ""
},
"GenericConfig": {
"Subject": ""
}
},
"Pkcs7VerificationConfig": {
"InstanceIds": [
""
]
}
}
}
错误码
访问错误中心查看更多错误码。
变更历史
更多信息,参考变更详情。