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