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 LookupQosPolicy in 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.

IsDefault bool

Whether the QoS policy is default policy or not.

Name string

The name of the QoS policy.

ProjectId 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 region argument of the provider is used.

Shared bool

Whether this QoS policy is shared across all projects.

Tags List<string>

The list of QoS policy tags to filter.

Description string

The human-readable description for the QoS policy.

IsDefault bool

Whether the QoS policy is default policy or not.

Name string

The name of the QoS policy.

ProjectId 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 region argument of the provider is used.

Shared bool

Whether this QoS policy is shared across all projects.

Tags []string

The list of QoS policy tags to filter.

description string

The human-readable description for the QoS policy.

isDefault boolean

Whether the QoS policy is default policy or not.

name string

The name of the QoS policy.

projectId 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 region argument of the provider is used.

shared boolean

Whether this QoS policy is shared across all projects.

tags 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 region argument of the provider is used.

shared bool

Whether this QoS policy is shared across all projects.

tags List[str]

The list of QoS policy tags to filter.

GetQosPolicy Result

The following output properties are available:

AllTags List<string>

The set of string tags applied on the QoS policy.

CreatedAt 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.

IsDefault bool

See Argument Reference above.

Name string

See Argument Reference above.

ProjectId string
Region string

See Argument Reference above.

RevisionNumber int

The revision number of the QoS policy.

Shared bool

See Argument Reference above.

UpdatedAt string

The time at which QoS policy was created.

Tags List<string>
AllTags []string

The set of string tags applied on the QoS policy.

CreatedAt 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.

IsDefault bool

See Argument Reference above.

Name string

See Argument Reference above.

ProjectId string
Region string

See Argument Reference above.

RevisionNumber int

The revision number of the QoS policy.

Shared bool

See Argument Reference above.

UpdatedAt string

The time at which QoS policy was created.

Tags []string
allTags string[]

The set of string tags applied on the QoS policy.

createdAt 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.

isDefault boolean

See Argument Reference above.

name string

See Argument Reference above.

projectId string
region string

See Argument Reference above.

revisionNumber number

The revision number of the QoS policy.

shared boolean

See Argument Reference above.

updatedAt string

The time at which QoS policy was created.

tags string[]
all_tags 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.

shared bool

See Argument Reference above.

updated_at str

The time at which QoS policy was created.

tags List[str]

Package Details

Repository
https://github.com/pulumi/pulumi-openstack
License
Apache-2.0
Notes
This Pulumi package is based on the openstack Terraform Provider.