@pulumi/openstack
Version:
A Pulumi package for creating and managing OpenStack cloud resources.
111 lines (110 loc) • 2.91 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
/**
* Use this data source to get the networking quota of an OpenStack project.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as openstack from "@pulumi/openstack";
*
* const quota = openstack.networking.getQuotaV2({
* projectId: "2e367a3d29f94fd988e6ec54e305ec9d",
* });
* ```
*/
export declare function getQuotaV2(args: GetQuotaV2Args, opts?: pulumi.InvokeOptions): Promise<GetQuotaV2Result>;
/**
* A collection of arguments for invoking getQuotaV2.
*/
export interface GetQuotaV2Args {
/**
* The id of the project to retrieve the quota.
*/
projectId: string;
/**
* The region in which to obtain the V2 Network client.
* If omitted, the `region` argument of the provider is used.
*/
region?: string;
}
/**
* A collection of values returned by getQuotaV2.
*/
export interface GetQuotaV2Result {
/**
* The number of allowed floating ips.
*/
readonly floatingip: number;
/**
* The provider-assigned unique ID for this managed resource.
*/
readonly id: string;
/**
* The number of allowed networks.
*/
readonly network: number;
/**
* The number of allowed ports.
*/
readonly port: number;
/**
* See Argument Reference above.
*/
readonly projectId: string;
/**
* The number of allowed rbac policies.
*/
readonly rbacPolicy: number;
/**
* See Argument Reference above.
*/
readonly region: string;
/**
* The amount of allowed routers.
*/
readonly router: number;
/**
* The number of allowed security groups.
*/
readonly securityGroup: number;
/**
* The number of allowed security group rules.
*/
readonly securityGroupRule: number;
/**
* The number of allowed subnets.
* * `subnetpool-` - The number of allowed subnet pools.
*/
readonly subnet: number;
readonly subnetpool: number;
}
/**
* Use this data source to get the networking quota of an OpenStack project.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as openstack from "@pulumi/openstack";
*
* const quota = openstack.networking.getQuotaV2({
* projectId: "2e367a3d29f94fd988e6ec54e305ec9d",
* });
* ```
*/
export declare function getQuotaV2Output(args: GetQuotaV2OutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetQuotaV2Result>;
/**
* A collection of arguments for invoking getQuotaV2.
*/
export interface GetQuotaV2OutputArgs {
/**
* The id of the project to retrieve the quota.
*/
projectId: pulumi.Input<string>;
/**
* The region in which to obtain the V2 Network client.
* If omitted, the `region` argument of the provider is used.
*/
region?: pulumi.Input<string>;
}