Alibaba Cloud v3.57.1 published on Wednesday, Jun 26, 2024 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(default_quota_application.quota_category, default_quota_application.id).apply(lambda quota_category, id: alicloud.quotas.get_quota_applications_output(product_code="vpc",
enable_details=True,
quota_category=quota_category,
ids=[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.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)
// Output-based functions aren't available in Java yet
fn::invoke:
function: alicloud:quotas/getQuotaApplications:getQuotaApplications
arguments:
# arguments dictionary
The following arguments are supported:
- Product
Code string - The product code.
- Dimensions
List<Pulumi.
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 List<string>
- A list of Application Info IDs.
- Key
Word string - Output
File string - File name where to save data source results (after running
pulumi preview
). - Quota
Action stringCode - The ID of quota action.
- Quota
Category string - The quota category. Valid values:
CommonQuota
,FlowControl
,WhiteListLabel
. - Status string
- The status of the quota application. Valid Values:
Agree
,Disagree
andProcess
.
- Product
Code string - The product code.
- Dimensions
[]Get
Quota Applications Dimension - The quota dimensions.
- Enable
Details bool - Default to
false
. Set it totrue
can output more details about resource attributes. - Ids []string
- A list of Application Info IDs.
- Key
Word string - Output
File string - File name where to save data source results (after running
pulumi preview
). - Quota
Action stringCode - The ID of quota action.
- Quota
Category string - The quota category. Valid values:
CommonQuota
,FlowControl
,WhiteListLabel
. - Status string
- The status of the quota application. Valid Values:
Agree
,Disagree
andProcess
.
- product
Code String - The product code.
- dimensions
List<Get
Quota Applications Dimension> - The quota dimensions.
- enable
Details Boolean - Default to
false
. Set it totrue
can output more details about resource attributes. - ids List<String>
- A list of Application Info IDs.
- key
Word String - output
File String - File name where to save data source results (after running
pulumi preview
). - quota
Action StringCode - The ID of quota action.
- quota
Category String - The quota category. Valid values:
CommonQuota
,FlowControl
,WhiteListLabel
. - status String
- The status of the quota application. Valid Values:
Agree
,Disagree
andProcess
.
- product
Code string - The product code.
- dimensions
Get
Quota Applications Dimension[] - The quota dimensions.
- enable
Details boolean - Default to
false
. Set it totrue
can output more details about resource attributes. - ids string[]
- A list of Application Info IDs.
- key
Word string - output
File string - File name where to save data source results (after running
pulumi preview
). - quota
Action stringCode - The ID of quota action.
- quota
Category string - The quota category. Valid values:
CommonQuota
,FlowControl
,WhiteListLabel
. - status string
- The status of the quota application. Valid Values:
Agree
,Disagree
andProcess
.
- product_
code str - The product code.
- dimensions
Sequence[Get
Quota Applications Dimension] - The quota dimensions.
- enable_
details bool - Default to
false
. Set it totrue
can output more details about resource attributes. - ids Sequence[str]
- A list of Application Info IDs.
- key_
word str - output_
file str - File name where to save data source results (after running
pulumi preview
). - quota_
action_ strcode - The ID of quota action.
- quota_
category str - The quota category. Valid values:
CommonQuota
,FlowControl
,WhiteListLabel
. - status str
- The status of the quota application. Valid Values:
Agree
,Disagree
andProcess
.
- product
Code String - The product code.
- dimensions List<Property Map>
- The quota dimensions.
- enable
Details Boolean - Default to
false
. Set it totrue
can output more details about resource attributes. - ids List<String>
- A list of Application Info IDs.
- key
Word String - output
File String - File name where to save data source results (after running
pulumi preview
). - quota
Action StringCode - The ID of quota action.
- quota
Category String - The quota category. Valid values:
CommonQuota
,FlowControl
,WhiteListLabel
. - status String
- 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 string - The first ID of the resource.
- Approve
Value string - The approve value.
- Audit
Reason string - The audit reason.
- Desire
Value double - The desire value of the quota application.
- Dimensions
List<Pulumi.
Ali Cloud. Quotas. Inputs. Get Quota Applications Application Dimension> - The quota dimensions.
- Effective
Time string - The effective time.
- Expire
Time string - The expire time.
- Id string
- The ID of the Application Info.
- Notice
Type int - The notice type.
- Product
Code string - The product code.
- Quota
Action stringCode - The ID of quota action..
- Quota
Description string - The description of the quota.
- Quota
Name string - The name of the quota.
- Quota
Unit string - The quota unit.
- Reason string
- The reason of the quota application.
- Status string
- The status of the quota application.
- Application
Id string - The first ID of the resource.
- Approve
Value string - The approve value.
- Audit
Reason string - The audit reason.
- Desire
Value float64 - The desire value of the quota application.
- Dimensions
[]Get
Quota Applications Application Dimension - The quota dimensions.
- Effective
Time string - The effective time.
- Expire
Time string - The expire time.
- Id string
- The ID of the Application Info.
- Notice
Type int - The notice type.
- Product
Code string - The product code.
- Quota
Action stringCode - The ID of quota action..
- Quota
Description string - The description of the quota.
- Quota
Name string - The name of the quota.
- Quota
Unit string - The quota unit.
- Reason string
- The reason of the quota application.
- Status string
- The status of the quota application.
- application
Id String - The first ID of the resource.
- approve
Value String - The approve value.
- audit
Reason String - The audit reason.
- desire
Value Double - The desire value of the quota application.
- dimensions
List<Get
Quota Applications Application Dimension> - The quota dimensions.
- effective
Time String - The effective time.
- expire
Time String - The expire time.
- id String
- The ID of the Application Info.
- notice
Type Integer - The notice type.
- product
Code String - The product code.
- quota
Action StringCode - The ID of quota action..
- quota
Description String - The description of the quota.
- quota
Name String - The name of the quota.
- quota
Unit String - The quota unit.
- reason String
- The reason of the quota application.
- status String
- The status of the quota application.
- application
Id string - The first ID of the resource.
- approve
Value string - The approve value.
- audit
Reason string - The audit reason.
- desire
Value number - The desire value of the quota application.
- dimensions
Get
Quota Applications Application Dimension[] - The quota dimensions.
- effective
Time string - The effective time.
- expire
Time string - The expire time.
- id string
- The ID of the Application Info.
- notice
Type number - The notice type.
- product
Code string - The product code.
- quota
Action stringCode - The ID of quota action..
- quota
Description string - The description of the quota.
- quota
Name string - The name of the quota.
- quota
Unit string - The quota unit.
- reason string
- The reason of the quota application.
- status string
- The status of the quota application.
- application_
id str - The first ID of the resource.
- approve_
value str - The approve value.
- audit_
reason str - The audit reason.
- desire_
value float - The desire value of the quota application.
- dimensions
Sequence[Get
Quota Applications Application Dimension] - The quota dimensions.
- effective_
time str - The effective time.
- expire_
time str - The expire time.
- id str
- The ID of the Application Info.
- notice_
type int - The notice type.
- product_
code str - The product code.
- quota_
action_ strcode - The ID of quota action..
- quota_
description str - The description of the quota.
- quota_
name str - The name of the quota.
- quota_
unit str - The quota unit.
- reason str
- The reason of the quota application.
- status str
- The status of the quota application.
- application
Id String - The first ID of the resource.
- approve
Value String - The approve value.
- audit
Reason String - The audit reason.
- desire
Value Number - The desire value of the quota application.
- dimensions List<Property Map>
- The quota dimensions.
- effective
Time String - The effective time.
- expire
Time String - The expire time.
- id String
- The ID of the Application Info.
- notice
Type Number - The notice type.
- product
Code String - The product code.
- quota
Action StringCode - The ID of quota action..
- quota
Description String - The description of the quota.
- quota
Name String - The name of the quota.
- quota
Unit String - The quota unit.
- reason String
- The reason of the quota application.
- status 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.