We recommend using Azure Native.
Azure v6.10.0 published on Tuesday, Nov 19, 2024 by Pulumi
azure.mobile.getNetworkDataNetwork
Explore with Pulumi AI
Get information about a Mobile Network Data Network.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as azure from "@pulumi/azure";
const example = azure.mobile.getNetwork({
name: "example-mn",
resourceGroupName: "example-rg",
});
const exampleGetNetworkDataNetwork = example.then(example => azure.mobile.getNetworkDataNetwork({
name: "example-mndn",
mobileNetworkId: example.id,
}));
import pulumi
import pulumi_azure as azure
example = azure.mobile.get_network(name="example-mn",
resource_group_name="example-rg")
example_get_network_data_network = azure.mobile.get_network_data_network(name="example-mndn",
mobile_network_id=example.id)
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.LookupNetwork(ctx, &mobile.LookupNetworkArgs{
Name: "example-mn",
ResourceGroupName: "example-rg",
}, nil)
if err != nil {
return err
}
_, err = mobile.LookupNetworkDataNetwork(ctx, &mobile.LookupNetworkDataNetworkArgs{
Name: "example-mndn",
MobileNetworkId: example.Id,
}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Azure = Pulumi.Azure;
return await Deployment.RunAsync(() =>
{
var example = Azure.Mobile.GetNetwork.Invoke(new()
{
Name = "example-mn",
ResourceGroupName = "example-rg",
});
var exampleGetNetworkDataNetwork = Azure.Mobile.GetNetworkDataNetwork.Invoke(new()
{
Name = "example-mndn",
MobileNetworkId = example.Apply(getNetworkResult => getNetworkResult.Id),
});
});
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.GetNetworkArgs;
import com.pulumi.azure.mobile.inputs.GetNetworkDataNetworkArgs;
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.getNetwork(GetNetworkArgs.builder()
.name("example-mn")
.resourceGroupName("example-rg")
.build());
final var exampleGetNetworkDataNetwork = MobileFunctions.getNetworkDataNetwork(GetNetworkDataNetworkArgs.builder()
.name("example-mndn")
.mobileNetworkId(example.applyValue(getNetworkResult -> getNetworkResult.id()))
.build());
}
}
variables:
example:
fn::invoke:
Function: azure:mobile:getNetwork
Arguments:
name: example-mn
resourceGroupName: example-rg
exampleGetNetworkDataNetwork:
fn::invoke:
Function: azure:mobile:getNetworkDataNetwork
Arguments:
name: example-mndn
mobileNetworkId: ${example.id}
Using getNetworkDataNetwork
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getNetworkDataNetwork(args: GetNetworkDataNetworkArgs, opts?: InvokeOptions): Promise<GetNetworkDataNetworkResult>
function getNetworkDataNetworkOutput(args: GetNetworkDataNetworkOutputArgs, opts?: InvokeOptions): Output<GetNetworkDataNetworkResult>
def get_network_data_network(mobile_network_id: Optional[str] = None,
name: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetNetworkDataNetworkResult
def get_network_data_network_output(mobile_network_id: Optional[pulumi.Input[str]] = None,
name: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetNetworkDataNetworkResult]
func LookupNetworkDataNetwork(ctx *Context, args *LookupNetworkDataNetworkArgs, opts ...InvokeOption) (*LookupNetworkDataNetworkResult, error)
func LookupNetworkDataNetworkOutput(ctx *Context, args *LookupNetworkDataNetworkOutputArgs, opts ...InvokeOption) LookupNetworkDataNetworkResultOutput
> Note: This function is named LookupNetworkDataNetwork
in the Go SDK.
public static class GetNetworkDataNetwork
{
public static Task<GetNetworkDataNetworkResult> InvokeAsync(GetNetworkDataNetworkArgs args, InvokeOptions? opts = null)
public static Output<GetNetworkDataNetworkResult> Invoke(GetNetworkDataNetworkInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetNetworkDataNetworkResult> getNetworkDataNetwork(GetNetworkDataNetworkArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: azure:mobile/getNetworkDataNetwork:getNetworkDataNetwork
arguments:
# arguments dictionary
The following arguments are supported:
- Mobile
Network stringId - Specifies the ID of the Mobile Network.
- Name string
- Specifies the name which should be used for this Mobile Network Data Network.
- Mobile
Network stringId - Specifies the ID of the Mobile Network.
- Name string
- Specifies the name which should be used for this Mobile Network Data Network.
- mobile
Network StringId - Specifies the ID of the Mobile Network.
- name String
- Specifies the name which should be used for this Mobile Network Data Network.
- mobile
Network stringId - Specifies the ID of the Mobile Network.
- name string
- Specifies the name which should be used for this Mobile Network Data Network.
- mobile_
network_ strid - Specifies the ID of the Mobile Network.
- name str
- Specifies the name which should be used for this Mobile Network Data Network.
- mobile
Network StringId - Specifies the ID of the Mobile Network.
- name String
- Specifies the name which should be used for this Mobile Network Data Network.
getNetworkDataNetwork Result
The following output properties are available:
- Description string
- The description for this Mobile Network Data Network.
- Id string
- The provider-assigned unique ID for this managed resource.
- Location string
- The Azure Region where the Mobile Network Data Network exists.
- Mobile
Network stringId - Name string
- Dictionary<string, string>
- A mapping of tags which should be assigned to the Mobile Network Data Network.
- Description string
- The description for this Mobile Network Data Network.
- Id string
- The provider-assigned unique ID for this managed resource.
- Location string
- The Azure Region where the Mobile Network Data Network exists.
- Mobile
Network stringId - Name string
- map[string]string
- A mapping of tags which should be assigned to the Mobile Network Data Network.
- description String
- The description for this Mobile Network Data Network.
- id String
- The provider-assigned unique ID for this managed resource.
- location String
- The Azure Region where the Mobile Network Data Network exists.
- mobile
Network StringId - name String
- Map<String,String>
- A mapping of tags which should be assigned to the Mobile Network Data Network.
- description string
- The description for this Mobile Network Data Network.
- id string
- The provider-assigned unique ID for this managed resource.
- location string
- The Azure Region where the Mobile Network Data Network exists.
- mobile
Network stringId - name string
- {[key: string]: string}
- A mapping of tags which should be assigned to the Mobile Network Data Network.
- description str
- The description for this Mobile Network Data Network.
- id str
- The provider-assigned unique ID for this managed resource.
- location str
- The Azure Region where the Mobile Network Data Network exists.
- mobile_
network_ strid - name str
- Mapping[str, str]
- A mapping of tags which should be assigned to the Mobile Network Data Network.
- description String
- The description for this Mobile Network Data Network.
- id String
- The provider-assigned unique ID for this managed resource.
- location String
- The Azure Region where the Mobile Network Data Network exists.
- mobile
Network StringId - name String
- Map<String>
- A mapping of tags which should be assigned to the Mobile Network Data Network.
Package Details
- Repository
- Azure Classic pulumi/pulumi-azure
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
azurerm
Terraform Provider.