GetAutoMvDetail

Updated at:

Queries the latest statistics information of an automatic materialized view in a specified project, including the definition, storage size, and row count.

Try it now

Try this API in OpenAPI Explorer, no manual signing needed. Successful calls auto-generate SDK code matching your parameters. Download it with built-in credential security for local usage.

Test

RAM authorization

The table below describes the authorization required to call this API. You can define it in a Resource Access Management (RAM) policy. The table's columns are detailed below:

  • Action: The actions can be used in the Action element of RAM permission policy statements to grant permissions to perform the operation.

  • API: The API that you can call to perform the action.

  • Access level: The predefined level of access granted for each API. Valid values: create, list, get, update, and delete.

  • Resource type: The type of the resource that supports authorization to perform the action. It indicates if the action supports resource-level permission. The specified resource must be compatible with the action. Otherwise, the policy will be ineffective.

    • For APIs with resource-level permissions, required resource types are marked with an asterisk (*). Specify the corresponding Alibaba Cloud Resource Name (ARN) in the Resource element of the policy.

    • For APIs without resource-level permissions, it is shown as All Resources. Use an asterisk (*) in the Resource element of the policy.

  • Condition key: The condition keys defined by the service. The key allows for granular control, applying to either actions alone or actions associated with specific resources. In addition to service-specific condition keys, Alibaba Cloud provides a set of common condition keys applicable across all RAM-supported services.

  • Dependent action: The dependent actions required to run the action. To complete the action, the RAM user or the RAM role must have the permissions to perform all dependent actions.

Action

Access level

Resource type

Condition key

Dependent action

odps:GetAutoMvDetail

get

*Project

acs:odps:{#regionId}:{#accountId}:projects/{#ProjectName}

None None

Request syntax

GET /api/v2/projects/{project}/autoMv/{name}/detail HTTP/1.1

Path Parameters

Parameter

Type

Required

Description

Example

project

string

Yes

The name of the MaxCompute project.

example_project

name

string

Yes

The name of the automatic materialized view.

mv_sales_daily

Request parameters

Parameter

Type

Required

Description

Example

schema

string

No

The schema to which the view belongs. Default value: default. This parameter is not used for filtering because the current detail query matches by project and name.

default

Response elements

Element

Type

Description

Example

object

PopResult

requestId

string

The unique identifier of the API request. Provide this identifier when troubleshooting call issues.

0be3e0aa16667684362147582e038f

httpCode

integer

The HTTP status code of the request.

200

errorCode

string

The error code returned when the request fails.

InvalidArgument

errorMsg

string

The error message returned when the request fails.

The specified parameter is invalid.

data

object

The latest details of the specified automatic materialized view.

name

string

The name of the automatic materialized view.

mv_sales_daily

owner

string

The owner of the automatic materialized view.

example_owner

createTime

integer

The time when the view was created, represented as a UNIX timestamp in seconds.

1764547200

size

number

The amount of storage occupied by the view. For the unit, see unit.

5

date

string

The date of the detail statistics, in the yyyyMMdd format.

20260101

query

string

The query statement that defines the automatic materialized view.

SELECT sales_date, SUM(amount) AS amount FROM sales GROUP BY sales_date

rowCount

integer

The number of rows recorded in the view.

1024

unit

string

The unit of the storage occupied by the view.

GB

Examples

Success response

JSON format

{
  "requestId": "0be3e0aa16667684362147582e038f",
  "httpCode": 200,
  "errorCode": "InvalidArgument",
  "errorMsg": "The specified parameter is invalid.",
  "data": {
    "name": "mv_sales_daily",
    "owner": "example_owner",
    "createTime": 1764547200,
    "size": 5,
    "date": "20260101",
    "query": "SELECT sales_date, SUM(amount) AS amount FROM sales GROUP BY sales_date",
    "rowCount": 1024,
    "unit": "GB"
  }
}

Error codes

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.