GetEffectivePlan

Updated at:

Queries the active plan for a specified MaxCompute quota and returns the plan name and quota group configurations. The result includes sub-quota configurations if sub-quotas exist.

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:GetEffectivePlan

get

*All Resource

*

None None

Request syntax

GET /api/v1/quotas/{nickname}/effectivePlan/ HTTP/1.1

Path Parameters

Parameter

Type

Required

Description

Example

nickname

string

Yes

The display name of the quota to query.

example_quota

Request parameters

Parameter

Type

Required

Description

Example

tenantId

string

No

The MaxCompute tenant ID. If omitted in the request, the tenant in the call context is used.

123456

region

string

No

The region where the MaxCompute quota resides. If omitted in the request, the region in the call context is used.

cn-hangzhou

Response elements

Element

Type

Description

Example

object

The API response, which includes the request status and the currently active quota plan.

requestId

string

The request ID, which can be used to locate server-side call logs.

EFAB5AA9-394A-5B28-81FB-A32F03C4DD13

httpCode

integer

The HTTP status code.

400

errorCode

string

The error code returned when the call fails.

InvalidParameter

errorMsg

string

The error message returned when the call fails.

The specified parameter is invalid.

data

object

The information about the currently active quota plan.

name

string

The name of the currently active quota plan.

daytime_plan

createTime

string

The time when the plan was created, in the yyyy-MM-dd HH:mm:ss format.

2026-11-01 08:00:00

quota

object

The quota groups and their configurations in the quota plan.

subQuotaInfoList

array<object>

The configurations of each sub-quota in the quota group.

array<object>

The configuration of a single sub-quota.

id

string

The quota identifier.

quota_example_001

name

string

The quota name in the quota configuration.

example_quota

nickName

string

The display name of the quota.

example_quota

type

string

The compute resource system type corresponding to the quota.

FUXI_OFFLINE

status

string

The quota status. ON indicates that the quota is enabled, and OFF indicates that the quota is disabled.

ON

tenantId

string

The ID of the MaxCompute tenant to which the quota belongs.

123456

regionId

string

The ID of the region where the quota resides.

cn-hangzhou

parentId

string

The ID of the parent quota to which the quota belongs.

quota_example_001

cluster

string

The name of the compute cluster to which the quota belongs.

example_cluster

version

string

The configuration version of the quota.

1

billingPolicy

object

The billing configuration of the quota.

odpsSpecCode

string

The specification code of the MaxCompute order.

example_spec

orderId

string

The ID of the associated order.

1234567890

instanceId

string

The ID of the associated billing instance.

1234567890

billingMethod

string

The billable methods of the quota. A value of PAYASYOUGO indicates the pay-as-you-go billing method.

PAYASYOUGO

scheduleInfo

object

The scheduling status of the quota plan, including the current plan and the next plan.

currPlan

string

The name of the quota plan that is currently in effect based on the scheduling rule.

daytime_plan

currTime

string

The effective time of the current scheduling plan, in the 24-hour HH:mm:ss format.

08:00:00

nextPlan

string

The name of the quota plan that will take effect in the next scheduling.

night_plan

nextTime

string

The effective time of the next scheduling plan, in the 24-hour HH:mm:ss format.

20:00:00

oncePlan

string

The name of the quota plan that is manually triggered to take effect.

manual_plan

onceTime

string

The time when the quota plan is manually triggered to take effect, in the 24-hour HH:mm:ss format.

12:00:00

operatorName

string

The name of the operator who manually triggers the quota plan to take effect.

example_operator

timezone

string

The time zone identifier used for the scheduling time.

Asia/Shanghai

parameter

any

The extended configuration, which depends on the quota type.

{}

tag

string

The quota preference tag of the scheduler.

example_tag

createTime

integer

The UNIX timestamp when the quota was created, in milliseconds.

1793520000000

creatorId

string

The ID of the user who created the quota.

1234567890123456

groupName

string

The name of the resource group to which the quota belongs.

example_group

saleTag

object

The sales tag information associated with the purchased resources.

resourceIds

array

The list of IDs of the associated purchased resources.

string

The ID of a single associated purchased resource.

example_resource_001

resourceType

string

The type of the purchased resource.

example_resource_type

id

string

The quota identifier.

quota_example_001

name

string

The quota name in the quota configuration.

example_quota

nickName

string

The display name of the quota.

example_quota

type

string

The compute resource system type corresponding to the quota.

FUXI_OFFLINE

status

string

The quota status. ON indicates that the quota is enabled, and OFF indicates that the quota is disabled.

ON

tenantId

string

The ID of the MaxCompute tenant to which the quota belongs.

123456

regionId

string

The ID of the region where the quota resides.

cn-hangzhou

parentId

string

The ID of the parent quota to which the quota belongs.

quota_example_001

cluster

string

The name of the compute cluster to which the quota belongs.

example_cluster

version

string

The configuration version of the quota.

1

billingPolicy

object

The billing configuration of the quota.

odpsSpecCode

string

The specification code of the MaxCompute order.

example_spec

orderId

string

The ID of the associated order.

1234567890

instanceId

string

The ID of the associated billing instance.

1234567890

billingMethod

string

The billable methods of the quota. A value of PAYASYOUGO indicates the pay-as-you-go billing method.

PAYASYOUGO

scheduleInfo

object

The scheduling status of the quota plan, including the current plan and the next plan.

currPlan

string

The name of the quota plan that is currently in effect based on the scheduling rule.

daytime_plan

currTime

string

The effective time of the current scheduling plan, in the 24-hour HH:mm:ss format.

08:00:00

nextPlan

string

The name of the quota plan that will take effect in the next scheduling.

night_plan

nextTime

string

The effective time of the next scheduling plan, in the 24-hour HH:mm:ss format.

20:00:00

oncePlan

string

The name of the quota plan that is manually triggered to take effect.

manual_plan

onceTime

string

The time when the quota plan is manually triggered to take effect, in the 24-hour HH:mm:ss format.

12:00:00

operatorName

string

The name of the operator who manually triggers the quota plan to take effect.

example_operator

timezone

string

The time zone identifier used for the scheduling time.

Asia/Shanghai

parameter

any

The extended configuration, which depends on the quota type.

{}

tag

string

The quota preference tag of the scheduler.

example_tag

createTime

integer

The UNIX timestamp when the quota was created, in milliseconds.

1793520000000

creatorId

string

The ID of the user who created the quota.

1234567890123456

groupName

string

The name of the resource group to which the quota belongs.

example_group

saleTag

object

The sales tag information associated with the purchased resources.

resourceIds

array

The list of IDs of the associated purchased resources.

string

The ID of a single associated purchased resource.

example_resource_001

resourceType

string

The type of the purchased resource.

example_resource_type

Examples

Success response

JSON format

{
  "requestId": "EFAB5AA9-394A-5B28-81FB-A32F03C4DD13",
  "httpCode": 400,
  "errorCode": "InvalidParameter",
  "errorMsg": "The specified parameter is invalid.",
  "data": {
    "name": "daytime_plan",
    "createTime": "2026-11-01 08:00:00",
    "quota": {
      "subQuotaInfoList": [
        {
          "id": "quota_example_001",
          "name": "example_quota",
          "nickName": "example_quota",
          "type": "FUXI_OFFLINE",
          "status": "ON",
          "tenantId": "123456",
          "regionId": "cn-hangzhou",
          "parentId": "quota_example_001",
          "cluster": "example_cluster",
          "version": "1",
          "billingPolicy": {
            "odpsSpecCode": "example_spec",
            "orderId": "1234567890",
            "instanceId": "1234567890",
            "billingMethod": "PAYASYOUGO"
          },
          "scheduleInfo": {
            "currPlan": "daytime_plan",
            "currTime": "08:00:00",
            "nextPlan": "night_plan",
            "nextTime": "20:00:00",
            "oncePlan": "manual_plan",
            "onceTime": "12:00:00",
            "operatorName": "example_operator",
            "timezone": "Asia/Shanghai"
          },
          "parameter": "{}",
          "tag": "example_tag",
          "createTime": 1793520000000,
          "creatorId": "1234567890123456",
          "groupName": "example_group",
          "saleTag": {
            "resourceIds": [
              "example_resource_001"
            ],
            "resourceType": "example_resource_type"
          }
        }
      ],
      "id": "quota_example_001",
      "name": "example_quota",
      "nickName": "example_quota",
      "type": "FUXI_OFFLINE",
      "status": "ON",
      "tenantId": "123456",
      "regionId": "cn-hangzhou",
      "parentId": "quota_example_001",
      "cluster": "example_cluster",
      "version": "1",
      "billingPolicy": {
        "odpsSpecCode": "example_spec",
        "orderId": "1234567890",
        "instanceId": "1234567890",
        "billingMethod": "PAYASYOUGO"
      },
      "scheduleInfo": {
        "currPlan": "daytime_plan",
        "currTime": "08:00:00",
        "nextPlan": "night_plan",
        "nextTime": "20:00:00",
        "oncePlan": "manual_plan",
        "onceTime": "12:00:00",
        "operatorName": "example_operator",
        "timezone": "Asia/Shanghai"
      },
      "parameter": "{}",
      "tag": "example_tag",
      "createTime": 1793520000000,
      "creatorId": "1234567890123456",
      "groupName": "example_group",
      "saleTag": {
        "resourceIds": [
          "example_resource_001"
        ],
        "resourceType": "example_resource_type"
      }
    }
  }
}

Error codes

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.