GetNamespace API.
下表仅列出该接口特有的请求参数和部分公共参数。更多信息请见公共参数。
参数 | 类型 | 是否必填 | 示例值 | 描述 |
|---|---|---|---|---|
Action | String | 是 | GetNamespace | 要执行的操作,取值:GetNamespace。 |
Version | String | 是 | 2025-10-30 | API的版本,取值:2025-10-30。 |
NamespaceId | String | 否 | a94254bf-13dd-448d-915b-9b0fc88399ba | NamespaceId parameter. |
NamespaceName | String | 否 | example | NamespaceName parameter. |
下表仅列出本接口特有的返回参数。更多信息请参见返回结构。
参数 | 类型 | 示例值 | 描述 |
|---|---|---|---|
CreateTime | String | 2025-11-26T04:19:54Z | Created time of the namespace |
UpdateTime | String | 2025-11-26T04:19:54Z | Updated time of the namespace |
Tags | Array of Object | [{"Key": "env","Value": "prod"}] | Tags of the namespace |
ProjectName | String | example_project | Project name of the namesapce |
Associates | Array of String | ["tom", "jerry"] | 关联的其他实体 |
NamespaceId | String | example | NamespaceId field. |
NamespaceName | String | example | NamespaceName field. |
Description | String | example | Description field. |
Trn | String | trn:id:cn-beijing:12345678:permissionnamespace/74c13371-b2a9-4bfa-967a-74c1337174c1 | Trn field. |
POST /?Action=GetNamespace&Version=2025-10-30 HTTP/1.1 Host: cis-control-test.ivolces.com:30190 Content-Type: application/json; charset=UTF-8 X-Date: 20250930T032031Z X-Content-Sha256: 287e874e******d653b44d21e Authorization: HMAC-SHA256 Credential=Adfks******wekfwe/20250930/cn-beijing/id/request, SignedHeaders=host;x-content-sha256;x-date, Signature=47a7d934ff7b37c03938******cd7b8278a40a1057690c401e92246a0e41085f { "NamespaceId": "example", "NamespaceName": "example" }
{ "ResponseMetadata": { "RequestId": "20250929202038175188170062B6E99E", "Action": "GetNamespace", "Version": "2025-10-30", "Service": "id", "Region": "cn-beijing" }, "Result": { "NamespaceId": "example", "NamespaceName": "example", "Trn": "example", "Description": "example" } }
下表为您列举了该接口与业务逻辑相关的错误码。公共错误码请参见公共错误码文档。
状态码 | 错误码 | 说明 |
|---|---|---|
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 |