Alibaba Cloud
getQuotaAlarms
This data source provides the Quotas Quota Alarms of the current Alibaba Cloud user.
NOTE: Available in v1.116.0+.
Example Usage
using Pulumi;
using AliCloud = Pulumi.AliCloud;
class MyStack : Stack
{
public MyStack()
{
var example = Output.Create(AliCloud.Quotas.GetQuotaAlarms.InvokeAsync(new AliCloud.Quotas.GetQuotaAlarmsArgs
{
Ids =
{
"5VR90-421F886-81E9-xxx",
},
NameRegex = "tf-testAcc",
}));
this.FirstQuotasQuotaAlarmId = example.Apply(example => example.Alarms?[0]?.Id);
}
[Output("firstQuotasQuotaAlarmId")]
public Output<string> FirstQuotasQuotaAlarmId { get; set; }
}
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 {
example, err := quotas.GetQuotaAlarms(ctx, "as.GetQuotaAlarmsArgs{
Ids: []string{
"5VR90-421F886-81E9-xxx",
},
NameRegex: pulumi.StringRef("tf-testAcc"),
}, nil)
if err != nil {
return err
}
ctx.Export("firstQuotasQuotaAlarmId", example.Alarms[0].Id)
return nil
})
}
Coming soon!
import pulumi
import pulumi_alicloud as alicloud
example = alicloud.quotas.get_quota_alarms(ids=["5VR90-421F886-81E9-xxx"],
name_regex="tf-testAcc")
pulumi.export("firstQuotasQuotaAlarmId", example.alarms[0].id)
import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";
const example = alicloud.quotas.getQuotaAlarms({
ids: ["5VR90-421F886-81E9-xxx"],
nameRegex: "tf-testAcc",
});
export const firstQuotasQuotaAlarmId = example.then(example => example.alarms?[0]?.id);
Coming soon!
Using getQuotaAlarms
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 getQuotaAlarms(args: GetQuotaAlarmsArgs, opts?: InvokeOptions): Promise<GetQuotaAlarmsResult>
function getQuotaAlarmsOutput(args: GetQuotaAlarmsOutputArgs, opts?: InvokeOptions): Output<GetQuotaAlarmsResult>
def get_quota_alarms(enable_details: Optional[bool] = None,
ids: Optional[Sequence[str]] = None,
name_regex: Optional[str] = None,
output_file: Optional[str] = None,
product_code: Optional[str] = None,
quota_action_code: Optional[str] = None,
quota_alarm_name: Optional[str] = None,
quota_dimensions: Optional[Sequence[GetQuotaAlarmsQuotaDimension]] = None,
opts: Optional[InvokeOptions] = None) -> GetQuotaAlarmsResult
def get_quota_alarms_output(enable_details: Optional[pulumi.Input[bool]] = None,
ids: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
name_regex: 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_alarm_name: Optional[pulumi.Input[str]] = None,
quota_dimensions: Optional[pulumi.Input[Sequence[pulumi.Input[GetQuotaAlarmsQuotaDimensionArgs]]]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetQuotaAlarmsResult]
func GetQuotaAlarms(ctx *Context, args *GetQuotaAlarmsArgs, opts ...InvokeOption) (*GetQuotaAlarmsResult, error)
func GetQuotaAlarmsOutput(ctx *Context, args *GetQuotaAlarmsOutputArgs, opts ...InvokeOption) GetQuotaAlarmsResultOutput
> Note: This function is named GetQuotaAlarms
in the Go SDK.
public static class GetQuotaAlarms
{
public static Task<GetQuotaAlarmsResult> InvokeAsync(GetQuotaAlarmsArgs args, InvokeOptions? opts = null)
public static Output<GetQuotaAlarmsResult> Invoke(GetQuotaAlarmsInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetQuotaAlarmsResult> getQuotaAlarms(GetQuotaAlarmsArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
Fn::Invoke:
Function: alicloud:quotas/getQuotaAlarms:getQuotaAlarms
Arguments:
# Arguments dictionary
The following arguments are supported:
- Enable
Details bool Default to
false
. Set it totrue
can output more details about resource attributes.- Ids List<string>
A list of Quota Alarm IDs.
- Name
Regex string A regex string to filter results by Quota Alarm name.
- Output
File string - Product
Code string The Product Code.
- Quota
Action stringCode The Quota Action Code.
- Quota
Alarm stringName The name of Quota Alarm.
- Quota
Dimensions List<Pulumi.Ali Cloud. Quotas. Inputs. Get Quota Alarms Quota 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 Quota Alarm IDs.
- Name
Regex string A regex string to filter results by Quota Alarm name.
- Output
File string - Product
Code string The Product Code.
- Quota
Action stringCode The Quota Action Code.
- Quota
Alarm stringName The name of Quota Alarm.
- Quota
Dimensions []GetQuota Alarms Quota 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 Quota Alarm IDs.
- name
Regex String A regex string to filter results by Quota Alarm name.
- output
File String - product
Code String The Product Code.
- quota
Action StringCode The Quota Action Code.
- quota
Alarm StringName The name of Quota Alarm.
- quota
Dimensions List<GetQuota Alarms Quota 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 Quota Alarm IDs.
- name
Regex string A regex string to filter results by Quota Alarm name.
- output
File string - product
Code string The Product Code.
- quota
Action stringCode The Quota Action Code.
- quota
Alarm stringName The name of Quota Alarm.
- quota
Dimensions GetQuota Alarms Quota 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 Quota Alarm IDs.
- name_
regex str A regex string to filter results by Quota Alarm name.
- output_
file str - product_
code str The Product Code.
- quota_
action_ strcode The Quota Action Code.
- quota_
alarm_ strname The name of Quota Alarm.
- quota_
dimensions Sequence[GetQuota Alarms Quota 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 Quota Alarm IDs.
- name
Regex String A regex string to filter results by Quota Alarm name.
- output
File String - product
Code String The Product Code.
- quota
Action StringCode The Quota Action Code.
- quota
Alarm StringName The name of Quota Alarm.
- quota
Dimensions List<Property Map> The Quota Dimensions.
getQuotaAlarms Result
The following output properties are available:
- Alarms
List<Pulumi.
Ali Cloud. Quotas. Outputs. Get Quota Alarms Alarm> - Id string
The provider-assigned unique ID for this managed resource.
- Ids List<string>
- Names List<string>
- Enable
Details bool - Name
Regex string - Output
File string - Product
Code string - Quota
Action stringCode - Quota
Alarm stringName - Quota
Dimensions List<Pulumi.Ali Cloud. Quotas. Outputs. Get Quota Alarms Quota Dimension>
- Alarms
[]Get
Quota Alarms Alarm - Id string
The provider-assigned unique ID for this managed resource.
- Ids []string
- Names []string
- Enable
Details bool - Name
Regex string - Output
File string - Product
Code string - Quota
Action stringCode - Quota
Alarm stringName - Quota
Dimensions []GetQuota Alarms Quota Dimension
- alarms
List<Get
Quota Alarms Alarm> - id String
The provider-assigned unique ID for this managed resource.
- ids List<String>
- names List<String>
- enable
Details Boolean - name
Regex String - output
File String - product
Code String - quota
Action StringCode - quota
Alarm StringName - quota
Dimensions List<GetQuota Alarms Quota Dimension>
- alarms
Get
Quota Alarms Alarm[] - id string
The provider-assigned unique ID for this managed resource.
- ids string[]
- names string[]
- enable
Details boolean - name
Regex string - output
File string - product
Code string - quota
Action stringCode - quota
Alarm stringName - quota
Dimensions GetQuota Alarms Quota Dimension[]
- alarms
Sequence[Get
Quota Alarms Alarm] - id str
The provider-assigned unique ID for this managed resource.
- ids Sequence[str]
- names Sequence[str]
- enable_
details bool - name_
regex str - output_
file str - product_
code str - quota_
action_ strcode - quota_
alarm_ strname - quota_
dimensions Sequence[GetQuota Alarms Quota Dimension]
- alarms List<Property Map>
- id String
The provider-assigned unique ID for this managed resource.
- ids List<String>
- names List<String>
- enable
Details Boolean - name
Regex String - output
File String - product
Code String - quota
Action StringCode - quota
Alarm StringName - quota
Dimensions List<Property Map>
Supporting Types
GetQuotaAlarmsAlarm
- Alarm
Id string The first ID of the resource.
- Id string
The ID of the Quota Alarm.
- Product
Code string The Product Code.
- Quota
Action stringCode The Quota Action Code.
- Quota
Alarm stringName The name of Quota Alarm.
- Quota
Dimensions List<Pulumi.Ali Cloud. Quotas. Inputs. Get Quota Alarms Alarm Quota Dimension> The Quota Dimensions.
- Threshold double
The threshold of Quota Alarm.
- Threshold
Percent double The threshold percent of Quota Alarm.
- Web
Hook string The WebHook of Quota Alarm.
- Alarm
Id string The first ID of the resource.
- Id string
The ID of the Quota Alarm.
- Product
Code string The Product Code.
- Quota
Action stringCode The Quota Action Code.
- Quota
Alarm stringName The name of Quota Alarm.
- Quota
Dimensions []GetQuota Alarms Alarm Quota Dimension The Quota Dimensions.
- Threshold float64
The threshold of Quota Alarm.
- Threshold
Percent float64 The threshold percent of Quota Alarm.
- Web
Hook string The WebHook of Quota Alarm.
- alarm
Id String The first ID of the resource.
- id String
The ID of the Quota Alarm.
- product
Code String The Product Code.
- quota
Action StringCode The Quota Action Code.
- quota
Alarm StringName The name of Quota Alarm.
- quota
Dimensions List<GetQuota Alarms Alarm Quota Dimension> The Quota Dimensions.
- threshold Double
The threshold of Quota Alarm.
- threshold
Percent Double The threshold percent of Quota Alarm.
- web
Hook String The WebHook of Quota Alarm.
- alarm
Id string The first ID of the resource.
- id string
The ID of the Quota Alarm.
- product
Code string The Product Code.
- quota
Action stringCode The Quota Action Code.
- quota
Alarm stringName The name of Quota Alarm.
- quota
Dimensions GetQuota Alarms Alarm Quota Dimension[] The Quota Dimensions.
- threshold number
The threshold of Quota Alarm.
- threshold
Percent number The threshold percent of Quota Alarm.
- web
Hook string The WebHook of Quota Alarm.
- alarm_
id str The first ID of the resource.
- id str
The ID of the Quota Alarm.
- product_
code str The Product Code.
- quota_
action_ strcode The Quota Action Code.
- quota_
alarm_ strname The name of Quota Alarm.
- quota_
dimensions Sequence[GetQuota Alarms Alarm Quota Dimension] The Quota Dimensions.
- threshold float
The threshold of Quota Alarm.
- threshold_
percent float The threshold percent of Quota Alarm.
- web_
hook str The WebHook of Quota Alarm.
- alarm
Id String The first ID of the resource.
- id String
The ID of the Quota Alarm.
- product
Code String The Product Code.
- quota
Action StringCode The Quota Action Code.
- quota
Alarm StringName The name of Quota Alarm.
- quota
Dimensions List<Property Map> The Quota Dimensions.
- threshold Number
The threshold of Quota Alarm.
- threshold
Percent Number The threshold percent of Quota Alarm.
- web
Hook String The WebHook of Quota Alarm.
GetQuotaAlarmsAlarmQuotaDimension
GetQuotaAlarmsQuotaDimension
Package Details
- Repository
- https://github.com/pulumi/pulumi-alicloud
- License
- Apache-2.0
- Notes
This Pulumi package is based on the
alicloud
Terraform Provider.