Get¶
GET /api/v1/wksp_share/{wksp_share_uuid}/get
Overview¶
Retrieves the details of an authorization configuration, along with the derived site/authorization status.
Before You Call and Usage Steps¶
For create, modify, and delete operations, use the API Key of the data-authorizing workspace; for reads, follow the authorization direction of the current Key's workspace. This group authorizes data query capabilities between workspaces, not inviting members, assigning account roles, or copying data. In responses, workspaceUUID is the authorizing party and toWorkspaceUUID is the grantee; only in Create requests does Body.workspaceUUID indicate the grantee target workspace, which is the opposite direction from the same-named field in responses. Whether a query can take effect is also subject to data domains, Log Indexes, filter conditions, the actual authorization status, and the source workspace status.
This read requires routine.defaultAccess. Use only the configuration UUID returned by the authorization list of the current workspace. This legacy endpoint reads model records with status=0 by UUID and does not filter configurations by the workspace to which the Key belongs in this business query; callers must not treat this endpoint as a validation interface for configuration ownership or cross-workspace isolation, and must not submit or forward identifiers obtained from lists of non-current workspaces.
Unknown/deleted UUIDs currently return 500 because an empty record is formatted; do not rely on a fixed 404. Reads remove authorizationCode and scrub sensitive extra keys, unlike the raw model responses for Create/Modify. The details do not include the sourceWorkspaceAccess lock summary added by the list.
Identity summaries and cross-site fields in extra may be absent depending on the identity type/record type; the field table should not be understood as meaning every record has all extensions; reads do not re-add scrubbed temporary authentication codes or summaries.
Route Parameters¶
| Parameter Name | Type | Required | Description |
|---|---|---|---|
| wksp_share_uuid | string | Y | Actual URL path parameter, usually with the grant_ prefix, not a workspace UUID. Example: grant_exampleHow to obtain or fill: Obtain the configuration ID from Authorization List content.data[].uuid. |
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 fill: Obtain an OpenAPI Key with this operation permission from API Key management in the target workspace. |
Additional Parameter Notes¶
Use the grant_ configuration UUID for reads; do not substitute the grantee workspace UUID.
Request Example¶
curl --get 'https://openapi.guance.com/api/v1/wksp_share/grant_example/get' \
-H 'DF-API-KEY: <DF-API-KEY>'
Response¶
HTTP 200, application/json. The following example shows the main fields that can be read directly.
| Field | Type | Description |
|---|---|---|
| content.id | integer | Internal row number; not used as an API resource identifier. |
| content.uuid | string | Authorization configuration UUID, usually with the grant_ prefix; use this value for details/modification/deletion. |
| content.workspaceUUID | string | Data-authorizing workspace; it is not necessarily the workspace of the current query Key (when listing authorizations, it is another source workspace). |
| content.workspaceName | string | Authorizing workspace name. |
| content.toWorkspaceUUID | string | Target workspace that receives data query authorization. |
| content.toWorkspaceName | string | Grantee workspace name. |
| content.regionCode | string | Authorizing party site identifier. |
| content.toRegionCode | string | Target site identifier; on read, legacy empty values are filled according to compatibility rules. |
| content.siteRelationType | string | Site relationship such as same_site/same_org_cross_site/external_org_cross_site; historical records may be empty. |
| content.sourceBaseUrl | string | Source address of some cross-site records; may be empty for ordinary same-site records; not this API Endpoint. |
| content.targetBaseUrl | string | Target address of some cross-site records; may be empty for ordinary same-site records. |
| content.type | array/string or null | Saved authorization data domains; * indicates all. Historical data may be non-standard; status 0 alone cannot determine validity. |
| content.type[] | JSON | Usually a data domain string; the current legacy endpoint does not fully validate element enumeration. |
| content.indexes | array or null | Set of authorized Log Index names, not index UUIDs; * indicates all; saved as [] when the log domain is not authorized. |
| content.indexes[] | string | One Log Index name, such as default. |
| content.conditions | object or null | Filter configuration saved by metric/tracing/rum; not the data permission itself or query results. |
| content.extra | object or null | Records roles, authorization status, and cross-site extensions. The scrubbing rules differ between read and write responses; do not share raw write responses containing authentication diagnostics externally. |
| content.extra.recordRole | string | Such as authority/mirror; present only on some records. |
| content.extra.grantStatus | string | Status saved in the record; on read, pending may be displayed as expired based on time. |
| content.delayDeleteAt | integer | Scheduled deletion time; -1 usually means not scheduled; does not mean the record is necessarily valid. |
| content.status | integer | Model status; 0 is non-deleted, deletion is usually 3; for business authorization, also check grantStatus, etc. |
| content.creator | string | Creator identifier; may be an API Key UUID or a historical account/system identity. |
| content.updator | string | Most recent operator; may be empty. |
| content.createAt | integer | Creation time in Unix seconds. |
| content.updateAt | integer | Update time in Unix seconds; may initially be -1. |
| content.deleteAt | integer | Soft deletion time in Unix seconds; usually -1 if not deleted. |
| content.conditions.metric | array | Array of conditions of the metric category. |
| content.conditions.metric[] | object | A group of conditions; current elements do not undergo complete upfront structural validation. |
| content.conditions.metric[].name | string | Actual field name. |
| content.conditions.metric[].op | string | in or not in. |
| content.conditions.metric[].logic | string | and/or is recommended, and must be consistent within the same category; the current implementation does not strictly validate the enumeration. |
| content.conditions.metric[].value | array | Array of condition values; elements follow the actual field type. |
| content.conditions.tracing | array | Array of conditions of the tracing category. |
| content.conditions.tracing[] | object | A group of conditions; current elements do not undergo complete upfront structural validation. |
| content.conditions.tracing[].name | string | Actual field name. |
| content.conditions.tracing[].op | string | in or not in. |
| content.conditions.tracing[].logic | string | and/or is recommended, and must be consistent within the same category; the current implementation does not strictly validate the enumeration. |
| content.conditions.tracing[].value | array | Array of condition values; elements follow the actual field type. |
| content.conditions.rum | array | Array of conditions of the rum category. |
| content.conditions.rum[] | object | A group of conditions; current elements do not undergo complete upfront structural validation. |
| content.conditions.rum[].name | string | Actual field name. |
| content.conditions.rum[].op | string | in or not in. |
| content.conditions.rum[].logic | string | and/or is recommended, and must be consistent within the same category; the current implementation does not strictly validate the enumeration. |
| content.conditions.rum[].value | array | Array of condition values; elements follow the actual field type. |
| content.grantMode | string | same_site or cross_site; derived from the site relationship on read. |
| content.grantStatus | string | Observable authorization statuses such as active/pending/revoked/expired; pending expiry is normalized only for display here and does not mean the backend has already deleted it. |
| content.syncStatus | string | Additional cross-site sync status; may be empty. |
| content.lastSyncAt | integer or null | Unix seconds of the last cross-site sync; null by default; verify non-standard historical values against the actual response. |
| content.regionName | string | Source site name generated based on the request language and site metadata. |
| content.toRegionName | string | Target site name generated based on the request language and site metadata. |
| content.creatorInfo | object | Creator identity summary; may be a Key/historical account/system identity. |
| content.creatorInfo.uuid | string | Identity identifier; not guaranteed to be a personal account UUID. |
| content.creatorInfo.name | string | Display name. |
| content.creatorInfo.email | string | Polymorphic identity field; for a Key, it may be the Key UUID and must not always be treated as an email address. |
| content.updatorInfo | object | Most recent operator identity summary; may be {}. |
| content.updatorInfo.uuid | string | Operator identifier when present. |
| content.updatorInfo.name | string | Operator display name when present. |
| content.updatorInfo.email | string | Polymorphic identity field; may not be an actual email address. |
| content.declaration | object or null | Workspace common declaration for non-empty business objects; may be null or an empty object when not configured; not attached to empty business objects. |
| content.extra.tempAuthCodeExpireAt | integer | Unix seconds of the temporary authorization package's validity period; may be absent; not a directly usable authentication code. |
| content.extra.pendingTargetWorkspaceUUID | string | Expected target workspace for a pending record; may be absent. |
| content.extra.metaUUID | string | Authorization package identifier; may be absent; not the grant configuration UUID. |
| content.extra.grantScopeFingerprint | string | Authorization scope summary; may be absent; not used as a customer authentication parameter. |
| content.extra.createdAt | integer | Unix seconds when the extension record was created; may be absent. |
| content.extra.authorityGrantUUID | string | Source authorization configuration UUID associated with a mirror record; may be absent; cannot be directly treated as a configuration owned by the current Key's workspace. |
| content.extra.sourceKid | string | Source site public key identifier; may be absent. |
| content.extra.sourceJwksUri | string | Source site public key set address; may be absent. |
| content.extra.syncStatus | string | Cross-site sync status, such as success/failed or empty; may be absent. |
| content.extra.lastSyncAt | integer | Unix seconds of the last sync; may be absent. |
| content.extra.lastSyncError | string | Adapted summary of the most recent sync error; may be absent; not the outer error code of this API. |
| content.extra.lastSyncErrorAt | integer | Unix seconds of the most recent sync failure; may be absent. |
| content.extra.resourceSummary | object | Resource summary saved during sync for some cross-site records; may be absent; not a real-time complete resource list. |
| content.extra.resourceSummary.logging | object | Logging resource summary; may be absent. |
| content.extra.resourceSummary.logging.indexes | array | Log Index summary items synced from upstream; elements may be strings or objects and are saved as-is. |
| content.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 Log Index list. |
| content.extra.resourceSummary.rum | object | RUM resource summary; may be absent. |
| content.extra.resourceSummary.rum.applications | array | Upstream RUM application summary items; returned as strings or objects as applicable. |
| content.extra.resourceSummary.rum.applications[] | JSON | Application summary; not a substitute for the current site's application configuration UUID. |
| content.extra.resourceSummary.updatedAt | number | Numeric value when the resource summary was generated; the unit is determined by upstream; Studio does not perform unit conversion or guarantee uniformity. |
| content.extra.resourceSummary.sourceGrantUUID | string | Source authorization configuration identifier associated with the resource summary. |
| content.extra.sourceSite | object | Site identity snapshot of the authorizing party/target party; may be absent; does not replace the current request Endpoint. |
| content.extra.sourceSite.siteCode | string | Site code. May be absent. |
| content.extra.sourceSite.regionCode | string | Region code. May be absent. |
| content.extra.sourceSite.name | string | Site display name. May be absent. |
| content.extra.sourceSite.issuer | string | Signing identity. May be absent. |
| content.extra.sourceSite.baseUrl | string | Site API base URL. May be absent. |
| content.extra.sourceSite.jwksUri | string | Public key set address. May be absent. |
| content.extra.sourceSite.kid | string | Public key identifier. May be absent. |
| content.extra.sourceSite.publicKeys | array | Some site snapshots contain public key material; may be absent; no private keys. |
| content.extra.sourceSite.publicKeys[] | object | Optional public key item. |
| content.extra.sourceSite.publicKeys[].kid | string | Public key identifier. |
| content.extra.sourceSite.publicKeys[].publicKey | string | PEM public key body. |
| content.extra.targetSite | object | Site identity snapshot of the authorizing party/target party; may be absent; does not replace the current request Endpoint. |
| content.extra.targetSite.siteCode | string | Site code. May be absent. |
| content.extra.targetSite.regionCode | string | Region code. May be absent. |
| content.extra.targetSite.name | string | Site display name. May be absent. |
| content.extra.targetSite.issuer | string | Signing identity. May be absent. |
| content.extra.targetSite.baseUrl | string | Site API base URL. May be absent. |
| content.extra.targetSite.jwksUri | string | Public key set address. May be absent. |
| content.extra.targetSite.kid | string | Public key identifier. May be absent. |
| content.extra.targetSite.publicKeys | array | Some site snapshots contain public key material; may be absent; no private keys. |
| content.extra.targetSite.publicKeys[] | object | Optional public key item. |
| content.extra.targetSite.publicKeys[].kid | string | Public key identifier. |
| content.extra.targetSite.publicKeys[].publicKey | string | PEM public key body. |
| content.extra.resourceSummary.metric | object | Resource summary for the corresponding domain; may be absent. |
| content.extra.resourceSummary.metric.workspaceUUIDs | array | Set of source workspace identifiers saved during sync; elements are usually strings; does not authorize the current Key to operate on arbitrary workspaces. |
| content.extra.resourceSummary.metric.workspaceUUIDs[] | JSON | A single workspace identifier follows the actual upstream return; historical items that are not fully standardized must be verified first. |
| content.extra.resourceSummary.tracing | object | Resource summary for the corresponding domain; may be absent. |
| content.extra.resourceSummary.tracing.workspaceUUIDs | array | Set of source workspace identifiers saved during sync; elements are usually strings; does not authorize the current Key to operate on arbitrary workspaces. |
| content.extra.resourceSummary.tracing.workspaceUUIDs[] | JSON | A single workspace identifier follows the actual upstream return; historical items that are not fully standardized must be verified first. |
| content.extra.resourceSummary.lineage | object | Resource summary for the corresponding domain; may be absent. |
| content.extra.resourceSummary.lineage.workspaceUUIDs | array | Set of source workspace identifiers saved during sync; elements are usually strings; does not authorize the current Key to operate on arbitrary workspaces. |
| content.extra.resourceSummary.lineage.workspaceUUIDs[] | JSON | A single workspace identifier follows the actual upstream return; historical items that are not fully standardized must be verified first. |
| content.creatorInfo.status | integer | Status of the identity itself; interpret according to the actual account/Key type. |
| content.creatorInfo.wsAccountStatus | integer or null | Workspace member/identity association status; may be absent. |
| content.creatorInfo.username | string | Identity login name or Key name; may be absent for system identities. |
| content.creatorInfo.iconUrl | string | Identity icon URL; may be empty. |
| content.creatorInfo.mobile | string | Identity mobile number; may be empty; a Key usually has no such value. |
| content.creatorInfo.countryCode | string | Mobile number country/region code; may be empty. |
| content.creatorInfo.acntWsNickname | string | Identity nickname in the current workspace; may be absent. |
| content.updatorInfo.status | integer | Status of the identity itself; interpret according to the actual account/Key type. |
| content.updatorInfo.wsAccountStatus | integer or null | Workspace member/identity association status; may be absent. |
| content.updatorInfo.username | string | Identity login name or Key name; may be absent for system identities. |
| content.updatorInfo.iconUrl | string | Identity icon URL; may be empty. |
| content.updatorInfo.mobile | string | Identity mobile number; may be empty; a Key usually has no such value. |
| content.updatorInfo.countryCode | string | Mobile number country/region code; may be empty. |
| content.updatorInfo.acntWsNickname | string | Identity nickname in the current workspace; may be absent. |
{
"code": 200,
"content": {
"id": 10,
"uuid": "grant_example",
"workspaceUUID": "wksp_source",
"toWorkspaceUUID": "wksp_target",
"regionCode": "SITE-CODE",
"toRegionCode": "SITE-CODE",
"workspaceName": "Example Grantor Workspace",
"toWorkspaceName": "Example Grantee Workspace",
"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": "Example Site",
"toRegionName": "Example Site",
"creatorInfo": {
"uuid": "wsak_example",
"name": "Example API Key",
"email": "wsak_example"
},
"updatorInfo": {},
"declaration": {}
},
"errorCode": "",
"message": "",
"success": true,
"traceId": "TRACE-EXAMPLE"
}
Error Response¶
For authentication, rate limiting, and common request errors, see Common Error Definitions.
This legacy endpoint does not guarantee a uniform 404 for unknown/non-current-workspace configurations; callers must use only records from their own workspace list and must not use this endpoint as an entry point for probing authorization ownership.
| HTTP Status | errorCode | Trigger Condition | Message or Response Description | Handling |
|---|---|---|---|---|
| 500 | ft.InternalServerError | Empty object formatting when the UUID does not exist or has been deleted, or errors in historical data/site/identity information | Internal error | Use only configuration UUIDs from the current workspace list; refresh the list first; if the failure persists, provide the traceId and do not repeatedly probe unknown UUIDs. |