GetQosPolicy
Use this data source to get the ID of an available OpenStack QoS policy.
Example Usage
using Pulumi;
using OpenStack = Pulumi.OpenStack;
class MyStack : Stack
{
public MyStack()
{
var qosPolicy1 = Output.Create(OpenStack.Networking.GetQosPolicy.InvokeAsync(new OpenStack.Networking.GetQosPolicyArgs
{
Name = "qos_policy_1",
}));
}
}
Coming soon!
import pulumi
import pulumi_openstack as openstack
qos_policy1 = openstack.networking.get_qos_policy(name="qos_policy_1")import * as pulumi from "@pulumi/pulumi";
import * as openstack from "@pulumi/openstack";
const qosPolicy1 = pulumi.output(openstack.networking.getQosPolicy({
name: "qos_policy_1",
}, { async: true }));Using GetQosPolicy
function getQosPolicy(args: GetQosPolicyArgs, opts?: InvokeOptions): Promise<GetQosPolicyResult>function get_qos_policy(description=None, is_default=None, name=None, project_id=None, region=None, shared=None, tags=None, opts=None)func LookupQosPolicy(ctx *Context, args *LookupQosPolicyArgs, opts ...InvokeOption) (*LookupQosPolicyResult, error)Note: This function is named
LookupQosPolicyin the Go SDK.
public static class GetQosPolicy {
public static Task<GetQosPolicyResult> InvokeAsync(GetQosPolicyArgs args, InvokeOptions? opts = null)
}The following arguments are supported:
- Description string
The human-readable description for the QoS policy.
- Is
Default bool Whether the QoS policy is default policy or not.
- Name string
The name of the QoS policy.
- Project
Id string The owner of the QoS policy.
- Region 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
regionargument of the provider is used.- bool
Whether this QoS policy is shared across all projects.
- List<string>
The list of QoS policy tags to filter.
- Description string
The human-readable description for the QoS policy.
- Is
Default bool Whether the QoS policy is default policy or not.
- Name string
The name of the QoS policy.
- Project
Id string The owner of the QoS policy.
- Region 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
regionargument of the provider is used.- bool
Whether this QoS policy is shared across all projects.
- []string
The list of QoS policy tags to filter.
- description string
The human-readable description for the QoS policy.
- is
Default boolean Whether the QoS policy is default policy or not.
- name string
The name of the QoS policy.
- project
Id string The owner of the QoS policy.
- region 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
regionargument of the provider is used.- boolean
Whether this QoS policy is shared across all projects.
- string[]
The list of QoS policy tags to filter.
- description str
The human-readable description for the QoS policy.
- is_
default bool Whether the QoS policy is default policy or not.
- name str
The name of the QoS policy.
- project_
id str The owner of the QoS policy.
- region str
The region in which to obtain the V2 Networking client. A Networking client is needed to retrieve a QoS policy ID. If omitted, the
regionargument of the provider is used.- bool
Whether this QoS policy is shared across all projects.
- List[str]
The list of QoS policy tags to filter.
GetQosPolicy Result
The following output properties are available:
- List<string>
The set of string tags applied on the QoS policy.
- Created
At string The time at which QoS policy was created.
- Description string
See Argument Reference above.
- Id string
The provider-assigned unique ID for this managed resource.
- Is
Default bool See Argument Reference above.
- Name string
See Argument Reference above.
- Project
Id string - Region string
See Argument Reference above.
- Revision
Number int The revision number of the QoS policy.
- bool
See Argument Reference above.
- Updated
At string The time at which QoS policy was created.
- List<string>
- []string
The set of string tags applied on the QoS policy.
- Created
At string The time at which QoS policy was created.
- Description string
See Argument Reference above.
- Id string
The provider-assigned unique ID for this managed resource.
- Is
Default bool See Argument Reference above.
- Name string
See Argument Reference above.
- Project
Id string - Region string
See Argument Reference above.
- Revision
Number int The revision number of the QoS policy.
- bool
See Argument Reference above.
- Updated
At string The time at which QoS policy was created.
- []string
- string[]
The set of string tags applied on the QoS policy.
- created
At string The time at which QoS policy was created.
- description string
See Argument Reference above.
- id string
The provider-assigned unique ID for this managed resource.
- is
Default boolean See Argument Reference above.
- name string
See Argument Reference above.
- project
Id string - region string
See Argument Reference above.
- revision
Number number The revision number of the QoS policy.
- boolean
See Argument Reference above.
- updated
At string The time at which QoS policy was created.
- string[]
- List[str]
The set of string tags applied on the QoS policy.
- created_
at str The time at which QoS policy was created.
- description str
See Argument Reference above.
- id str
The provider-assigned unique ID for this managed resource.
- is_
default bool See Argument Reference above.
- name str
See Argument Reference above.
- project_
id str - region str
See Argument Reference above.
- revision_
number float The revision number of the QoS policy.
- bool
See Argument Reference above.
- updated_
at str The time at which QoS policy was created.
- List[str]
Package Details
- Repository
- https://github.com/pulumi/pulumi-openstack
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
openstackTerraform Provider.