156 lines
4.0 KiB
TypeScript
Generated
156 lines
4.0 KiB
TypeScript
Generated
// *** WARNING: this file was generated by pulumi-language-nodejs. ***
|
|
// *** Do not edit by hand unless you're certain you know what you are doing! ***
|
|
|
|
import * as pulumi from "@pulumi/pulumi";
|
|
import * as utilities from "./utilities";
|
|
|
|
/**
|
|
* ## # incus.NetworkAddressSet
|
|
*
|
|
* Provides information about an Incus network address set.
|
|
* See Incus network address set [configuration reference](https://linuxcontainers.org/incus/docs/main/howto/network_address_sets/) for more details.
|
|
*
|
|
* ## Example Usage
|
|
*
|
|
* ```typescript
|
|
* import * as pulumi from "@pulumi/pulumi";
|
|
* import * as incus from "@kiterun/incus";
|
|
*
|
|
* const _this = incus.getNetworkAddressSet({
|
|
* name: "default",
|
|
* });
|
|
* export const networkAddressSetName = _this.then(_this => _this.name);
|
|
* ```
|
|
*/
|
|
export function getNetworkAddressSet(
|
|
args: GetNetworkAddressSetArgs,
|
|
opts?: pulumi.InvokeOptions,
|
|
): Promise<GetNetworkAddressSetResult> {
|
|
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
|
|
return pulumi.runtime.invoke(
|
|
"incus:index/getNetworkAddressSet:getNetworkAddressSet",
|
|
{
|
|
addresses: args.addresses,
|
|
description: args.description,
|
|
name: args.name,
|
|
project: args.project,
|
|
remote: args.remote,
|
|
},
|
|
opts,
|
|
);
|
|
}
|
|
|
|
/**
|
|
* A collection of arguments for invoking getNetworkAddressSet.
|
|
*/
|
|
export interface GetNetworkAddressSetArgs {
|
|
/**
|
|
* List of network addresses.
|
|
*/
|
|
addresses?: string[];
|
|
/**
|
|
* Description of the network address set.
|
|
*/
|
|
description?: string;
|
|
/**
|
|
* **Required** - Name of the network address set.
|
|
*/
|
|
name: string;
|
|
/**
|
|
* *Optional* - Name of the project where the network address set is be stored.
|
|
*/
|
|
project?: string;
|
|
/**
|
|
* *Optional* - The remote in which the resource was created. If
|
|
* not provided, the provider's default remote will be used.
|
|
*/
|
|
remote?: string;
|
|
}
|
|
|
|
/**
|
|
* A collection of values returned by getNetworkAddressSet.
|
|
*/
|
|
export interface GetNetworkAddressSetResult {
|
|
/**
|
|
* List of network addresses.
|
|
*/
|
|
readonly addresses: string[];
|
|
/**
|
|
* Map of key/value pairs of config settings.
|
|
*/
|
|
readonly config: { [key: string]: string };
|
|
/**
|
|
* Description of the network address set.
|
|
*/
|
|
readonly description: string;
|
|
/**
|
|
* The provider-assigned unique ID for this managed resource.
|
|
*/
|
|
readonly id: string;
|
|
readonly name: string;
|
|
readonly project?: string;
|
|
readonly remote?: string;
|
|
}
|
|
/**
|
|
* ## # incus.NetworkAddressSet
|
|
*
|
|
* Provides information about an Incus network address set.
|
|
* See Incus network address set [configuration reference](https://linuxcontainers.org/incus/docs/main/howto/network_address_sets/) for more details.
|
|
*
|
|
* ## Example Usage
|
|
*
|
|
* ```typescript
|
|
* import * as pulumi from "@pulumi/pulumi";
|
|
* import * as incus from "@kiterun/incus";
|
|
*
|
|
* const _this = incus.getNetworkAddressSet({
|
|
* name: "default",
|
|
* });
|
|
* export const networkAddressSetName = _this.then(_this => _this.name);
|
|
* ```
|
|
*/
|
|
export function getNetworkAddressSetOutput(
|
|
args: GetNetworkAddressSetOutputArgs,
|
|
opts?: pulumi.InvokeOutputOptions,
|
|
): pulumi.Output<GetNetworkAddressSetResult> {
|
|
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
|
|
return pulumi.runtime.invokeOutput(
|
|
"incus:index/getNetworkAddressSet:getNetworkAddressSet",
|
|
{
|
|
addresses: args.addresses,
|
|
description: args.description,
|
|
name: args.name,
|
|
project: args.project,
|
|
remote: args.remote,
|
|
},
|
|
opts,
|
|
);
|
|
}
|
|
|
|
/**
|
|
* A collection of arguments for invoking getNetworkAddressSet.
|
|
*/
|
|
export interface GetNetworkAddressSetOutputArgs {
|
|
/**
|
|
* List of network addresses.
|
|
*/
|
|
addresses?: pulumi.Input<pulumi.Input<string>[]>;
|
|
/**
|
|
* Description of the network address set.
|
|
*/
|
|
description?: pulumi.Input<string>;
|
|
/**
|
|
* **Required** - Name of the network address set.
|
|
*/
|
|
name: pulumi.Input<string>;
|
|
/**
|
|
* *Optional* - Name of the project where the network address set is be stored.
|
|
*/
|
|
project?: pulumi.Input<string>;
|
|
/**
|
|
* *Optional* - The remote in which the resource was created. If
|
|
* not provided, the provider's default remote will be used.
|
|
*/
|
|
remote?: pulumi.Input<string>;
|
|
}
|