Alibaba Cloud v3.76.0 published on Tuesday, Apr 8, 2025 by Pulumi
alicloud.quotas.getQuotaApplications
Explore with Pulumi AI
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],
}));
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']]))
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", "as.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
})
}
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,
},
});
});
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());
}
}
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}
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>
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]
func GetQuotaApplications(ctx *Context, args *GetQuotaApplicationsArgs, opts ...InvokeOption) (*GetQuotaApplicationsResult, error)
func GetQuotaApplicationsOutput(ctx *Context, args *GetQuotaApplicationsOutputArgs, opts ...InvokeOption) GetQuotaApplicationsResultOutput
> 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)
}
public static CompletableFuture<GetQuotaApplicationsResult> getQuotaApplications(GetQuotaApplicationsArgs args, InvokeOptions options)
public static Output<GetQuotaApplicationsResult> getQuotaApplications(GetQuotaApplicationsArgs args, InvokeOptions options)
fn::invoke:
function: alicloud:quotas/getQuotaApplications:getQuotaApplications
arguments:
# arguments dictionary
The following arguments are supported:
- Product
Code This property is required. Changes to this property will trigger replacement.
- The product code.
- Dimensions
Changes to this property will trigger replacement.
Ali Cloud. Quotas. Inputs. Get Quota Applications Dimension> - The quota dimensions.
- Enable
Details bool - Default to
false
. Set it totrue
can output more details about resource attributes. - Ids
Changes to this property will trigger replacement.
- A list of Application Info IDs.
- Key
Word Changes to this property will trigger replacement.
- Output
File string - File name where to save data source results (after running
pulumi preview
). - Quota
Action Code Changes to this property will trigger replacement.
- The ID of quota action.
- Quota
Category Changes to this property will trigger replacement.
- The quota category. Valid values:
CommonQuota
,FlowControl
,WhiteListLabel
. - Status
Changes to this property will trigger replacement.
- The status of the quota application. Valid Values:
Agree
,Disagree
andProcess
.
- Product
Code This property is required. Changes to this property will trigger replacement.
- The product code.
- Dimensions
Changes to this property will trigger replacement.
Quota Applications Dimension - The quota dimensions.
- Enable
Details bool - Default to
false
. Set it totrue
can output more details about resource attributes. - Ids
Changes to this property will trigger replacement.
- A list of Application Info IDs.
- Key
Word Changes to this property will trigger replacement.
- Output
File string - File name where to save data source results (after running
pulumi preview
). - Quota
Action Code Changes to this property will trigger replacement.
- The ID of quota action.
- Quota
Category Changes to this property will trigger replacement.
- The quota category. Valid values:
CommonQuota
,FlowControl
,WhiteListLabel
. - Status
Changes to this property will trigger replacement.
- The status of the quota application. Valid Values:
Agree
,Disagree
andProcess
.
- product
Code This property is required. Changes to this property will trigger replacement.
- The product code.
- dimensions
Changes to this property will trigger replacement.
Quota Applications Dimension> - The quota dimensions.
- enable
Details Boolean - Default to
false
. Set it totrue
can output more details about resource attributes. - ids
Changes to this property will trigger replacement.
- A list of Application Info IDs.
- key
Word Changes to this property will trigger replacement.
- output
File String - File name where to save data source results (after running
pulumi preview
). - quota
Action Code Changes to this property will trigger replacement.
- The ID of quota action.
- quota
Category Changes to this property will trigger replacement.
- The quota category. Valid values:
CommonQuota
,FlowControl
,WhiteListLabel
. - status
Changes to this property will trigger replacement.
- The status of the quota application. Valid Values:
Agree
,Disagree
andProcess
.
- product
Code This property is required. Changes to this property will trigger replacement.
- The product code.
- dimensions
Changes to this property will trigger replacement.
Quota Applications Dimension[] - The quota dimensions.
- enable
Details boolean - Default to
false
. Set it totrue
can output more details about resource attributes. - ids
Changes to this property will trigger replacement.
- A list of Application Info IDs.
- key
Word Changes to this property will trigger replacement.
- output
File string - File name where to save data source results (after running
pulumi preview
). - quota
Action Code Changes to this property will trigger replacement.
- The ID of quota action.
- quota
Category Changes to this property will trigger replacement.
- The quota category. Valid values:
CommonQuota
,FlowControl
,WhiteListLabel
. - status
Changes to this property will trigger replacement.
- The status of the quota application. Valid Values:
Agree
,Disagree
andProcess
.
- product_
code This property is required. Changes to this property will trigger replacement.
- The product code.
- dimensions
Changes to this property will trigger replacement.
Quota Applications Dimension] - The quota dimensions.
- enable_
details bool - Default to
false
. Set it totrue
can output more details about resource attributes. - ids
Changes to this property will trigger replacement.
- A list of Application Info IDs.
- key_
word Changes to this property will trigger replacement.
- 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.
- The ID of quota action.
- quota_
category Changes to this property will trigger replacement.
- The quota category. Valid values:
CommonQuota
,FlowControl
,WhiteListLabel
. - status
Changes to this property will trigger replacement.
- The status of the quota application. Valid Values:
Agree
,Disagree
andProcess
.
- product
Code This property is required. Changes to this property will trigger replacement.
- The product code.
- dimensions
Changes to this property will trigger replacement.
- The quota dimensions.
- enable
Details Boolean - Default to
false
. Set it totrue
can output more details about resource attributes. - ids
Changes to this property will trigger replacement.
- A list of Application Info IDs.
- key
Word Changes to this property will trigger replacement.
- output
File String - File name where to save data source results (after running
pulumi preview
). - quota
Action Code Changes to this property will trigger replacement.
- The ID of quota action.
- quota
Category Changes to this property will trigger replacement.
- The quota category. Valid values:
CommonQuota
,FlowControl
,WhiteListLabel
. - status
Changes to this property will trigger replacement.
- The status of the quota application. Valid Values:
Agree
,Disagree
andProcess
.
getQuotaApplications Result
The following output properties are available:
- Applications
List<Pulumi.
Ali Cloud. Quotas. Outputs. Get Quota Applications Application> - Id string
- The provider-assigned unique ID for this managed resource.
- Ids List<string>
- Product
Code string - Dimensions
List<Pulumi.
Ali Cloud. Quotas. Outputs. Get Quota Applications Dimension> - Enable
Details bool - Key
Word string - Output
File string - Quota
Action stringCode - Quota
Category string - Status string
- Applications
[]Get
Quota Applications Application - Id string
- The provider-assigned unique ID for this managed resource.
- Ids []string
- Product
Code string - Dimensions
[]Get
Quota Applications Dimension - Enable
Details bool - Key
Word string - Output
File string - Quota
Action stringCode - Quota
Category string - Status string
- applications
List<Get
Quota Applications Application> - id String
- The provider-assigned unique ID for this managed resource.
- ids List<String>
- product
Code String - dimensions
List<Get
Quota Applications Dimension> - enable
Details Boolean - key
Word String - output
File String - quota
Action StringCode - quota
Category String - status String
- applications
Get
Quota Applications Application[] - id string
- The provider-assigned unique ID for this managed resource.
- ids string[]
- product
Code string - dimensions
Get
Quota Applications Dimension[] - enable
Details boolean - key
Word string - output
File string - quota
Action stringCode - quota
Category string - status string
- applications
Sequence[Get
Quota Applications Application] - id str
- The provider-assigned unique ID for this managed resource.
- ids Sequence[str]
- product_
code str - dimensions
Sequence[Get
Quota Applications Dimension] - enable_
details bool - key_
word str - output_
file str - quota_
action_ strcode - quota_
category str - status str
- applications List<Property Map>
- id String
- The provider-assigned unique ID for this managed resource.
- ids List<String>
- product
Code String - dimensions List<Property Map>
- enable
Details Boolean - key
Word String - output
File String - quota
Action StringCode - quota
Category String - status String
Supporting Types
GetQuotaApplicationsApplication
- Application
Id This property is required. string - The first ID of the resource.
- Approve
Value This property is required. string - The approve value.
- Audit
Reason This property is required. string - The audit reason.
- Desire
Value This property is required. double - The desire value of the quota application.
- Dimensions
This property is required. List<Pulumi.Ali Cloud. Quotas. Inputs. Get Quota Applications Application Dimension> - The quota dimensions.
- Effective
Time This property is required. string - The effective time.
- Expire
Time This property is required. string - The expire time.
- Id
This property is required. string - The ID of the Application Info.
- Notice
Type This property is required. int - The notice type.
- Product
Code This property is required. string - The product code.
- Quota
Action Code This property is required. string - The ID of quota action..
- Quota
Description This property is required. string - The description of the quota.
- Quota
Name This property is required. string - The name of the quota.
- Quota
Unit 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. string - The first ID of the resource.
- Approve
Value This property is required. string - The approve value.
- Audit
Reason This property is required. string - The audit reason.
- Desire
Value This property is required. float64 - The desire value of the quota application.
- Dimensions
This property is required. []GetQuota Applications Application Dimension - The quota dimensions.
- Effective
Time This property is required. string - The effective time.
- Expire
Time This property is required. string - The expire time.
- Id
This property is required. string - The ID of the Application Info.
- Notice
Type This property is required. int - The notice type.
- Product
Code This property is required. string - The product code.
- Quota
Action Code This property is required. string - The ID of quota action..
- Quota
Description This property is required. string - The description of the quota.
- Quota
Name This property is required. string - The name of the quota.
- Quota
Unit 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. String - The first ID of the resource.
- approve
Value This property is required. String - The approve value.
- audit
Reason This property is required. String - The audit reason.
- desire
Value This property is required. Double - The desire value of the quota application.
- dimensions
This property is required. List<GetQuota Applications Application Dimension> - The quota dimensions.
- effective
Time This property is required. String - The effective time.
- expire
Time This property is required. String - The expire time.
- id
This property is required. String - The ID of the Application Info.
- notice
Type This property is required. Integer - The notice type.
- product
Code This property is required. String - The product code.
- quota
Action Code This property is required. String - The ID of quota action..
- quota
Description This property is required. String - The description of the quota.
- quota
Name This property is required. String - The name of the quota.
- quota
Unit 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. string - The first ID of the resource.
- approve
Value This property is required. string - The approve value.
- audit
Reason This property is required. string - The audit reason.
- desire
Value This property is required. number - The desire value of the quota application.
- dimensions
This property is required. GetQuota Applications Application Dimension[] - The quota dimensions.
- effective
Time This property is required. string - The effective time.
- expire
Time This property is required. string - The expire time.
- id
This property is required. string - The ID of the Application Info.
- notice
Type This property is required. number - The notice type.
- product
Code This property is required. string - The product code.
- quota
Action Code This property is required. string - The ID of quota action..
- quota
Description This property is required. string - The description of the quota.
- quota
Name This property is required. string - The name of the quota.
- quota
Unit 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[GetQuota Applications Application Dimension] - 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.
- application
Id This property is required. String - The first ID of the resource.
- approve
Value This property is required. String - The approve value.
- audit
Reason This property is required. String - The audit reason.
- desire
Value This property is required. Number - The desire value of the quota application.
- dimensions
This property is required. List<Property Map> - The quota dimensions.
- effective
Time This property is required. String - The effective time.
- expire
Time This property is required. String - The expire time.
- id
This property is required. String - The ID of the Application Info.
- notice
Type This property is required. Number - The notice type.
- product
Code This property is required. String - The product code.
- quota
Action Code This property is required. String - The ID of quota action..
- quota
Description This property is required. String - The description of the quota.
- quota
Name This property is required. String - The name of the quota.
- quota
Unit 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
GetQuotaApplicationsDimension
Package Details
- Repository
- Alibaba Cloud pulumi/pulumi-alicloud
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
alicloud
Terraform Provider.