UNPKG

@natzka-oss/pulumi-netbox

Version:

A Pulumi package for creating and managing Netbox cloud resources.

85 lines (84 loc) 2.08 kB
import * as pulumi from "@pulumi/pulumi"; import * as inputs from "./types/input"; import * as outputs from "./types/output"; /** * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as netbox from "@pulumi/netbox"; * * const allTags = netbox.getTags({}); * const ansibleTags = netbox.getTags({ * filters: [{ * name: "name__isw", * value: "ansible_", * }], * }); * const notAnsibleTags = netbox.getTags({ * filters: [{ * name: "name__nisw", * value: "ansible_", * }], * }); * ``` */ export declare function getTags(args?: GetTagsArgs, opts?: pulumi.InvokeOptions): Promise<GetTagsResult>; /** * A collection of arguments for invoking getTags. */ export interface GetTagsArgs { filters?: inputs.GetTagsFilter[]; /** * Defaults to `0`. */ limit?: number; } /** * A collection of values returned by getTags. */ export interface GetTagsResult { readonly filters?: outputs.GetTagsFilter[]; /** * The provider-assigned unique ID for this managed resource. */ readonly id: string; /** * Defaults to `0`. */ readonly limit?: number; readonly tags: outputs.GetTagsTag[]; } /** * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as netbox from "@pulumi/netbox"; * * const allTags = netbox.getTags({}); * const ansibleTags = netbox.getTags({ * filters: [{ * name: "name__isw", * value: "ansible_", * }], * }); * const notAnsibleTags = netbox.getTags({ * filters: [{ * name: "name__nisw", * value: "ansible_", * }], * }); * ``` */ export declare function getTagsOutput(args?: GetTagsOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetTagsResult>; /** * A collection of arguments for invoking getTags. */ export interface GetTagsOutputArgs { filters?: pulumi.Input<pulumi.Input<inputs.GetTagsFilterArgs>[]>; /** * Defaults to `0`. */ limit?: pulumi.Input<number>; }