ci:CreateDatasetBinding permission to the action of the authorization policy. For all operation APIs supported by Cloud Infinite, see CI action.POST /datasetbinding HTTP/1.1Host: <AppId>.ci.ap-jakarta.myqcloud.comAuthorization: Auth StringContent-Length: 123Content-Type: application/jsonAccept: application/json
{"DatasetName": "test","URI": "cos://examplebucket-1250000000/test_data","Mode": 0}
Parameter Name | Description | Type | Required |
DatasetName | String | Yes | |
URI | Resource identifier field. Indicates the resource to be bound with the dataset. Currently, COS Buckets and directories within Buckets are supported, and you can add a prefix to bind a directory. Field rule: cos://<BucketName>/prefix, where BucketName indicates the COS Bucket name. Example: cos://examplebucket-1250000000 can be used to directly bind a Bucket. You can also add a prefix, where prefix represents a path. Example: cos://examplebucket-1250000000/test_data. | String | Yes |
Mode | After the binding is established, how to extract file index features. Valid values: 0: Indexes are created only for incremental files. 1: Indexes are created for existing files in the bucket while indexes are created for incremental files. The time required to index existing files depends on the number of existing files. The default value is 0. | Integer | No |
{"Binding": {"DatasetName": "test","URI": "cos://examplebucket-1250000000/test_data","State": "Running","StockState": "Indexing","CreateTime": "2025-04-09T19:38:08.454310276+08:00","UpdateTime": "2025-04-09T19:38:08.454310276+08:00"},"RequestId": "NWFjMzQ0MDZfOTBmYTUwXzZkZV8z****"}
Parameter Name | Type | Description |
Binding | Container | Binding information |
RequestId | String | Request ID. |
Parameter Name | Type | Description |
DatasetName | String | Data set name |
URI | String | Resource identifier field. Indicates the resource to be bound with the dataset. Currently, COS Buckets and directories within Buckets are supported, and you can add a prefix to bind a directory. Field rule: cos://<BucketName>/prefix, where BucketName indicates the COS Bucket name. Example: cos://examplebucket-1250000000 can be used to directly bind a Bucket. You can also add a prefix, where prefix represents a path. Example: cos://examplebucket-1250000000/test_data. |
State | String | Status of the binding relationship between the dataset and the COS Bucket. Valid value: Running: The binding relationship is running. |
StockState | String | Status of the existing index corresponding to the currently bound Bucket. Valid values: NoIndexing: Existing files are not indexed. Indexing: Existing file indexes are being created. Success: Existing file indexes have been created. |
CreateTime | String | Timestamp of the creation time of the binding relationship between the dataset and the COS Bucket, in RFC3339Nano format |
UpdateTime | String | The timestamp of the modification time of the binding relationship between the dataset and the COS Bucket, in RFC3339Nano format. After a binding relationship is created, if it has not been paused or restarted, the timestamp of the binding relationship modification time is the same as the timestamp of the binding relationship creation time. |
피드백