@pulumi/openstack
Version:
A Pulumi package for creating and managing OpenStack cloud resources.
134 lines (133 loc) • 3.5 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
/**
* Use this data source to get the ID of an available OpenStack security group.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as openstack from "@pulumi/openstack";
*
* const secgroup = openstack.networking.getSecGroup({
* name: "tf_test_secgroup",
* });
* ```
*/
export declare function getSecGroup(args?: GetSecGroupArgs, opts?: pulumi.InvokeOptions): Promise<GetSecGroupResult>;
/**
* A collection of arguments for invoking getSecGroup.
*/
export interface GetSecGroupArgs {
/**
* Human-readable description the the subnet.
*/
description?: string;
/**
* The name of the security group.
*/
name?: string;
/**
* The region in which to obtain the V2 Neutron client.
* A Neutron client is needed to retrieve security groups ids. If omitted, the
* `region` argument of the provider is used.
*/
region?: string;
/**
* The ID of the security group.
*/
secgroupId?: string;
/**
* Whether the security group is stateful or not.
*/
stateful?: boolean;
/**
* The list of security group tags to filter.
*/
tags?: string[];
/**
* The owner of the security group.
*/
tenantId?: string;
}
/**
* A collection of values returned by getSecGroup.
*/
export interface GetSecGroupResult {
/**
* The set of string tags applied on the security group.
*/
readonly allTags: 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 name?: string;
/**
* See Argument Reference above.
*/
readonly region: string;
readonly secgroupId?: string;
/**
* See Argument Reference above.
*/
readonly stateful: boolean;
readonly tags?: string[];
readonly tenantId: string;
}
/**
* Use this data source to get the ID of an available OpenStack security group.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as openstack from "@pulumi/openstack";
*
* const secgroup = openstack.networking.getSecGroup({
* name: "tf_test_secgroup",
* });
* ```
*/
export declare function getSecGroupOutput(args?: GetSecGroupOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetSecGroupResult>;
/**
* A collection of arguments for invoking getSecGroup.
*/
export interface GetSecGroupOutputArgs {
/**
* Human-readable description the the subnet.
*/
description?: pulumi.Input<string>;
/**
* The name of the security group.
*/
name?: pulumi.Input<string>;
/**
* The region in which to obtain the V2 Neutron client.
* A Neutron client is needed to retrieve security groups ids. If omitted, the
* `region` argument of the provider is used.
*/
region?: pulumi.Input<string>;
/**
* The ID of the security group.
*/
secgroupId?: pulumi.Input<string>;
/**
* Whether the security group is stateful or not.
*/
stateful?: pulumi.Input<boolean>;
/**
* The list of security group tags to filter.
*/
tags?: pulumi.Input<pulumi.Input<string>[]>;
/**
* The owner of the security group.
*/
tenantId?: pulumi.Input<string>;
}