GetAccessApplication - 查询访问应用详情
查询接入应用。
接口说明
查询接入应用;密钥仅创建时返回,查询接口不返回密钥。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
调试
授权信息
|
操作 |
访问级别 |
资源类型 |
条件关键字 |
关联操作 |
|
agentcore:GetAccessApplication |
get |
*Workspace
|
无 | 无 |
请求语法
GET /workspaces/{workspaceId}/access-applications/{applicationId} HTTP/1.1
路径参数
|
名称 |
类型 |
必填 |
描述 |
示例值 |
| workspaceId |
string |
是 |
工作空间 ID。 |
ws-1234567890 |
| applicationId |
string |
是 |
访问应用 ID。 |
app-1234567890 |
请求参数
|
名称 |
类型 |
必填 |
描述 |
示例值 |
当前API无需请求参数
返回参数
|
名称 |
类型 |
描述 |
示例值 |
|
object |
|||
| requestId |
string |
请求 ID。 |
1a2b3c4d-xxxx-xxxx-xxxx-xxxxxxxxxxxx |
| message |
string |
请求处理结果消息。 |
success |
| httpStatusCode |
integer |
HTTP 状态码。 |
200 |
| code |
string |
业务状态码。 |
Success |
| success |
boolean |
请求是否成功。 |
|
| data |
object |
访问应用详情。 |
|
| applicationId |
string |
访问应用 ID。 |
app-1234567890 |
| workspaceId |
string |
工作空间 ID。 |
ws-1234567890 |
| applicationName |
string |
访问应用名称。 |
my-access-application |
| userSource |
string |
用户来源。 枚举值:
|
RAM |
| clientId |
string |
OAuth 客户端 ID。 |
client-1234567890 |
| metadataUrl |
string |
身份提供方元数据地址。 |
https://example.com/.well-known/openid-configuration |
| redirectUris |
array |
重定向地址列表。 |
|
|
string |
重定向地址。 |
https://example.com/callback |
|
| createdAt |
string |
创建时间,RFC 3339 格式。 |
2026-01-01T00:00:00Z |
| updatedAt |
string |
更新时间,RFC 3339 格式。 |
2026-01-01T00:00:00Z |
示例
正常返回示例
JSON格式
{
"requestId": "1a2b3c4d-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
"message": "success",
"httpStatusCode": 200,
"code": "Success",
"success": true,
"data": {
"applicationId": "app-1234567890",
"workspaceId": "ws-1234567890",
"applicationName": "my-access-application",
"userSource": "RAM",
"clientId": "client-1234567890",
"metadataUrl": "https://example.com/.well-known/openid-configuration",
"redirectUris": [
"https://example.com/callback"
],
"createdAt": "2026-01-01T00:00:00Z",
"updatedAt": "2026-01-01T00:00:00Z"
}
}
错误码
|
HTTP status code |
错误码 |
错误信息 |
描述 |
|---|---|---|---|
| 400 | InvalidParameter | InvalidParameter | |
| 502 | Application.UpstreamFailed | Application.UpstreamFailed | |
| 404 | Workspace.NotFound | Workspace.NotFound | |
| 404 | Application.NotFound | Application.NotFound | |
| 409 | Application.OperationInProgress | Application.OperationInProgress | |
| 409 | Application.UserSourceUnavailable | Application.UserSourceUnavailable |
访问错误中心查看更多错误码。
变更历史
更多信息,参考变更详情。