1. Packages
  2. Alibaba Cloud Provider
  3. API Docs
  4. quotas
  5. getQuotaApplications
Alibaba Cloud v3.76.0 published on Tuesday, Apr 8, 2025 by Pulumi

alicloud.quotas.getQuotaApplications

Explore with Pulumi AI

Alibaba Cloud v3.76.0 published on Tuesday, Apr 8, 2025 by Pulumi

This data source provides the Quotas Quota Applications of the current Alibaba Cloud user.

NOTE: Available since v1.117.0.

Example Usage

Basic Usage

import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";

const defaultQuotaApplication = new alicloud.quotas.QuotaApplication("default", {
    productCode: "vpc",
    noticeType: 3,
    effectiveTime: "2023-05-22T16:00:00Z",
    expireTime: "2024-09-15T00:08:32Z",
    desireValue: 1,
    reason: "",
    quotaActionCode: "vpc_whitelist/ha_vip_whitelist",
    auditMode: "Sync",
    envLanguage: "zh",
    quotaCategory: "WhiteListLabel",
});
const _default = pulumi.all([defaultQuotaApplication.quotaCategory, defaultQuotaApplication.id]).apply(([quotaCategory, id]) => alicloud.quotas.getQuotaApplicationsOutput({
    productCode: "vpc",
    enableDetails: true,
    quotaCategory: quotaCategory,
    ids: [id],
}));
Copy
import pulumi
import pulumi_alicloud as alicloud

default_quota_application = alicloud.quotas.QuotaApplication("default",
    product_code="vpc",
    notice_type=3,
    effective_time="2023-05-22T16:00:00Z",
    expire_time="2024-09-15T00:08:32Z",
    desire_value=1,
    reason="",
    quota_action_code="vpc_whitelist/ha_vip_whitelist",
    audit_mode="Sync",
    env_language="zh",
    quota_category="WhiteListLabel")
default = pulumi.Output.all(
    quota_category=default_quota_application.quota_category,
    id=default_quota_application.id
).apply(lambda resolved_outputs: alicloud.quotas.get_quota_applications_output(product_code="vpc",
    enable_details=True,
    quota_category=resolved_outputs['quota_category'],
    ids=[resolved_outputs['id']]))
Copy
package main

import (
	"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/quotas"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		defaultQuotaApplication, err := quotas.NewQuotaApplication(ctx, "default", &quotas.QuotaApplicationArgs{
			ProductCode:     pulumi.String("vpc"),
			NoticeType:      pulumi.Int(3),
			EffectiveTime:   pulumi.String("2023-05-22T16:00:00Z"),
			ExpireTime:      pulumi.String("2024-09-15T00:08:32Z"),
			DesireValue:     pulumi.Float64(1),
			Reason:          pulumi.String(""),
			QuotaActionCode: pulumi.String("vpc_whitelist/ha_vip_whitelist"),
			AuditMode:       pulumi.String("Sync"),
			EnvLanguage:     pulumi.String("zh"),
			QuotaCategory:   pulumi.String("WhiteListLabel"),
		})
		if err != nil {
			return err
		}
		_ = pulumi.All(defaultQuotaApplication.QuotaCategory, defaultQuotaApplication.ID()).ApplyT(func(_args []interface{}) (quotas.GetQuotaApplicationsResult, error) {
			quotaCategory := _args[0].(*string)
			id := _args[1].(string)
			return quotas.GetQuotaApplicationsResult(interface{}(quotas.GetQuotaApplicationsOutput(ctx, quotas.GetQuotaApplicationsOutputArgs{
				ProductCode:   "vpc",
				EnableDetails: true,
				QuotaCategory: quotaCategory,
				Ids: []string{
					id,
				},
			}, nil))), nil
		}).(quotas.GetQuotaApplicationsResultOutput)
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AliCloud = Pulumi.AliCloud;

return await Deployment.RunAsync(() => 
{
    var defaultQuotaApplication = new AliCloud.Quotas.QuotaApplication("default", new()
    {
        ProductCode = "vpc",
        NoticeType = 3,
        EffectiveTime = "2023-05-22T16:00:00Z",
        ExpireTime = "2024-09-15T00:08:32Z",
        DesireValue = 1,
        Reason = "",
        QuotaActionCode = "vpc_whitelist/ha_vip_whitelist",
        AuditMode = "Sync",
        EnvLanguage = "zh",
        QuotaCategory = "WhiteListLabel",
    });

    var @default = AliCloud.Quotas.GetQuotaApplications.Invoke(new()
    {
        ProductCode = "vpc",
        EnableDetails = true,
        QuotaCategory = defaultQuotaApplication.QuotaCategory,
        Ids = new[]
        {
            defaultQuotaApplication.Id,
        },
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.alicloud.quotas.QuotaApplication;
import com.pulumi.alicloud.quotas.QuotaApplicationArgs;
import com.pulumi.alicloud.quotas.QuotasFunctions;
import com.pulumi.alicloud.quotas.inputs.GetQuotaApplicationsArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;

public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }

    public static void stack(Context ctx) {
        var defaultQuotaApplication = new QuotaApplication("defaultQuotaApplication", QuotaApplicationArgs.builder()
            .productCode("vpc")
            .noticeType("3")
            .effectiveTime("2023-05-22T16:00:00Z")
            .expireTime("2024-09-15T00:08:32Z")
            .desireValue("1")
            .reason("")
            .quotaActionCode("vpc_whitelist/ha_vip_whitelist")
            .auditMode("Sync")
            .envLanguage("zh")
            .quotaCategory("WhiteListLabel")
            .build());

        final var default = QuotasFunctions.getQuotaApplications(GetQuotaApplicationsArgs.builder()
            .productCode("vpc")
            .enableDetails("true")
            .quotaCategory(defaultQuotaApplication.quotaCategory())
            .ids(defaultQuotaApplication.id())
            .build());

    }
}
Copy
resources:
  defaultQuotaApplication:
    type: alicloud:quotas:QuotaApplication
    name: default
    properties:
      productCode: vpc
      noticeType: '3'
      effectiveTime: 2023-05-22T16:00:00Z
      expireTime: 2024-09-15T00:08:32Z
      desireValue: '1'
      reason: ""
      quotaActionCode: vpc_whitelist/ha_vip_whitelist
      auditMode: Sync
      envLanguage: zh
      quotaCategory: WhiteListLabel
variables:
  default:
    fn::invoke:
      function: alicloud:quotas:getQuotaApplications
      arguments:
        productCode: vpc
        enableDetails: 'true'
        quotaCategory: ${defaultQuotaApplication.quotaCategory}
        ids:
          - ${defaultQuotaApplication.id}
Copy

Using getQuotaApplications

Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

function getQuotaApplications(args: GetQuotaApplicationsArgs, opts?: InvokeOptions): Promise<GetQuotaApplicationsResult>
function getQuotaApplicationsOutput(args: GetQuotaApplicationsOutputArgs, opts?: InvokeOptions): Output<GetQuotaApplicationsResult>
Copy
def get_quota_applications(dimensions: Optional[Sequence[GetQuotaApplicationsDimension]] = None,
                           enable_details: Optional[bool] = None,
                           ids: Optional[Sequence[str]] = None,
                           key_word: Optional[str] = None,
                           output_file: Optional[str] = None,
                           product_code: Optional[str] = None,
                           quota_action_code: Optional[str] = None,
                           quota_category: Optional[str] = None,
                           status: Optional[str] = None,
                           opts: Optional[InvokeOptions] = None) -> GetQuotaApplicationsResult
def get_quota_applications_output(dimensions: Optional[pulumi.Input[Sequence[pulumi.Input[GetQuotaApplicationsDimensionArgs]]]] = None,
                           enable_details: Optional[pulumi.Input[bool]] = None,
                           ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
                           key_word: Optional[pulumi.Input[str]] = None,
                           output_file: Optional[pulumi.Input[str]] = None,
                           product_code: Optional[pulumi.Input[str]] = None,
                           quota_action_code: Optional[pulumi.Input[str]] = None,
                           quota_category: Optional[pulumi.Input[str]] = None,
                           status: Optional[pulumi.Input[str]] = None,
                           opts: Optional[InvokeOptions] = None) -> Output[GetQuotaApplicationsResult]
Copy
func GetQuotaApplications(ctx *Context, args *GetQuotaApplicationsArgs, opts ...InvokeOption) (*GetQuotaApplicationsResult, error)
func GetQuotaApplicationsOutput(ctx *Context, args *GetQuotaApplicationsOutputArgs, opts ...InvokeOption) GetQuotaApplicationsResultOutput
Copy

> Note: This function is named GetQuotaApplications in the Go SDK.

public static class GetQuotaApplications 
{
    public static Task<GetQuotaApplicationsResult> InvokeAsync(GetQuotaApplicationsArgs args, InvokeOptions? opts = null)
    public static Output<GetQuotaApplicationsResult> Invoke(GetQuotaApplicationsInvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<GetQuotaApplicationsResult> getQuotaApplications(GetQuotaApplicationsArgs args, InvokeOptions options)
public static Output<GetQuotaApplicationsResult> getQuotaApplications(GetQuotaApplicationsArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: alicloud:quotas/getQuotaApplications:getQuotaApplications
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

ProductCode
This property is required.
Changes to this property will trigger replacement.
string
The product code.
Dimensions Changes to this property will trigger replacement. List<Pulumi.AliCloud.Quotas.Inputs.GetQuotaApplicationsDimension>
The quota dimensions.
EnableDetails bool
Default to false. Set it to true can output more details about resource attributes.
Ids Changes to this property will trigger replacement. List<string>
A list of Application Info IDs.
KeyWord Changes to this property will trigger replacement. string
OutputFile string
File name where to save data source results (after running pulumi preview).
QuotaActionCode Changes to this property will trigger replacement. string
The ID of quota action.
QuotaCategory Changes to this property will trigger replacement. string
The quota category. Valid values: CommonQuota, FlowControl, WhiteListLabel.
Status Changes to this property will trigger replacement. string
The status of the quota application. Valid Values: Agree, Disagree and Process.
ProductCode
This property is required.
Changes to this property will trigger replacement.
string
The product code.
Dimensions Changes to this property will trigger replacement. []GetQuotaApplicationsDimension
The quota dimensions.
EnableDetails bool
Default to false. Set it to true can output more details about resource attributes.
Ids Changes to this property will trigger replacement. []string
A list of Application Info IDs.
KeyWord Changes to this property will trigger replacement. string
OutputFile string
File name where to save data source results (after running pulumi preview).
QuotaActionCode Changes to this property will trigger replacement. string
The ID of quota action.
QuotaCategory Changes to this property will trigger replacement. string
The quota category. Valid values: CommonQuota, FlowControl, WhiteListLabel.
Status Changes to this property will trigger replacement. string
The status of the quota application. Valid Values: Agree, Disagree and Process.
productCode
This property is required.
Changes to this property will trigger replacement.
String
The product code.
dimensions Changes to this property will trigger replacement. List<GetQuotaApplicationsDimension>
The quota dimensions.
enableDetails Boolean
Default to false. Set it to true can output more details about resource attributes.
ids Changes to this property will trigger replacement. List<String>
A list of Application Info IDs.
keyWord Changes to this property will trigger replacement. String
outputFile String
File name where to save data source results (after running pulumi preview).
quotaActionCode Changes to this property will trigger replacement. String
The ID of quota action.
quotaCategory Changes to this property will trigger replacement. String
The quota category. Valid values: CommonQuota, FlowControl, WhiteListLabel.
status Changes to this property will trigger replacement. String
The status of the quota application. Valid Values: Agree, Disagree and Process.
productCode
This property is required.
Changes to this property will trigger replacement.
string
The product code.
dimensions Changes to this property will trigger replacement. GetQuotaApplicationsDimension[]
The quota dimensions.
enableDetails boolean
Default to false. Set it to true can output more details about resource attributes.
ids Changes to this property will trigger replacement. string[]
A list of Application Info IDs.
keyWord Changes to this property will trigger replacement. string
outputFile string
File name where to save data source results (after running pulumi preview).
quotaActionCode Changes to this property will trigger replacement. string
The ID of quota action.
quotaCategory Changes to this property will trigger replacement. string
The quota category. Valid values: CommonQuota, FlowControl, WhiteListLabel.
status Changes to this property will trigger replacement. string
The status of the quota application. Valid Values: Agree, Disagree and Process.
product_code
This property is required.
Changes to this property will trigger replacement.
str
The product code.
dimensions Changes to this property will trigger replacement. Sequence[GetQuotaApplicationsDimension]
The quota dimensions.
enable_details bool
Default to false. Set it to true can output more details about resource attributes.
ids Changes to this property will trigger replacement. Sequence[str]
A list of Application Info IDs.
key_word Changes to this property will trigger replacement. str
output_file str
File name where to save data source results (after running pulumi preview).
quota_action_code Changes to this property will trigger replacement. str
The ID of quota action.
quota_category Changes to this property will trigger replacement. str
The quota category. Valid values: CommonQuota, FlowControl, WhiteListLabel.
status Changes to this property will trigger replacement. str
The status of the quota application. Valid Values: Agree, Disagree and Process.
productCode
This property is required.
Changes to this property will trigger replacement.
String
The product code.
dimensions Changes to this property will trigger replacement. List<Property Map>
The quota dimensions.
enableDetails Boolean
Default to false. Set it to true can output more details about resource attributes.
ids Changes to this property will trigger replacement. List<String>
A list of Application Info IDs.
keyWord Changes to this property will trigger replacement. String
outputFile String
File name where to save data source results (after running pulumi preview).
quotaActionCode Changes to this property will trigger replacement. String
The ID of quota action.
quotaCategory Changes to this property will trigger replacement. String
The quota category. Valid values: CommonQuota, FlowControl, WhiteListLabel.
status Changes to this property will trigger replacement. String
The status of the quota application. Valid Values: Agree, Disagree and Process.

getQuotaApplications Result

The following output properties are available:

Applications []GetQuotaApplicationsApplication
Id string
The provider-assigned unique ID for this managed resource.
Ids []string
ProductCode string
Dimensions []GetQuotaApplicationsDimension
EnableDetails bool
KeyWord string
OutputFile string
QuotaActionCode string
QuotaCategory string
Status string
applications List<GetQuotaApplicationsApplication>
id String
The provider-assigned unique ID for this managed resource.
ids List<String>
productCode String
dimensions List<GetQuotaApplicationsDimension>
enableDetails Boolean
keyWord String
outputFile String
quotaActionCode String
quotaCategory String
status String
applications GetQuotaApplicationsApplication[]
id string
The provider-assigned unique ID for this managed resource.
ids string[]
productCode string
dimensions GetQuotaApplicationsDimension[]
enableDetails boolean
keyWord string
outputFile string
quotaActionCode string
quotaCategory string
status string
applications List<Property Map>
id String
The provider-assigned unique ID for this managed resource.
ids List<String>
productCode String
dimensions List<Property Map>
enableDetails Boolean
keyWord String
outputFile String
quotaActionCode String
quotaCategory String
status String

Supporting Types

GetQuotaApplicationsApplication

ApplicationId This property is required. string
The first ID of the resource.
ApproveValue This property is required. string
The approve value.
AuditReason This property is required. string
The audit reason.
DesireValue This property is required. double
The desire value of the quota application.
Dimensions This property is required. List<Pulumi.AliCloud.Quotas.Inputs.GetQuotaApplicationsApplicationDimension>
The quota dimensions.
EffectiveTime This property is required. string
The effective time.
ExpireTime This property is required. string
The expire time.
Id This property is required. string
The ID of the Application Info.
NoticeType This property is required. int
The notice type.
ProductCode This property is required. string
The product code.
QuotaActionCode This property is required. string
The ID of quota action..
QuotaDescription This property is required. string
The description of the quota.
QuotaName This property is required. string
The name of the quota.
QuotaUnit This property is required. string
The quota unit.
Reason This property is required. string
The reason of the quota application.
Status This property is required. string
The status of the quota application.
ApplicationId This property is required. string
The first ID of the resource.
ApproveValue This property is required. string
The approve value.
AuditReason This property is required. string
The audit reason.
DesireValue This property is required. float64
The desire value of the quota application.
Dimensions This property is required. []GetQuotaApplicationsApplicationDimension
The quota dimensions.
EffectiveTime This property is required. string
The effective time.
ExpireTime This property is required. string
The expire time.
Id This property is required. string
The ID of the Application Info.
NoticeType This property is required. int
The notice type.
ProductCode This property is required. string
The product code.
QuotaActionCode This property is required. string
The ID of quota action..
QuotaDescription This property is required. string
The description of the quota.
QuotaName This property is required. string
The name of the quota.
QuotaUnit This property is required. string
The quota unit.
Reason This property is required. string
The reason of the quota application.
Status This property is required. string
The status of the quota application.
applicationId This property is required. String
The first ID of the resource.
approveValue This property is required. String
The approve value.
auditReason This property is required. String
The audit reason.
desireValue This property is required. Double
The desire value of the quota application.
dimensions This property is required. List<GetQuotaApplicationsApplicationDimension>
The quota dimensions.
effectiveTime This property is required. String
The effective time.
expireTime This property is required. String
The expire time.
id This property is required. String
The ID of the Application Info.
noticeType This property is required. Integer
The notice type.
productCode This property is required. String
The product code.
quotaActionCode This property is required. String
The ID of quota action..
quotaDescription This property is required. String
The description of the quota.
quotaName This property is required. String
The name of the quota.
quotaUnit This property is required. String
The quota unit.
reason This property is required. String
The reason of the quota application.
status This property is required. String
The status of the quota application.
applicationId This property is required. string
The first ID of the resource.
approveValue This property is required. string
The approve value.
auditReason This property is required. string
The audit reason.
desireValue This property is required. number
The desire value of the quota application.
dimensions This property is required. GetQuotaApplicationsApplicationDimension[]
The quota dimensions.
effectiveTime This property is required. string
The effective time.
expireTime This property is required. string
The expire time.
id This property is required. string
The ID of the Application Info.
noticeType This property is required. number
The notice type.
productCode This property is required. string
The product code.
quotaActionCode This property is required. string
The ID of quota action..
quotaDescription This property is required. string
The description of the quota.
quotaName This property is required. string
The name of the quota.
quotaUnit This property is required. string
The quota unit.
reason This property is required. string
The reason of the quota application.
status This property is required. string
The status of the quota application.
application_id This property is required. str
The first ID of the resource.
approve_value This property is required. str
The approve value.
audit_reason This property is required. str
The audit reason.
desire_value This property is required. float
The desire value of the quota application.
dimensions This property is required. Sequence[GetQuotaApplicationsApplicationDimension]
The quota dimensions.
effective_time This property is required. str
The effective time.
expire_time This property is required. str
The expire time.
id This property is required. str
The ID of the Application Info.
notice_type This property is required. int
The notice type.
product_code This property is required. str
The product code.
quota_action_code This property is required. str
The ID of quota action..
quota_description This property is required. str
The description of the quota.
quota_name This property is required. str
The name of the quota.
quota_unit This property is required. str
The quota unit.
reason This property is required. str
The reason of the quota application.
status This property is required. str
The status of the quota application.
applicationId This property is required. String
The first ID of the resource.
approveValue This property is required. String
The approve value.
auditReason This property is required. String
The audit reason.
desireValue This property is required. Number
The desire value of the quota application.
dimensions This property is required. List<Property Map>
The quota dimensions.
effectiveTime This property is required. String
The effective time.
expireTime This property is required. String
The expire time.
id This property is required. String
The ID of the Application Info.
noticeType This property is required. Number
The notice type.
productCode This property is required. String
The product code.
quotaActionCode This property is required. String
The ID of quota action..
quotaDescription This property is required. String
The description of the quota.
quotaName This property is required. String
The name of the quota.
quotaUnit This property is required. String
The quota unit.
reason This property is required. String
The reason of the quota application.
status This property is required. String
The status of the quota application.

GetQuotaApplicationsApplicationDimension

Key This property is required. string
The key of dimensions.
Value This property is required. string
The value of dimensions.
Key This property is required. string
The key of dimensions.
Value This property is required. string
The value of dimensions.
key This property is required. String
The key of dimensions.
value This property is required. String
The value of dimensions.
key This property is required. string
The key of dimensions.
value This property is required. string
The value of dimensions.
key This property is required. str
The key of dimensions.
value This property is required. str
The value of dimensions.
key This property is required. String
The key of dimensions.
value This property is required. String
The value of dimensions.

GetQuotaApplicationsDimension

Key string
Value string
Key string
Value string
key String
value String
key string
value string
key str
value str
key String
value String

Package Details

Repository
Alibaba Cloud pulumi/pulumi-alicloud
License
Apache-2.0
Notes
This Pulumi package is based on the alicloud Terraform Provider.
Alibaba Cloud v3.76.0 published on Tuesday, Apr 8, 2025 by Pulumi