import * as pulumi from "@pulumi/pulumi"; /** * Manages a Network Manager Scope Connection which may cross tenants. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as azure from "@pulumi/azure"; * * const example = new azure.core.ResourceGroup("example", { * name: "example-resources", * location: "West Europe", * }); * const current = azure.core.getClientConfig({}); * const currentGetSubscription = azure.core.getSubscription({}); * const alt = azure.core.getSubscription({ * subscriptionId: "00000000-0000-0000-0000-000000000000", * }); * const exampleNetworkManager = new azure.network.NetworkManager("example", { * name: "example-networkmanager", * location: example.location, * resourceGroupName: example.name, * scope: { * subscriptionIds: [currentGetSubscription.then(currentGetSubscription => currentGetSubscription.id)], * }, * scopeAccesses: ["SecurityAdmin"], * }); * const exampleNetworkManagerScopeConnection = new azure.network.NetworkManagerScopeConnection("example", { * name: "example-nsc", * networkManagerId: exampleNetworkManager.id, * tenantId: current.then(current => current.tenantId), * targetScopeId: alt.then(alt => alt.id), * description: "example", * }); * ``` * * ## API Providers * * * This resource uses the following Azure API Providers: * * * `Microsoft.Network` - 2025-01-01 * * ## Import * * Network Manager Scope Connection can be imported using the `resource id`, e.g. * * ```sh * $ pulumi import azure:network/networkManagerScopeConnection:NetworkManagerScopeConnection example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/resourceGroup1/providers/Microsoft.Network/networkManagers/networkManager1/scopeConnections/scopeConnection1 * ``` */ export declare class NetworkManagerScopeConnection extends pulumi.CustomResource { /** * Get an existing NetworkManagerScopeConnection resource's state with the given name, ID, and optional extra * properties used to qualify the lookup. * * @param name The _unique_ name of the resulting resource. * @param id The _unique_ provider ID of the resource to lookup. * @param state Any extra arguments used during the lookup. * @param opts Optional settings to control the behavior of the CustomResource. */ static get(name: string, id: pulumi.Input, state?: NetworkManagerScopeConnectionState, opts?: pulumi.CustomResourceOptions): NetworkManagerScopeConnection; /** * Returns true if the given object is an instance of NetworkManagerScopeConnection. This is designed to work even * when multiple copies of the Pulumi SDK have been loaded into the same process. */ static isInstance(obj: any): obj is NetworkManagerScopeConnection; /** * The Connection state of the Network Manager Scope Connection. */ readonly connectionState: pulumi.Output; /** * A description of the Network Manager Scope Connection. */ readonly description: pulumi.Output; /** * Specifies the name which should be used for this Network Manager Scope Connection. Changing this forces a new Network Manager Scope Connection to be created. */ readonly name: pulumi.Output; /** * Specifies the ID of the Network Manager Scope Connection. Changing this forces a new Network Manager Scope Connection to be created. */ readonly networkManagerId: pulumi.Output; /** * Specifies the Resource ID of the target scope which the Network Manager is connected to. It should be either Subscription ID or Management Group ID. */ readonly targetScopeId: pulumi.Output; /** * Specifies the Tenant ID of the Resource which the Network Manager is connected to. */ readonly tenantId: pulumi.Output; /** * Create a NetworkManagerScopeConnection resource with the given unique name, arguments, and options. * * @param name The _unique_ name of the resource. * @param args The arguments to use to populate this resource's properties. * @param opts A bag of options that control this resource's behavior. */ constructor(name: string, args: NetworkManagerScopeConnectionArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering NetworkManagerScopeConnection resources. */ export interface NetworkManagerScopeConnectionState { /** * The Connection state of the Network Manager Scope Connection. */ connectionState?: pulumi.Input; /** * A description of the Network Manager Scope Connection. */ description?: pulumi.Input; /** * Specifies the name which should be used for this Network Manager Scope Connection. Changing this forces a new Network Manager Scope Connection to be created. */ name?: pulumi.Input; /** * Specifies the ID of the Network Manager Scope Connection. Changing this forces a new Network Manager Scope Connection to be created. */ networkManagerId?: pulumi.Input; /** * Specifies the Resource ID of the target scope which the Network Manager is connected to. It should be either Subscription ID or Management Group ID. */ targetScopeId?: pulumi.Input; /** * Specifies the Tenant ID of the Resource which the Network Manager is connected to. */ tenantId?: pulumi.Input; } /** * The set of arguments for constructing a NetworkManagerScopeConnection resource. */ export interface NetworkManagerScopeConnectionArgs { /** * A description of the Network Manager Scope Connection. */ description?: pulumi.Input; /** * Specifies the name which should be used for this Network Manager Scope Connection. Changing this forces a new Network Manager Scope Connection to be created. */ name?: pulumi.Input; /** * Specifies the ID of the Network Manager Scope Connection. Changing this forces a new Network Manager Scope Connection to be created. */ networkManagerId: pulumi.Input; /** * Specifies the Resource ID of the target scope which the Network Manager is connected to. It should be either Subscription ID or Management Group ID. */ targetScopeId: pulumi.Input; /** * Specifies the Tenant ID of the Resource which the Network Manager is connected to. */ tenantId: pulumi.Input; }