UNPKG

@pulumi/openstack

Version:

A Pulumi package for creating and managing OpenStack cloud resources.

149 lines (148 loc) 3.88 kB
import * as pulumi from "@pulumi/pulumi"; /** * Use this data source to get the ID of an available OpenStack QoS policy. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as openstack from "@pulumi/openstack"; * * const qosPolicy1 = openstack.networking.getQosPolicy({ * name: "qos_policy_1", * }); * ``` */ export declare function getQosPolicy(args?: GetQosPolicyArgs, opts?: pulumi.InvokeOptions): Promise<GetQosPolicyResult>; /** * A collection of arguments for invoking getQosPolicy. */ export interface GetQosPolicyArgs { /** * The human-readable description for the QoS policy. */ description?: string; /** * Whether the QoS policy is default policy or not. */ isDefault?: boolean; /** * The name of the QoS policy. */ name?: string; /** * The owner of the QoS policy. */ projectId?: string; /** * The region in which to obtain the V2 Networking client. * A Networking client is needed to retrieve a QoS policy ID. If omitted, the * `region` argument of the provider is used. */ region?: string; /** * Whether this QoS policy is shared across all projects. */ shared?: boolean; /** * The list of QoS policy tags to filter. */ tags?: string[]; } /** * A collection of values returned by getQosPolicy. */ export interface GetQosPolicyResult { /** * The set of string tags applied on the QoS policy. */ readonly allTags: string[]; /** * The time at which QoS policy was created. */ readonly createdAt: string; /** * See Argument Reference above. */ readonly description: string; /** * The provider-assigned unique ID for this managed resource. */ readonly id: string; /** * See Argument Reference above. */ readonly isDefault: boolean; /** * See Argument Reference above. */ readonly name: string; readonly projectId: string; /** * See Argument Reference above. */ readonly region: string; /** * The revision number of the QoS policy. */ readonly revisionNumber: number; /** * See Argument Reference above. */ readonly shared: boolean; readonly tags?: string[]; /** * The time at which QoS policy was created. */ readonly updatedAt: string; } /** * Use this data source to get the ID of an available OpenStack QoS policy. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as openstack from "@pulumi/openstack"; * * const qosPolicy1 = openstack.networking.getQosPolicy({ * name: "qos_policy_1", * }); * ``` */ export declare function getQosPolicyOutput(args?: GetQosPolicyOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetQosPolicyResult>; /** * A collection of arguments for invoking getQosPolicy. */ export interface GetQosPolicyOutputArgs { /** * The human-readable description for the QoS policy. */ description?: pulumi.Input<string>; /** * Whether the QoS policy is default policy or not. */ isDefault?: pulumi.Input<boolean>; /** * The name of the QoS policy. */ name?: pulumi.Input<string>; /** * The owner of the QoS policy. */ projectId?: pulumi.Input<string>; /** * The region in which to obtain the V2 Networking client. * A Networking client is needed to retrieve a QoS policy ID. If omitted, the * `region` argument of the provider is used. */ region?: pulumi.Input<string>; /** * Whether this QoS policy is shared across all projects. */ shared?: pulumi.Input<boolean>; /** * The list of QoS policy tags to filter. */ tags?: pulumi.Input<pulumi.Input<string>[]>; }