get Network Attached Data Network
suspend fun getNetworkAttachedDataNetwork(argument: GetNetworkAttachedDataNetworkPlainArgs): GetNetworkAttachedDataNetworkResult
Use this data source to access information about an existing Mobile Network Attached Data Network.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as azure from "@pulumi/azure";
const example = azure.mobile.getNetworkPacketCoreControlPlane({
name: "example-mnpccp",
resourceGroupName: "example-rg",
});
const exampleGetNetworkAttachedDataNetwork = Promise.all([example, example]).then(([example, example1]) => azure.mobile.getNetworkAttachedDataNetwork({
mobileNetworkDataNetworkName: example.name,
mobileNetworkPacketCoreDataPlaneId: example1.id,
}));
Content copied to clipboard
import pulumi
import pulumi_azure as azure
example = azure.mobile.get_network_packet_core_control_plane(name="example-mnpccp",
resource_group_name="example-rg")
example_get_network_attached_data_network = azure.mobile.get_network_attached_data_network(mobile_network_data_network_name=example.name,
mobile_network_packet_core_data_plane_id=example.id)
Content copied to clipboard
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Azure = Pulumi.Azure;
return await Deployment.RunAsync(() =>
{
var example = Azure.Mobile.GetNetworkPacketCoreControlPlane.Invoke(new()
{
Name = "example-mnpccp",
ResourceGroupName = "example-rg",
});
var exampleGetNetworkAttachedDataNetwork = Azure.Mobile.GetNetworkAttachedDataNetwork.Invoke(new()
{
MobileNetworkDataNetworkName = example.Apply(getNetworkPacketCoreControlPlaneResult => getNetworkPacketCoreControlPlaneResult.Name),
MobileNetworkPacketCoreDataPlaneId = example.Apply(getNetworkPacketCoreControlPlaneResult => getNetworkPacketCoreControlPlaneResult.Id),
});
});
Content copied to clipboard
package main
import (
"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/mobile"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
example, err := mobile.LookupNetworkPacketCoreControlPlane(ctx, &mobile.LookupNetworkPacketCoreControlPlaneArgs{
Name: "example-mnpccp",
ResourceGroupName: "example-rg",
}, nil)
if err != nil {
return err
}
_, err = mobile.LookupNetworkAttachedDataNetwork(ctx, &mobile.LookupNetworkAttachedDataNetworkArgs{
MobileNetworkDataNetworkName: example.Name,
MobileNetworkPacketCoreDataPlaneId: example.Id,
}, nil)
if err != nil {
return err
}
return nil
})
}
Content copied to clipboard
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azure.mobile.MobileFunctions;
import com.pulumi.azure.mobile.inputs.GetNetworkPacketCoreControlPlaneArgs;
import com.pulumi.azure.mobile.inputs.GetNetworkAttachedDataNetworkArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
final var example = MobileFunctions.getNetworkPacketCoreControlPlane(GetNetworkPacketCoreControlPlaneArgs.builder()
.name("example-mnpccp")
.resourceGroupName("example-rg")
.build());
final var exampleGetNetworkAttachedDataNetwork = MobileFunctions.getNetworkAttachedDataNetwork(GetNetworkAttachedDataNetworkArgs.builder()
.mobileNetworkDataNetworkName(example.name())
.mobileNetworkPacketCoreDataPlaneId(example.id())
.build());
}
}
Content copied to clipboard
variables:
example:
fn::invoke:
function: azure:mobile:getNetworkPacketCoreControlPlane
arguments:
name: example-mnpccp
resourceGroupName: example-rg
exampleGetNetworkAttachedDataNetwork:
fn::invoke:
function: azure:mobile:getNetworkAttachedDataNetwork
arguments:
mobileNetworkDataNetworkName: ${example.name}
mobileNetworkPacketCoreDataPlaneId: ${example.id}
Content copied to clipboard
API Providers
This data source uses the following Azure API Providers:
Microsoft.MobileNetwork
: 2022-11-01
Return
A collection of values returned by getNetworkAttachedDataNetwork.
Parameters
argument
A collection of arguments for invoking getNetworkAttachedDataNetwork.
suspend fun getNetworkAttachedDataNetwork(mobileNetworkDataNetworkName: String, mobileNetworkPacketCoreDataPlaneId: String): GetNetworkAttachedDataNetworkResult
Return
A collection of values returned by getNetworkAttachedDataNetwork.
Parameters
mobile Network Data Network Name
The Name of the azure.mobile.NetworkDataNetwork
this resource belongs to.
mobile Network Packet Core Data Plane Id
The ID of the azure.mobile.NetworkPacketCoreDataPlane
which the Mobile Network Attached Data Network belongs to.
See also
suspend fun getNetworkAttachedDataNetwork(argument: suspend GetNetworkAttachedDataNetworkPlainArgsBuilder.() -> Unit): GetNetworkAttachedDataNetworkResult
Return
A collection of values returned by getNetworkAttachedDataNetwork.
Parameters
argument
Builder for com.pulumi.azure.mobile.kotlin.inputs.GetNetworkAttachedDataNetworkPlainArgs.