Skip to content

Modify a Single Data Forwarding Rule



POST /api/v1/log_backup_cfg/{cfg_uuid}/modify

Overview

Modify a single data forwarding rule

Route Parameters

Parameter Name Type Required Description
cfg_uuid string Y Configuration UUID

Body Request Parameters

Parameter Name Type Required Description
extend json Front-end custom data
Can be empty: True
syncExtensionField boolean Synchronize backup extension fields, true for synchronization, false for no synchronization, default is no synchronization
Can be empty: False
accessCfg json External resource access configuration information
Can be empty: False
accessCfg.provider string Provider
Can be empty: False
Optional values: ['aliyun', 'aws', 'huawei']
accessCfg.grantType string Authorization type
Can be empty: False
Optional values: ['role', 'ram']
accessCfg.cloudAccountId string Cloud account ID
Can be empty: False
accessCfg.bucket string Storage bucket
Can be empty: False
accessCfg.externalId string External unique identifier ID (external unique identifier ID in AWS role authorization)
Can be empty: False
accessCfg.role string Role name
Can be empty: False
accessCfg.ak string Access key ID
Can be empty: False
accessCfg.sk string Secret key
Can be empty: False
accessCfg.topic string Topic
Can be empty: False
Can be an empty string: True
accessCfg.url string Connection address (used for Kafka)
Can be empty: False
accessCfg.securityProtocol string Security protocol (used for Kafka)
Can be empty: False
Optional values: ['plaintext', 'sasl_plaintext', 'sasl_ssl']
accessCfg.ca string Client SSL certificate content
Can be empty: False
Can be an empty string: True
accessCfg.mechanism string Authentication method
Can be empty: False
Can be an empty string: True
Optional values: ['plain', 'scram-sha-256', 'scram-sha-512']
accessCfg.username string Username
Can be empty: False
Can be an empty string: True
accessCfg.password string Password
Can be empty: False
Can be an empty string: True
accessCfg.region string Region (optional value, if not entered it defaults to the corresponding vendor region matching the current site)
Can be empty: False
accessCfg.bucketPath string Storage bucket path
Can be empty: False

Additional Parameter Notes

Request Example

curl 'https://openapi.guance.com/api/v1/log_backup_cfg/lgbp_xxxx32/modify' \
-H 'Accept: application/json, text/plain, */*' \
-H 'Content-Type: application/json;charset=UTF-8' \
-H 'DF-API-KEY: <DF-API-KEY>' \
--data-raw '{"extend":{"filters":[],"filterLogic":"and"},"syncExtensionField":true,"accessCfg":{"cloudAccountId":"f000ee4d7327428da2f53a081e7109bd","bucket":"test-obs01","region":"cn-south-1","provider":"huawei"}}' \
--compressed

Response

{
    "code": 200,
    "content": {
        "conditions": "{}",
        "createAt": 1697613651,
        "creator": "xxx",
        "dataType": "tracing",
        "deleteAt": -1,
        "extend": {
            "filterLogic": "and",
            "filters": []
        },
        "externalResourceAccessCfgUUID": "erac_xxxx32",
        "id": 686,
        "name": "temp_test",
        "status": 0,
        "storeType": "obs",
        "syncExtensionField": true,
        "taskErrorCode": "",
        "taskStatusCode": -1,
        "updateAt": 1697613856.5497322,
        "updator": "wsak_xxxxx",
        "uuid": "lgbp_xxxx32",
        "workspaceUUID": "wksp_xxxx32"
    },
    "errorCode": "",
    "message": "",
    "success": true,
    "traceId": "TRACE-599A0794-3DD7-4731-BA2F-0A3655C09684"
} 

Feedback

Is this page helpful? ×