@pulumi/openstack
Version:
A Pulumi package for creating and managing OpenStack cloud resources.
201 lines (200 loc) • 5.12 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
/**
* Use this data source to get a list of Openstack Port IDs matching the
* specified criteria.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as openstack from "@pulumi/openstack";
*
* const ports = openstack.networking.getPortIds({
* name: "port",
* });
* ```
*/
export declare function getPortIds(args?: GetPortIdsArgs, opts?: pulumi.InvokeOptions): Promise<GetPortIdsResult>;
/**
* A collection of arguments for invoking getPortIds.
*/
export interface GetPortIdsArgs {
/**
* The administrative state of the port.
*/
adminStateUp?: boolean;
/**
* Human-readable description of the port.
*/
description?: string;
/**
* The ID of the device the port belongs to.
*/
deviceId?: string;
/**
* The device owner of the port.
*/
deviceOwner?: string;
dnsName?: string;
/**
* The port IP address filter.
*/
fixedIp?: string;
/**
* The MAC address of the port.
*/
macAddress?: string;
/**
* The name of the port.
*/
name?: string;
/**
* The ID of the network the port belongs to.
*/
networkId?: string;
/**
* The owner of the port.
*/
projectId?: string;
/**
* The region in which to obtain the V2 Neutron client.
* A Neutron client is needed to retrieve port ids. If omitted, the
* `region` argument of the provider is used.
*/
region?: string;
/**
* The list of port security group IDs to filter.
*/
securityGroupIds?: string[];
/**
* Order the results in either `asc` or `desc`.
* Defaults to none.
*/
sortDirection?: string;
/**
* Sort ports based on a certain key. Defaults to none.
*/
sortKey?: string;
/**
* The status of the port.
*/
status?: string;
/**
* The list of port tags to filter.
*/
tags?: string[];
tenantId?: string;
}
/**
* A collection of values returned by getPortIds.
*/
export interface GetPortIdsResult {
readonly adminStateUp?: boolean;
readonly description?: string;
readonly deviceId?: string;
readonly deviceOwner?: string;
readonly dnsName?: string;
readonly fixedIp?: string;
/**
* The provider-assigned unique ID for this managed resource.
*/
readonly id: string;
readonly ids: string[];
readonly macAddress?: string;
readonly name?: string;
readonly networkId?: string;
readonly projectId?: string;
readonly region?: string;
readonly securityGroupIds?: string[];
readonly sortDirection?: string;
readonly sortKey?: string;
readonly status?: string;
readonly tags?: string[];
readonly tenantId?: string;
}
/**
* Use this data source to get a list of Openstack Port IDs matching the
* specified criteria.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as openstack from "@pulumi/openstack";
*
* const ports = openstack.networking.getPortIds({
* name: "port",
* });
* ```
*/
export declare function getPortIdsOutput(args?: GetPortIdsOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetPortIdsResult>;
/**
* A collection of arguments for invoking getPortIds.
*/
export interface GetPortIdsOutputArgs {
/**
* The administrative state of the port.
*/
adminStateUp?: pulumi.Input<boolean>;
/**
* Human-readable description of the port.
*/
description?: pulumi.Input<string>;
/**
* The ID of the device the port belongs to.
*/
deviceId?: pulumi.Input<string>;
/**
* The device owner of the port.
*/
deviceOwner?: pulumi.Input<string>;
dnsName?: pulumi.Input<string>;
/**
* The port IP address filter.
*/
fixedIp?: pulumi.Input<string>;
/**
* The MAC address of the port.
*/
macAddress?: pulumi.Input<string>;
/**
* The name of the port.
*/
name?: pulumi.Input<string>;
/**
* The ID of the network the port belongs to.
*/
networkId?: pulumi.Input<string>;
/**
* The owner of the port.
*/
projectId?: pulumi.Input<string>;
/**
* The region in which to obtain the V2 Neutron client.
* A Neutron client is needed to retrieve port ids. If omitted, the
* `region` argument of the provider is used.
*/
region?: pulumi.Input<string>;
/**
* The list of port security group IDs to filter.
*/
securityGroupIds?: pulumi.Input<pulumi.Input<string>[]>;
/**
* Order the results in either `asc` or `desc`.
* Defaults to none.
*/
sortDirection?: pulumi.Input<string>;
/**
* Sort ports based on a certain key. Defaults to none.
*/
sortKey?: pulumi.Input<string>;
/**
* The status of the port.
*/
status?: pulumi.Input<string>;
/**
* The list of port tags to filter.
*/
tags?: pulumi.Input<pulumi.Input<string>[]>;
tenantId?: pulumi.Input<string>;
}