145 lines
3.7 KiB
TypeScript
Generated
145 lines
3.7 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.NetworkIntegration
|
|
*
|
|
* Provides information about an Incus network integration.
|
|
* See Incus network integration [configuration reference](https://linuxcontainers.org/incus/docs/main/howto/network_integrations/) for more details.
|
|
*
|
|
* ## Example Usage
|
|
*
|
|
* ```typescript
|
|
* import * as pulumi from "@pulumi/pulumi";
|
|
* import * as incus from "@kiterun/incus";
|
|
*
|
|
* const _this = incus.getNetworkIntegration({
|
|
* name: "default",
|
|
* });
|
|
* export const networkIntegrationName = _this.then(_this => _this.name);
|
|
* ```
|
|
*/
|
|
export function getNetworkIntegration(
|
|
args: GetNetworkIntegrationArgs,
|
|
opts?: pulumi.InvokeOptions,
|
|
): Promise<GetNetworkIntegrationResult> {
|
|
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
|
|
return pulumi.runtime.invoke(
|
|
"incus:index/getNetworkIntegration:getNetworkIntegration",
|
|
{
|
|
description: args.description,
|
|
name: args.name,
|
|
remote: args.remote,
|
|
type: args.type,
|
|
},
|
|
opts,
|
|
);
|
|
}
|
|
|
|
/**
|
|
* A collection of arguments for invoking getNetworkIntegration.
|
|
*/
|
|
export interface GetNetworkIntegrationArgs {
|
|
/**
|
|
* Description of the network integration.
|
|
*/
|
|
description?: string;
|
|
/**
|
|
* **Required** - Name of the network integration.
|
|
*/
|
|
name: string;
|
|
/**
|
|
* *Optional* - The remote in which the resource was created. If
|
|
* not provided, the provider's default remote will be used.
|
|
*/
|
|
remote?: string;
|
|
/**
|
|
* Integration type.
|
|
*/
|
|
type?: string;
|
|
}
|
|
|
|
/**
|
|
* A collection of values returned by getNetworkIntegration.
|
|
*/
|
|
export interface GetNetworkIntegrationResult {
|
|
/**
|
|
* Map of key/value pairs of config settings.
|
|
*/
|
|
readonly config: { [key: string]: string };
|
|
/**
|
|
* Description of the network integration.
|
|
*/
|
|
readonly description: string;
|
|
/**
|
|
* The provider-assigned unique ID for this managed resource.
|
|
*/
|
|
readonly id: string;
|
|
readonly name: string;
|
|
readonly remote?: string;
|
|
/**
|
|
* Integration type.
|
|
*/
|
|
readonly type: string;
|
|
}
|
|
/**
|
|
* ## # incus.NetworkIntegration
|
|
*
|
|
* Provides information about an Incus network integration.
|
|
* See Incus network integration [configuration reference](https://linuxcontainers.org/incus/docs/main/howto/network_integrations/) for more details.
|
|
*
|
|
* ## Example Usage
|
|
*
|
|
* ```typescript
|
|
* import * as pulumi from "@pulumi/pulumi";
|
|
* import * as incus from "@kiterun/incus";
|
|
*
|
|
* const _this = incus.getNetworkIntegration({
|
|
* name: "default",
|
|
* });
|
|
* export const networkIntegrationName = _this.then(_this => _this.name);
|
|
* ```
|
|
*/
|
|
export function getNetworkIntegrationOutput(
|
|
args: GetNetworkIntegrationOutputArgs,
|
|
opts?: pulumi.InvokeOutputOptions,
|
|
): pulumi.Output<GetNetworkIntegrationResult> {
|
|
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
|
|
return pulumi.runtime.invokeOutput(
|
|
"incus:index/getNetworkIntegration:getNetworkIntegration",
|
|
{
|
|
description: args.description,
|
|
name: args.name,
|
|
remote: args.remote,
|
|
type: args.type,
|
|
},
|
|
opts,
|
|
);
|
|
}
|
|
|
|
/**
|
|
* A collection of arguments for invoking getNetworkIntegration.
|
|
*/
|
|
export interface GetNetworkIntegrationOutputArgs {
|
|
/**
|
|
* Description of the network integration.
|
|
*/
|
|
description?: pulumi.Input<string>;
|
|
/**
|
|
* **Required** - Name of the network integration.
|
|
*/
|
|
name: 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>;
|
|
/**
|
|
* Integration type.
|
|
*/
|
|
type?: pulumi.Input<string>;
|
|
}
|