List¶
GET /api/v1/wksp_share/list
Overview¶
List, with pagination, the data access authorization configurations issued or obtained by the current workspace.
Before Calling and Usage Steps¶
To create/modify/delete, use the API Key of the grantor workspace; to read, operate according to the authorization direction of the current Key's workspace. This group authorizes data query capabilities between workspaces; it does not invite members, grant account roles, or copy data. In the response, workspaceUUID is the grantor and toWorkspaceUUID is the grantee; only Body.workspaceUUID in create requests indicates the target grantee workspace, which is the opposite direction from the same-named response field. Whether a query can take effect is also limited by data domains, Log Indexes, filter conditions, actual authorization status, and source workspace status.
This read requires routine.defaultAccess. By default, results are paginated in descending id order; type controls the authorization direction. A matched configuration with status=0 does not mean the authorization is valid; pending/expired status, sync status, and source workspace lock status should also be checked. This API displays saved configurations; it does not trigger cross-site sync or enable authorization. Do not use only the number of returned records to determine the queryable scope.
Reads remove authorizationCode and recursively strip tempAuthCode/tempAuthCodeHash from extra; configuration authentication codes are not provided as business parameters. sourceWorkspaceAccess provides lock information only when the local source workspace can be queried; sourceWorkspaceAccess is always an object. For cross-site or unrecognizable sources, its isLocked/lockMode can be null; do not interpret that as unlocked.
Identity summaries and extra cross-site fields may be omitted depending on identity type/record type. Do not interpret the field table as meaning every record has all extensions; reads do not re-add stripped temporary authentication codes or summaries.
Request Headers¶
| Parameter Name | Type | Required | Description |
|---|---|---|---|
| DF-API-KEY | string | Y | OpenAPI authentication credential for the workspace. Example: <DF-API-KEY>How to obtain or enter: Obtain an OpenAPI Key with the required operation permission from API Key management in the target workspace. |
Query Request Parameters¶
| Parameter Name | Type | Required | Description |
|---|---|---|---|
| type | string | Optional, default grant. No enum is set; any non-grant value enters the granted branch. It is recommended to use only grant/granted. Allows null: False Example: grantHow to obtain or enter: Use grant to view authorizations issued by the current workspace; use granted to view authorizations obtained by the current workspace. |
|
| namespace | commaArray | Optional comma-separated string. Multiple domains are combined with AND filtering; each must match type or contain *; this currently uses historical LIKE matching, not full capability validation. Allows null: False Example: logging,metricHow to obtain or enter: Select names according to the data domains you need to view, and connect multiple names with English commas. |
|
| regionCode | string | Optional source site filter; compatible with the historical Code form; has a different meaning from toRegionCode. Allows null: False Example: SITE-CODEHow to obtain or enter: Get the source site value from regionCode in an existing record; local records can omit it. |
|
| toRegionCode | string | Optional grantee site filter. Allows null: False Example: SITE-CODEHow to obtain or enter: Get the target site value from toRegionCode in an existing record. |
|
| filterWsUUIDs | commaArray | Optional comma-separated string that filters peer workspaces by direction; after splitting, whitespace is not trimmed per item. Allows null: False Example: wksp_targetHow to obtain or enter: For the grant direction, enter the target workspace ID; for the granted direction, enter the source workspace ID. |
|
| search | string | Optional; for grant, searches the target; for granted, searches the source; whitespace is not trimmed, and LIKE wildcards may take effect. Allows null: False Example: exampleHow to obtain or enter: Search by peer workspace name or UUID. |
|
| pageIndex | integer | Optional positive integer, default 1. Allows null: False $minValue: 1 Example: 1How to obtain or enter: Start from page 1 and read subsequent pages with pageInfo. |
|
| pageSize | integer | Optional 1 to 100, default 20. Allows null: False $minValue: 1 $maxValue: 100 Example: 20How to obtain or enter: Choose 1 to 100 based on batch read requirements. |
Additional Parameter Notes¶
Authorization direction, pagination container, and authorization status are as specified on this page.
Request Example¶
curl --get 'https://openapi.guance.com/api/v1/wksp_share/list' \
-H 'DF-API-KEY: <DF-API-KEY>' \
--data-urlencode type=grant \
--data-urlencode pageIndex=1 \
--data-urlencode pageSize=20
Response¶
HTTP 200, application/json. The example below shows the main fields that can be read directly.
| Field | Type | Description |
|---|---|---|
| content | object | Pagination container; data is located at content.data. |
| content.data | array | List of authorization configurations on this page. |
| content.data[].id | integer | Internal row number; not used as the API resource identifier. |
| content.data[].uuid | string | Authorization configuration UUID, usually prefixed with grant_; use this value for details/modification/deletion. |
| content.data[].workspaceUUID | string | Data grantor workspace; may not be the current query Key workspace (for a granted list, it is another source workspace). |
| content.data[].workspaceName | string | Grantor workspace name. |
| content.data[].toWorkspaceUUID | string | Target workspace that obtains the data query authorization. |
| content.data[].toWorkspaceName | string | Grantee workspace name. |
| content.data[].regionCode | string | Grantor site identifier. |
| content.data[].toRegionCode | string | Target site identifier; on reads, old empty values are filled according to compatibility rules. |
| content.data[].siteRelationType | string | Site relationship such as same_site/same_org_cross_site/external_org_cross_site; historical records may be empty. |
| content.data[].sourceBaseUrl | string | Source address for some cross-site records; can be empty for normal same-site records. This is not the current API Endpoint. |
| content.data[].targetBaseUrl | string | Target address for some cross-site records; can be empty for normal same-site records. |
| content.data[].type | array/string or null | Saved authorization data domains; * means all. Historical data may not be normalized; status 0 alone does not determine validity. |
| content.data[].type[] | JSON | Usually a data domain string; the current old entry point does not fully validate element enumeration. |
| content.data[].indexes | array or null | Set of authorized Log Index names, not index UUIDs; * means all; saved as [] when the logging domain is not authorized. |
| content.data[].indexes[] | string | One index name, such as default. |
| content.data[].conditions | object or null | Filter configurations saved by metric/tracing/rum; not the data permission itself or query results. |
| content.data[].extra | object or null | Records roles, authorization status, and cross-site extensions. Read and write response cleanup rules differ; do not share raw write responses containing authentication diagnostics externally. |
| content.data[].extra.recordRole | string | Such as authority/mirror; present only on some records. |
| content.data[].extra.grantStatus | string | Saved status of the record; on reads, pending can be displayed as expired based on time. |
| content.data[].delayDeleteAt | integer | Scheduled deletion time; -1 usually means not scheduled. Does not mean the record is necessarily valid. |
| content.data[].status | integer | Model status; 0 means not deleted, deletion is usually 3. Business authorization still requires checking grantStatus, etc. |
| content.data[].creator | string | Creator identifier; can be an API Key UUID or a historical account/system identity. |
| content.data[].updator | string | Most recent operator; may be empty. |
| content.data[].createAt | integer | Creation time in Unix seconds. |
| content.data[].updateAt | integer | Update time in Unix seconds; initially can be -1. |
| content.data[].deleteAt | integer | Soft deletion time in Unix seconds; usually -1 when not deleted. |
| content.data[].conditions.metric | array | Array of conditions for the metric category. |
| content.data[].conditions.metric[] | object | A group of conditions; current elements do not have complete prior structure validation. |
| content.data[].conditions.metric[].name | string | Actual field name. |
| content.data[].conditions.metric[].op | string | in or not in. |
| content.data[].conditions.metric[].logic | string | and/or recommended; must be consistent within the same category; enumeration is not strictly validated currently. |
| content.data[].conditions.metric[].value | array | Condition value array; elements follow the actual field type. |
| content.data[].conditions.tracing | array | Array of conditions for the tracing category. |
| content.data[].conditions.tracing[] | object | A group of conditions; current elements do not have complete prior structure validation. |
| content.data[].conditions.tracing[].name | string | Actual field name. |
| content.data[].conditions.tracing[].op | string | in or not in. |
| content.data[].conditions.tracing[].logic | string | and/or recommended; must be consistent within the same category; enumeration is not strictly validated currently. |
| content.data[].conditions.tracing[].value | array | Condition value array; elements follow the actual field type. |
| content.data[].conditions.rum | array | Array of conditions for the rum category. |
| content.data[].conditions.rum[] | object | A group of conditions; current elements do not have complete prior structure validation. |
| content.data[].conditions.rum[].name | string | Actual field name. |
| content.data[].conditions.rum[].op | string | in or not in. |
| content.data[].conditions.rum[].logic | string | and/or recommended; must be consistent within the same category; enumeration is not strictly validated currently. |
| content.data[].conditions.rum[].value | array | Condition value array; elements follow the actual field type. |
| content.data[].grantMode | string | same_site or cross_site; derived from the site relationship on reads. |
| content.data[].grantStatus | string | Observable authorization status such as active/pending/revoked/expired; pending expiration is only normalized for display here, which does not mean it has been deleted in the backend. |
| content.data[].syncStatus | string | Additional cross-site sync status; may be empty. |
| content.data[].lastSyncAt | integer or null | Unix seconds of the last cross-site sync, or null if absent; non-standard historical values should be checked against the actual response. |
| content.data[].regionName | string | Source site name generated from the request language and site metadata. |
| content.data[].toRegionName | string | Target site name generated from the request language and site metadata. |
| content.data[].creatorInfo | object | Creator identity summary; can be a Key/historical account/system identity. |
| content.data[].creatorInfo.uuid | string | Identity identifier; not guaranteed to be a personal account UUID. |
| content.data[].creatorInfo.name | string | Display name. |
| content.data[].creatorInfo.email | string | Polymorphic identity field; for a Key it may be the Key UUID, so it cannot always be treated as an email address. |
| content.data[].updatorInfo | object | Most recent operator identity summary; may be {}. |
| content.data[].updatorInfo.uuid | string | Operator identifier when present. |
| content.data[].updatorInfo.name | string | Operator display name when present. |
| content.data[].updatorInfo.email | string | Polymorphic identity field; not necessarily an actual email address. |
| content.data[].sourceWorkspaceAccess | object | Source workspace lock summary attached only to the list. |
| content.data[].sourceWorkspaceAccess.isLocked | integer or null | 0/1 when the local source is recognizable; can be null for remote or unrecognizable sources. |
| content.data[].sourceWorkspaceAccess.lockMode | string or null | Source lock mode; can be null when unrecognized. |
| content.declaration | object or null | Workspace common declaration for a non-empty business object; can be null or an empty object when not configured; not attached for empty business objects. |
| pageInfo | object | Top-level pagination information. |
| pageInfo.count | integer | Number of records on this page. |
| pageInfo.pageIndex | integer | Current page number. |
| pageInfo.pageSize | integer | Number of records per page. |
| pageInfo.totalCount | integer | Total number of matching records, not the amount of valid authorization data. |
| content.data[].extra.tempAuthCodeExpireAt | integer | Unix seconds of the temporary authorization package validity period; may be omitted; not an authentication code that can be used directly. |
| content.data[].extra.pendingTargetWorkspaceUUID | string | Expected target workspace for a pending record; may be omitted. |
| content.data[].extra.metaUUID | string | Authorization package identifier; may be omitted; not the grant configuration UUID. |
| content.data[].extra.grantScopeFingerprint | string | Authorization scope summary; may be omitted; not used as a customer authentication parameter. |
| content.data[].extra.createdAt | integer | Extension record creation time in Unix seconds; may be omitted. |
| content.data[].extra.authorityGrantUUID | string | Source authorization configuration UUID associated with a mirror record; may be omitted; cannot be directly treated as a configuration owned by the current Key workspace. |
| content.data[].extra.sourceKid | string | Source site public key identifier; may be omitted. |
| content.data[].extra.sourceJwksUri | string | Source site public key set address; may be omitted. |
| content.data[].extra.syncStatus | string | Cross-site sync status, such as success/failed or empty; may be omitted. |
| content.data[].extra.lastSyncAt | integer | Last sync time in Unix seconds; may be omitted. |
| content.data[].extra.lastSyncError | string | Adapted summary of the most recent sync error; may be omitted; not the outer API error code of this request. |
| content.data[].extra.lastSyncErrorAt | integer | Unix seconds of the most recent sync failure; may be omitted. |
| content.data[].extra.resourceSummary | object | Resource summary saved during sync for some cross-site records; may be omitted; not a real-time complete resource list. |
| content.data[].extra.resourceSummary.logging | object | Logging resource summary; may be omitted. |
| content.data[].extra.resourceSummary.logging.indexes | array | Log index summary items synchronized from upstream; elements can be strings or objects and are saved as-is. |
| content.data[].extra.resourceSummary.logging.indexes[] | JSON | One index summary; do not assume a fixed uuid/name shape; before operating on an index, still obtain actual parameters from the index list. |
| content.data[].extra.resourceSummary.rum | object | RUM resource summary; may be omitted. |
| content.data[].extra.resourceSummary.rum.applications | array | Upstream RUM application summary items, returned as strings or objects as applicable. |
| content.data[].extra.resourceSummary.rum.applications[] | JSON | Application summary; not a substitute for the current site's application configuration UUID. |
| content.data[].extra.resourceSummary.updatedAt | number | Numeric value generated for the resource summary; the unit is determined by upstream; Studio does not convert units or guarantee uniformity. |
| content.data[].extra.resourceSummary.sourceGrantUUID | string | Source authorization configuration identifier associated with the resource summary. |
| content.data[].extra.sourceSite | object | Snapshot of grantor/target site identity; may be omitted; does not replace the current request Endpoint. |
| content.data[].extra.sourceSite.siteCode | string | Site code. May be omitted. |
| content.data[].extra.sourceSite.regionCode | string | Region code. May be omitted. |
| content.data[].extra.sourceSite.name | string | Site display name. May be omitted. |
| content.data[].extra.sourceSite.issuer | string | Signing identity. May be omitted. |
| content.data[].extra.sourceSite.baseUrl | string | Site API base URL. May be omitted. |
| content.data[].extra.sourceSite.jwksUri | string | Public key set address. May be omitted. |
| content.data[].extra.sourceSite.kid | string | Public key identifier. May be omitted. |
| content.data[].extra.sourceSite.publicKeys | array | Some site snapshots contain public key material; may be omitted; no private keys. |
| content.data[].extra.sourceSite.publicKeys[] | object | Optional public key item. |
| content.data[].extra.sourceSite.publicKeys[].kid | string | Public key identifier. |
| content.data[].extra.sourceSite.publicKeys[].publicKey | string | PEM public key body. |
| content.data[].extra.targetSite | object | Snapshot of grantor/target site identity; may be omitted; does not replace the current request Endpoint. |
| content.data[].extra.targetSite.siteCode | string | Site code. May be omitted. |
| content.data[].extra.targetSite.regionCode | string | Region code. May be omitted. |
| content.data[].extra.targetSite.name | string | Site display name. May be omitted. |
| content.data[].extra.targetSite.issuer | string | Signing identity. May be omitted. |
| content.data[].extra.targetSite.baseUrl | string | Site API base URL. May be omitted. |
| content.data[].extra.targetSite.jwksUri | string | Public key set address. May be omitted. |
| content.data[].extra.targetSite.kid | string | Public key identifier. May be omitted. |
| content.data[].extra.targetSite.publicKeys | array | Some site snapshots contain public key material; may be omitted; no private keys. |
| content.data[].extra.targetSite.publicKeys[] | object | Optional public key item. |
| content.data[].extra.targetSite.publicKeys[].kid | string | Public key identifier. |
| content.data[].extra.targetSite.publicKeys[].publicKey | string | PEM public key body. |
| content.data[].extra.resourceSummary.metric | object | Resource summary for the corresponding domain; may be omitted. |
| content.data[].extra.resourceSummary.metric.workspaceUUIDs | array | Set of source workspace identifiers saved during sync; elements are usually strings; not an authorization for the current Key to operate on arbitrary workspaces. |
| content.data[].extra.resourceSummary.metric.workspaceUUIDs[] | JSON | A single workspace identifier as actually returned by upstream; first verify historical items that are not fully standardized. |
| content.data[].extra.resourceSummary.tracing | object | Resource summary for the corresponding domain; may be omitted. |
| content.data[].extra.resourceSummary.tracing.workspaceUUIDs | array | Set of source workspace identifiers saved during sync; elements are usually strings; not an authorization for the current Key to operate on arbitrary workspaces. |
| content.data[].extra.resourceSummary.tracing.workspaceUUIDs[] | JSON | A single workspace identifier as actually returned by upstream; first verify historical items that are not fully standardized. |
| content.data[].extra.resourceSummary.lineage | object | Resource summary for the corresponding domain; may be omitted. |
| content.data[].extra.resourceSummary.lineage.workspaceUUIDs | array | Set of source workspace identifiers saved during sync; elements are usually strings; not an authorization for the current Key to operate on arbitrary workspaces. |
| content.data[].extra.resourceSummary.lineage.workspaceUUIDs[] | JSON | A single workspace identifier as actually returned by upstream; first verify historical items that are not fully standardized. |
| content.data[].creatorInfo.status | integer | Status of the identity itself; interpret according to the actual account/Key type. |
| content.data[].creatorInfo.wsAccountStatus | integer or null | Workspace member/identity association status; may be omitted. |
| content.data[].creatorInfo.username | string | Identity login name or Key name; may be omitted for system identities. |
| content.data[].creatorInfo.iconUrl | string | Identity icon URL; may be empty. |
| content.data[].creatorInfo.mobile | string | Identity mobile number; may be empty; Keys usually do not have this value. |
| content.data[].creatorInfo.countryCode | string | Mobile number country/region code; may be empty. |
| content.data[].creatorInfo.acntWsNickname | string | Identity nickname in the current workspace; may be omitted. |
| content.data[].updatorInfo.status | integer | Status of the identity itself; interpret according to the actual account/Key type. |
| content.data[].updatorInfo.wsAccountStatus | integer or null | Workspace member/identity association status; may be omitted. |
| content.data[].updatorInfo.username | string | Identity login name or Key name; may be omitted for system identities. |
| content.data[].updatorInfo.iconUrl | string | Identity icon URL; may be empty. |
| content.data[].updatorInfo.mobile | string | Identity mobile number; may be empty; Keys usually do not have this value. |
| content.data[].updatorInfo.countryCode | string | Mobile number country/region code; may be empty. |
| content.data[].updatorInfo.acntWsNickname | string | Identity nickname in the current workspace; may be omitted. |
{
"code": 200,
"content": {
"data": [
{
"id": 10,
"uuid": "grant_example",
"workspaceUUID": "wksp_source",
"toWorkspaceUUID": "wksp_target",
"regionCode": "SITE-CODE",
"toRegionCode": "SITE-CODE",
"workspaceName": "授权方示例空间",
"toWorkspaceName": "被授权方示例空间",
"siteRelationType": "same_site",
"sourceBaseUrl": "",
"targetBaseUrl": "",
"extra": {
"recordRole": "authority",
"grantStatus": "active"
},
"type": [
"metric",
"logging"
],
"indexes": [
"default"
],
"conditions": {
"metric": [
{
"name": "host",
"op": "in",
"logic": "and",
"value": [
"host-example"
]
}
]
},
"delayDeleteAt": -1,
"status": 0,
"creator": "wsak_example",
"updator": "",
"createAt": 1785427200,
"updateAt": -1,
"deleteAt": -1,
"grantMode": "same_site",
"grantStatus": "active",
"syncStatus": "",
"lastSyncAt": null,
"regionName": "示例站点",
"toRegionName": "示例站点",
"creatorInfo": {
"uuid": "wsak_example",
"name": "示例API Key",
"email": "wsak_example"
},
"updatorInfo": {},
"sourceWorkspaceAccess": {
"isLocked": 0,
"lockMode": "none"
}
}
],
"declaration": {}
},
"errorCode": "",
"message": "",
"success": true,
"traceId": "TRACE-EXAMPLE",
"pageInfo": {
"count": 1,
"pageIndex": 1,
"pageSize": 20,
"totalCount": 1
}
}
Error Responses¶
For authentication, rate limiting, and common request errors, see Common Error Definitions.
The list only represents configurations in the current query direction. Whether a business query is possible still needs to be verified through the target data API; listed records do not guarantee complete permissions.
| HTTP Status | errorCode | Trigger Condition | Message or Response Description | Handling |
|---|---|---|---|---|
| 406 | ft.ParameterValidationFailed | An undeclared Query parameter is used, or a parameter violates the rules | Parameter parsing failed | Check the Query parameter table and examples. |
| 500 | ft.InternalServerError | Storage/historical authorization fields/site formatting or identity profile exception | Internal error | Narrow the filters, retain traceId, and contact the administrator to check historical configurations and site data. |