CreateUserPoolClient API.
下表仅列出该接口特有的请求参数和部分公共参数。更多信息请见公共参数。
参数 | 类型 | 是否必填 | 示例值 | 描述 |
|---|---|---|---|---|
Action | String | 是 | CreateUserPoolClient | 要执行的操作,取值:CreateUserPoolClient。 |
Version | String | 是 | 2025-10-30 | API的版本,取值:2025-10-30。 |
LogoUri | String | 否 | https://img.freepik.com/free-vector/colorful-bird-illustration-gradient_343694-1741.jpg | LogoUri |
UserPoolUid | String | 是 | example | UserPoolUid |
Name | String | 是 | example | Name parameter. |
ClientType | String | 是 | WEB_APPLICATION | ClientType parameter. |
Description | String | 否 | example | Description parameter. |
AllowedCallbackUrls | Array of String | 否 | ["http://example.com"] | AllowedCallbackUrls |
下表仅列出本接口特有的返回参数。更多信息请参见返回结构。
参数 | 类型 | 示例值 | 描述 |
|---|---|---|---|
LogoUri | String | https://img.freepik.com/free-vector/colorful-bird-illustration-gradient_343694-1741.jpg | LogoUri |
Uid | String | 123456 | Uid |
ClientType | String | WEB_APPLICATION | ClientType |
Name | String | example | Name parameter. |
Description | String | example | Description parameter. |
ClientSecret | String | example | ClientSecret parameter. |
AllowedCallbackUrls | Array of String | ["http://example.com"] | AllowedCallbackUrls |
AllowedLogoutUrls | Array of String | ["http://example.com"] | AllowedLogoutUrls |
AllowedWebOrigins | Array of String | ["http://example.com"] | AllowedWebOrigins parameter. |
AllowedCors | Array of String | ["http://example.com"] | AllowedCors |
IdToken | Object | example | IdToken |
RefreshToken | Object | example | RefreshToken parameter. |
CreateTime | String | 2025-09-15T07:59:24Z | CreateTime |
UpdateTime | String | 2025-09-15T07:59:24Z | UpdateTime |
LoginPageUrl | String | http://example.com | LoginPageUrl |
POST /?Action=CreateUserPoolClient&Version=2025-10-30 HTTP/1.1 Host: cis-control-test.ivolces.com:30190 Content-Type: application/json; charset=UTF-8 X-Date: 20251204T064841Z X-Content-Sha256: 287e874e******d653b44d21e Authorization: HMAC-SHA256 Credential=Adfks******wekfwe/20251204/cn-beijing/id/request, SignedHeaders=host;x-content-sha256;x-date, Signature=47a7d934ff7b37c03938******cd7b8278a40a1057690c401e92246a0e41085f { "LogoUri": "https://img.freepik.com/free-vector/colorful-bird-illustration-gradient_343694-1741.jpg", "UserPoolUid": "example", "Name": "example", "ClientType": "WEB_APPLICATION", "Description": "example", "AllowedCallbackUrls": [ "[\"http://example.com\"]" ] }
{ "ResponseMetadata": { "RequestId": "20251204144847191221116023DEF44B", "Action": "CreateUserPoolClient", "Version": "2025-10-30", "Service": "id", "Region": "cn-beijing" }, "Result": { "LogoUri": "https://img.freepik.com/free-vector/colorful-bird-illustration-gradient_343694-1741.jpg", "Uid": "123456", "ClientType": "WEB_APPLICATION", "Name": "example", "Description": "example", "ClientSecret": "example", "AllowedCallbackUrls": [ "[\"http://example.com\"]" ], "AllowedLogoutUrls": [ "[\"http://example.com\"]" ], "AllowedWebOrigins": [ "[\"http://example.com\"]" ], "AllowedCors": [ "[\"http://example.com\"]" ], "IdToken": { "LifetimeSeconds": 3600 }, "RefreshToken": { "HasIdleLifetime": true, "IdleLifetimeSeconds": 3600, "HasCombinedLifetime": true, "CombinedLifetimeSeconds": 7200, "Rotation": true }, "CreateTime": "2025-09-15T07:59:24Z", "UpdateTime": "2025-09-15T07:59:24Z", "LoginPageUrl": "http://example.com" } }
下表为您列举了该接口与业务逻辑相关的错误码。公共错误码请参见公共错误码文档。
状态码 | 错误码 | 说明 |
|---|---|---|
400 | MissingParameter.{parameter} | |
400 | InvalidParameter.{parameter} | |
400 | InvalidRequest | |
400 | MissingAction | |
400 | InvalidAction | |
401 | SignatureNotMatch | |
403 | AccessDenied | |
403 | InvalidAccessKeyId | |
404 | NotFound | 资源 %s 不存在 |
409 | Duplicated | 资源 %s 已存在 |
429 | Throttling | |
429 | QuotaExceeded | 配额 %s 已达上限 |
500 | InternalError | 内部服务错误: %s |
500 | DownstreamServerError | |
503 | ServiceUnavailable |