All Products
Search
Document Center

Intelligent Media Management:ListBindings

Last Updated:Dec 11, 2024

Queries bindings between a dataset and Object Storage Service (OSS) buckets.

Operation description

Before you call this operation, make sure that you are familiar with the billing of Intelligent Media Management (IMM).

Debugging

You can run this interface directly in OpenAPI Explorer, saving you the trouble of calculating signatures. After running successfully, OpenAPI Explorer can automatically generate SDK code samples.

Authorization information

The following table shows the authorization information corresponding to the API. The authorization information can be used in the Action policy element to grant a RAM user or RAM role the permissions to call this API operation. Description:

  • Operation: the value that you can use in the Action element to specify the operation on a resource.
  • Access level: the access level of each operation. The levels are read, write, and list.
  • Resource type: the type of the resource on which you can authorize the RAM user or the RAM role to perform the operation. Take note of the following items:
    • The required resource types are displayed in bold characters.
    • If the permissions cannot be granted at the resource level, All Resources is used in the Resource type column of the operation.
  • Condition Key: the condition key that is defined by the cloud service.
  • Associated operation: other operations that the RAM user or the RAM role must have permissions to perform to complete the operation. To complete the operation, the RAM user or the RAM role must have the permissions to perform the associated operations.
OperationAccess levelResource typeCondition keyAssociated operation
imm:ListBindingslist
*Dataset
acs:imm:{#regionId}:{#accountId}:project/{#ProjectName}/dataset/{#DatasetName}
    none
none

Request parameters

ParameterTypeRequiredDescriptionExample
ProjectNamestringYes

The name of the project.

test-project
DatasetNamestringYes

The name of the dataset.

test-dataset
MaxResultslongNo
  • The maximum number of bindings to return. Valid values: 0 to 200.
  • If you do not specify this parameter or set the parameter to 0, the default value of 100 is used.
1
NextTokenstringNo
  • The pagination token that is used in the next request to retrieve a new page of results if the total number of results exceeds the value of the MaxResults parameter.
  • The next call to the operation returns results lexicographically after the NextToken parameter value.
  • You do not need to specify this parameter in your initial request.
immtest:dataset001:examplebucket01

Response parameters

ParameterTypeDescriptionExample
object

The response parameters.

RequestIdstring

The request ID.

EFDFD356-C928-4A36-951A-6EB5A592****
NextTokenstring
  • The pagination token that is used in the next request to retrieve a new page of results if the total number of results exceeds the value of the MaxResults parameter.
  • The next request returns remaining results starting from the position marked by the NextToken parameter value.
  • This parameter has a non-empty value only when not all bindings are returned.
immtest:dataset001:examplebucket01
Bindingsarray

The bindings between the dataset and OSS buckets.

BindingsBinding

The information about the binding between the dataset and the bucket.

Examples

Sample success responses

JSONformat

{
  "RequestId": "EFDFD356-C928-4A36-951A-6EB5A592****",
  "NextToken": "immtest:dataset001:examplebucket01",
  "Bindings": [
    {
      "ProjectName": "immtest",
      "DatasetName": "dataset001",
      "URI": "oss://examplebucket",
      "State": "Running",
      "Phase": "FullScanning",
      "Detail": "",
      "CreateTime": "2021-06-29T14:50:13.011643661+08:00",
      "UpdateTime": "2021-06-29T14:50:13.011643661+08:00",
      "Reason": ""
    }
  ]
}

Error codes

For a list of error codes, visit the Service error codes.

Change history

Change timeSummary of changesOperation
2021-06-15Add OperationView Change Details