Get¶
GET /api/v1/log_backup_cfg/{cfg_uuid}/get
Overview¶
Reads the configuration, masked connection, and identity summary of a single forwarding rule.
Before Calling and Usage Steps¶
Select cfg_uuid from the list. Returns a rule that has not been deleted and is not in the deleting state; Iceberg is treated as nonexistent. The details show the non-secret configuration of the target connection: top-level SK/password/service account JSON is not returned; LogBamboo nested Tokens, if configured, are only masked, and historical TiDB DSNs are also only masked. Do not send the entire details object back directly for modification; use the public Body fields documented on this page and organize them according to the credential inheritance rules.
Reading rule configuration through this entry point does not mean you have permission to read the forwarded data. Actual query jobs also validate the target and readPermissionSet.
Path Parameters¶
| Parameter Name | Type | Required | Description |
|---|---|---|---|
| cfg_uuid | string | Y | UUID of a rule in the current workspace that has not been deleted and is not in the deleting state, not the name. Example: lgbp_exampleHow to obtain or provide: Obtain from content.data[].uuid in the Data Forwarding Rule List. |
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 provide: Obtain an OpenAPI Key with this operation permission from API Key management in the target workspace. |
Additional Parameter Notes¶
Response Body Structure
| Parameter Name | type | Description |
|---|---|---|
| accessCfg | dict | Third-party storage configuration information |
| name | string | Forwarding rule name |
| uuid | string | Unique UUID of the forwarding rule |
| status | string | Forwarding rule status, 0: Enabled, 2: Disabled |
| dataType | string | Data type |
| conditions | string | Filter conditions in DQL format |
| storeType | string | Storage type |
| externalResourceAccessCfgUUID | string | External resource access configuration UUID |
| workspaceUUID | string | UUID of the workspace where the forwarding rule resides |
Request Example¶
curl --get 'https://openapi.guance.com/api/v1/log_backup_cfg/lgbp_example/get' \
-H 'DF-API-KEY: <DF-API-KEY>'
Response¶
HTTP 200, application/json. The example below shows the main fields that can be read directly.
| Field | Type | Description |
|---|---|---|
| content.id | integer or null | Record ID. For a creation snapshot, it is generated before submission and can be null; use uuid for calls. |
| content.uuid | string | lgbp_ rule UUID. |
| content.workspaceUUID | string | Workspace to which the rule belongs. |
| content.name | string | Rule name; after creation, this public modification API cannot rename it. |
| content.conditions | string | Conditions generated by extend.filters; an empty string or {} when there are no additional filters. |
| content.syncExtensionField | boolean | Whether to synchronize extension fields. |
| content.externalResourceAccessCfgUUID | string | Access configuration identifier, not a credential. |
| content.storeType | string | Stored target type. Historical TiDB may be readable but cannot be created through the current OpenAPI. |
| content.storageClass | string | Target archive class. |
| content.storageFormat | string | json/parquet; can be empty for Kafka or LogBamboo; Iceberg is excluded from this public list/details. |
| content.dataType | string | Data category fixed by the rule; historical empty values are treated as logging. |
| content.taskStatusCode | integer | Status reported by the background forwarding task; typically -1 on creation. This is not the current HTTP status. |
| content.taskErrorCode | string | Background forwarding error code; an empty string means no current error record. A successful save does not guarantee task success. |
| content.openPermissionSet | boolean | Switch for custom data read permissions. |
| content.readPermissionSet | array<string> |
Stored read principals. |
| content.readPermissionSet[] | string | Identifier of a single role/member/team. |
| content.deleteStatus | string | Deletion processing status. deleting means a built-in storage rule is being deleted asynchronously; historical values can be empty or completed. |
| content.status | integer | 0: Enabled, 2: Disabled, 3: Deleted. |
| content.creator | string | Creator identity. |
| content.updator | string | Updater identity; can be empty initially. |
| content.createAt | integer | Creation time in Unix seconds. |
| content.updateAt | integer | Update time in Unix seconds; -1 if not updated. |
| content.deleteAt | integer | Deletion time in Unix seconds; -1 if not deleted. |
| content.extend | object | Stored scope/condition configuration: optional; typically {} on creation; when passed for modification, it replaces the whole object, and legacy index selection has dedicated inheritance rules, see usage instructions; omit to retain. Passing null on creation may cause a 500 in a subsequent extend.get; an explicit null on modification is treated as a whole-object replacement with {}, while the dedicated inheritance rules for new-version index selection still apply. |
| content.extend.filters | array | Stored scope/condition configuration: array of actual filter conditions; [] means there are no additional field conditions, and an entire category may be forwarded. match/not match and their normalized aliases are rejected; do not mix the Log Index advancedFilter structure into this field. |
| content.extend.filters[] | json | Stored scope/condition configuration: the complete name/condition/operation/value is recommended; this is not the query_task.search structure. |
| content.extend.filters[].name | string | Stored scope/condition configuration: actual field key. |
| content.extend.filters[].condition | string | Stored scope/condition configuration: and/or relationship with the preceding condition; ignored for the first item. |
| content.extend.filters[].operation | string | Stored scope/condition configuration: common operations include =, !=, in, not_in, >, >=, <, <=, regexp, not_regexp, wildcard, not_wildcard, exist, not_exist; match/contain types are not supported. |
| content.extend.filters[].value | array | Stored scope/condition configuration: match values; equality/comparison uses the first item, while set operations use multiple items. |
| content.extend.filters[].value[] | JSON | Stored scope/condition configuration: a single string/number; the actual type is preserved. |
| content.extend.indexs | array | Stored scope/condition configuration: array of native Log direct-write index names; for the new version, [] means all indexes in the category, and a non-empty array means specified indexes. Behavior differs in the legacy protocol when regularLogIndexNames is missing; see usage. This is not a UUID array. |
| content.extend.indexs[] | string | Stored scope/condition configuration: actual name, trimmed and deduplicated; newly added selections in the new version must be in the currently available catalog. |
| content.extend.regularLogIndexNames | array or null | Stored scope/condition configuration: new-version regular index selection for Logs only. [] means all regular indexes; a non-empty array means specified indexes; passing null together with the indexs array indicates direct-write only; passing only this key as null on modification clears index restrictions. Missing this key indicates the legacy protocol, or it is retained on modification; see the usage instructions for details. |
| content.extend.regularLogIndexNames[] | string | Stored scope/condition configuration: a single currently selectable regular index name; when cloning is involved, source A must be valid; this is not a UUID. |
| content.creatorInfo | object | Associated identity summary; {} if no match. |
| content.creatorInfo.uuid | string | Identity UUID; can be omitted. |
| content.creatorInfo.status | integer | Account status; can be omitted. |
| content.creatorInfo.wsAccountStatus | integer | Workspace member status; can be omitted. |
| content.creatorInfo.name | string | Display name. |
| content.creatorInfo.username | string | Login name. |
| content.creatorInfo.email | string | Email address or system identity identifier. |
| content.creatorInfo.mobile | string | Mobile number; can be empty. |
| content.creatorInfo.countryCode | string | Country/region code; can be omitted. |
| content.creatorInfo.iconUrl | string | Avatar URL; can be omitted. |
| content.creatorInfo.acntWsNickname | string | Workspace nickname; can be omitted. |
| content.updatorInfo | object | Associated identity summary; {} if no match. |
| content.updatorInfo.uuid | string | Identity UUID; can be omitted. |
| content.updatorInfo.status | integer | Account status; can be omitted. |
| content.updatorInfo.wsAccountStatus | integer | Workspace member status; can be omitted. |
| content.updatorInfo.name | string | Display name. |
| content.updatorInfo.username | string | Login name. |
| content.updatorInfo.email | string | Email address or system identity identifier. |
| content.updatorInfo.mobile | string | Mobile number; can be empty. |
| content.updatorInfo.countryCode | string | Country/region code; can be omitted. |
| content.updatorInfo.iconUrl | string | Avatar URL; can be omitted. |
| content.updatorInfo.acntWsNickname | string | Workspace nickname; can be omitted. |
| content.readPermissionSetInfo | object | When read principals are non-empty, provides an identifier-to-summary mapping; unresolvable identifiers correspond to {}; can be omitted when the array is empty. |
| content.readPermissionSetInfo.主体 | object | Member summary or role/team name/status summary; does not prove that this principal is still valid. |
| content.readPermissionSetInfo.主体.name | string | Display name of the role/team/member. |
| content.readPermissionSetInfo.主体.status | integer | Identity status; can be omitted. |
| content.allow_operation | boolean or null | Operation display from the shared permission engine; may be null when no operation principal is configured; does not replace API permission validation. |
| content.readPermissionSetInfo.主体.uuid | string | Identity UUID; can be omitted. |
| content.readPermissionSetInfo.主体.wsAccountStatus | integer | Workspace member status; can be omitted. |
| content.readPermissionSetInfo.主体.username | string | Login name. |
| content.readPermissionSetInfo.主体.email | string | Email address or system identity identifier. |
| content.readPermissionSetInfo.主体.mobile | string | Mobile number; can be empty. |
| content.readPermissionSetInfo.主体.countryCode | string | Country/region code; can be omitted. |
| content.readPermissionSetInfo.主体.iconUrl | string | Avatar URL; can be omitted. |
| content.readPermissionSetInfo.主体.acntWsNickname | string | Workspace nickname; can be omitted. |
| content.accessCfg | object | Present depending on the target; can be omitted. Optional, but usually conditionally required for external targets. OpenAPI submits raw credentials directly over HTTPS and does not use Front's Web AES wrapper. If omitted on modification, the entire object is retained; if provided, it replaces the whole object, and only specified sensitive values/partitions/wait settings can be inherited. |
| content.accessCfg.provider | string | Present depending on the target; can be omitted. For object storage, it must match the target provider; GCS is fixed to google. |
| content.accessCfg.grantType | string | Present depending on the target; can be omitted. When modifying an existing non-special target, the previous grantType is inherited; do not use this field to switch authorization modes. Validate the specific authorization combination in the console first. |
| content.accessCfg.cloudAccountId | string | Present depending on the target; can be omitted. Provide it as required by the target for role/account authorization; it is not DF-API-KEY. |
| content.accessCfg.bucket | string | Present depending on the target; can be omitted. Required for GCS; for object storage, provide a real accessible bucket. Do not use the forwarding bucket reserved by the site platform. |
| content.accessCfg.externalId | string | Present depending on the target; can be omitted. Required for role-based authorization; when modifying s3/oss role configurations, the historical externalId summary may be retained. |
| content.accessCfg.role | string | Present depending on the target; can be omitted. Role authorization identity identifier; use the name/identifier required by the console, not a RBAC role in the current workspace. |
| content.accessCfg.ak | string | Present depending on the target; can be omitted. Used together with sk for key-based authorization; the details may return the AK identifier, which does not mean all secrets are returned. |
| content.accessCfg.topic | string | Present depending on the target; can be omitted. For Kafka, fill it in according to the target forwarding configuration; whether an empty value automatically creates the target depends on downstream. Do not treat a successful save as proof of writability. |
| content.accessCfg.url | string | Present depending on the target; can be omitted. Kafka connection address; network/authorization and protocol must match. |
| content.accessCfg.securityProtocol | string | Present depending on the target; can be omitted. Kafka authentication protocol; both sasl modes require a non-empty username/password. |
| content.accessCfg.ca | string | Present depending on the target; can be omitted. Provide as required by Kafka/Doris; this is not a private key. Omit if unused. |
| content.accessCfg.mechanism | string | Present depending on the target; can be omitted. Kafka SASL mechanism; select as required by the cluster. |
| content.accessCfg.username | string | Present depending on the target; can be omitted. Conditionally required for Kafka SASL and Doris; the username is not automatically inherited on modification. |
| content.accessCfg.endpoints | string | Present depending on the target; can be omitted. Conditionally required for Doris; no credentials, subpaths, query, or fragment; the port must be valid. |
| content.accessCfg.database | string | Present depending on the target; can be omitted. The Doris database name matches [A-Za-z_][A-Za-z0-9_]{0,63}. |
| content.accessCfg.table | string | Present depending on the target; can be omitted. The Doris table name matches [A-Za-z][A-Za-z0-9_]{0,63}; subsequent creation/write behavior is performed by the target service. |
| content.accessCfg.replicationNum | integer | Present depending on the target; can be omitted. Only Doris can provide it; must be a non-negative integer. If omitted or 0, the cluster default is used; bool is invalid. |
| content.accessCfg.region | string | Present depending on the target; can be omitted. For object storage, provide it explicitly; current validation requires a non-empty value before post-validation defaults are applied, and does not rely on the default site region in the declaration text. |
| content.accessCfg.endpoint | string | Present depending on the target; can be omitted. For s3/obs/oss/tos with ram, provide it according to actual network requirements; this is not the Kafka broker or LogBamboo sub-object endpoint. |
| content.accessCfg.bucketPath | string | Present depending on the target; can be omitted. Optional; an empty string is the bucket root prefix. When providing the complete object on modification, it should be populated back. |
| content.accessCfg.dataWaitSeconds | integer | Present depending on the target; can be omitted. Only effective for object storage; the default for new configurations is 3600. If omitted on modification, the previous valid value is inherited; otherwise 3600. This key is removed for non-object targets; bool or other values are invalid. |
| content.accessCfg.isEncrypt | boolean | Present depending on the target; can be omitted. Optional; no encryption by default. This is not a credential transport/at-rest encryption switch and does not provide key management parameters. |
| content.accessCfg.partitionFields | array | Present depending on the target; can be omitted. Optional; if omitted on modification, the previous value is inherited; an explicit [] clears rule-level partitions. Providing this for non-Kafka targets returns 406; members must be non-empty strings. |
| content.accessCfg.partitionFields[] | string | Present depending on the target; can be omitted. A single partition field, not a partition number. |
| content.accessCfg.logbamboo | json | Present depending on the target; can be omitted. This target allows only this sub-object and system-supplied fields; endpoints and indexes must be created in advance, and query requires an independent searchToken. |
| content.accessCfg.logbamboo.endpoint | string | Present depending on the target; can be omitted. No user password, subpath, query/fragment, or whitespace; the trailing / is removed during normalization. |
| content.accessCfg.logbamboo.index | string | Present depending on the target; can be omitted. 1 to 128 characters; allows letters, digits, dots, underscores, and hyphens; cannot be . or .. |
| content.accessCfg.logbamboo.ingestToken | string | If configured, this is only a masked string; the real Token is not returned. On modification, handle it according to the omission/empty-value rules for this field. |
| content.accessCfg.logbamboo.searchToken | string | If configured, this is only a masked string; the real Token is not returned. On modification, handle it according to the omission/empty-value rules for this field. |
| content.accessCfg.logbamboo.ca | string | Present depending on the target; can be omitted. Must be a loadable PEM CA and must not contain PRIVATE KEY; omitted values are normalized to empty, and full-object updates require explicit retention. |
| content.accessCfg.storeType | string | Underlying connection target type; platform built-in objects may map to the actual provider. |
| content.accessCfg.storageFormat | string | Legacy-compatible access object format field. |
| content.accessCfg.storageClass | string | Legacy-compatible archive field. |
| content.accessCfg.dataType | string | Data category of the access object. |
| content.accessCfg.storeLocation | string | Location marker for the built-in object storage connection; maintained by the service and not filled in by clients. |
| content.accessCfg.tidb | object | Historical TiDB read-only compatibility object; it cannot be used to create/modify TiDB in the current public Body. |
| content.accessCfg.tidb.dsn | string | The details may provide a masked DSN; the real password is not returned through this value. |
| content.accessCfg.tidb.table | string | Historical target table. |
| content.accessCfg.tidb.role | string | Historical role identifier. |
| content.oldAccessCfg | object or null | Only s3/oss, etc., may return the externalId summary of the previous role authorization; null if the cache is missing. |
| content.oldAccessCfg.externalId | string | External ID of the historical authorization; may be empty. |
| content.declaration | object | Public declaration. |
{
"code": 200,
"content": {
"id": 100,
"uuid": "lgbp_example",
"workspaceUUID": "wksp_example",
"name": "production_archive",
"conditions": "",
"extend": {
"filters": [],
"regularLogIndexNames": [
"default"
]
},
"syncExtensionField": false,
"externalResourceAccessCfgUUID": "erac_example",
"storeType": "s3",
"storageFormat": "json",
"storageClass": "STANDARD",
"dataType": "logging",
"taskStatusCode": -1,
"taskErrorCode": "",
"openPermissionSet": false,
"readPermissionSet": [],
"deleteStatus": "",
"status": 0,
"creator": "wsak_example",
"updator": "wsak_example",
"createAt": 1785427200,
"updateAt": -1,
"deleteAt": -1,
"accessCfg": {
"provider": "aws",
"grantType": "ram",
"region": "us-east-1",
"bucket": "customer-archive-example",
"ak": "<EXTERNAL-AK>",
"dataWaitSeconds": 3600,
"storeType": "s3",
"dataType": "logging",
"storageFormat": "json",
"storageClass": "STANDARD"
},
"oldAccessCfg": null,
"creatorInfo": {},
"updatorInfo": {},
"allow_operation": null,
"declaration": {}
},
"errorCode": "",
"message": "",
"success": true,
"traceId": "TRACE-EXAMPLE"
}
Error Responses¶
For authentication, rate limiting, and common request errors, see Common Error Definitions.
| HTTP Status | errorCode | Trigger Condition | Message or Response Description | Action |
|---|---|---|---|---|
| 406 | ft.ParameterValidationFailed | A request field is missing, or a field value violates the declared validation conditions | Parameter parsing failed | Verify the parameter location, field name, type, and value. |
| 404 | ft.LogBackupCfgNoExists | The rule does not exist/is in another workspace/has been deleted/is being deleted, or is an excluded Iceberg | The specified data forwarding configuration does not exist | Select a valid UUID again from the current public list. |
| 404 | ft.ObjectNotExists | The connection configuration associated with the rule does not exist | The specified object does not exist | Have an administrator verify the resource lifecycle. |
| 500 | ft.InternalServerError | Failed to read the configuration, identity information, cache, or response formatting | Internal error | Verify the query parameters; if the failure persists, provide the traceId. |