1. Packages
  2. Azure Classic
  3. API Docs
  4. mobile
  5. getNetwork

We recommend using Azure Native.

Azure Classic v5.73.0 published on Monday, Apr 22, 2024 by Pulumi

azure.mobile.getNetwork

Explore with Pulumi AI

azure logo

We recommend using Azure Native.

Azure Classic v5.73.0 published on Monday, Apr 22, 2024 by Pulumi

    Get information about an Azure Mobile Network.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as azure from "@pulumi/azure";
    
    const example = azure.mobile.getNetwork({
        name: "example-mn",
        resourceGroupName: exampleAzurermResourceGroup.name,
    });
    
    import pulumi
    import pulumi_azure as azure
    
    example = azure.mobile.get_network(name="example-mn",
        resource_group_name=example_azurerm_resource_group["name"])
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/mobile"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := mobile.LookupNetwork(ctx, &mobile.LookupNetworkArgs{
    			Name:              "example-mn",
    			ResourceGroupName: exampleAzurermResourceGroup.Name,
    		}, 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 = exampleAzurermResourceGroup.Name,
        });
    
    });
    
    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 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(exampleAzurermResourceGroup.name())
                .build());
    
        }
    }
    
    variables:
      example:
        fn::invoke:
          Function: azure:mobile:getNetwork
          Arguments:
            name: example-mn
            resourceGroupName: ${exampleAzurermResourceGroup.name}
    

    Using getNetwork

    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 getNetwork(args: GetNetworkArgs, opts?: InvokeOptions): Promise<GetNetworkResult>
    function getNetworkOutput(args: GetNetworkOutputArgs, opts?: InvokeOptions): Output<GetNetworkResult>
    def get_network(name: Optional[str] = None,
                    resource_group_name: Optional[str] = None,
                    opts: Optional[InvokeOptions] = None) -> GetNetworkResult
    def get_network_output(name: Optional[pulumi.Input[str]] = None,
                    resource_group_name: Optional[pulumi.Input[str]] = None,
                    opts: Optional[InvokeOptions] = None) -> Output[GetNetworkResult]
    func LookupNetwork(ctx *Context, args *LookupNetworkArgs, opts ...InvokeOption) (*LookupNetworkResult, error)
    func LookupNetworkOutput(ctx *Context, args *LookupNetworkOutputArgs, opts ...InvokeOption) LookupNetworkResultOutput

    > Note: This function is named LookupNetwork in the Go SDK.

    public static class GetNetwork 
    {
        public static Task<GetNetworkResult> InvokeAsync(GetNetworkArgs args, InvokeOptions? opts = null)
        public static Output<GetNetworkResult> Invoke(GetNetworkInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetNetworkResult> getNetwork(GetNetworkArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: azure:mobile/getNetwork:getNetwork
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Name string
    Specifies the name which should be used for this Mobile Network.
    ResourceGroupName string
    Specifies the name of the Resource Group where the Mobile Network should exist.
    Name string
    Specifies the name which should be used for this Mobile Network.
    ResourceGroupName string
    Specifies the name of the Resource Group where the Mobile Network should exist.
    name String
    Specifies the name which should be used for this Mobile Network.
    resourceGroupName String
    Specifies the name of the Resource Group where the Mobile Network should exist.
    name string
    Specifies the name which should be used for this Mobile Network.
    resourceGroupName string
    Specifies the name of the Resource Group where the Mobile Network should exist.
    name str
    Specifies the name which should be used for this Mobile Network.
    resource_group_name str
    Specifies the name of the Resource Group where the Mobile Network should exist.
    name String
    Specifies the name which should be used for this Mobile Network.
    resourceGroupName String
    Specifies the name of the Resource Group where the Mobile Network should exist.

    getNetwork Result

    The following output properties are available:

    Id string
    The provider-assigned unique ID for this managed resource.
    Location string
    The Azure Region where the Mobile Network should exist. Changing this forces a new Mobile Network to be created.
    MobileCountryCode string
    Mobile country code (MCC), defined in https://www.itu.int/rec/T-REC-E.212 .
    MobileNetworkCode string
    Mobile network code (MNC), defined in https://www.itu.int/rec/T-REC-E.212 .
    Name string
    ResourceGroupName string
    ServiceKey string
    The mobile network resource identifier.
    Tags Dictionary<string, string>
    A mapping of tags which should be assigned to the Mobile Network.
    Id string
    The provider-assigned unique ID for this managed resource.
    Location string
    The Azure Region where the Mobile Network should exist. Changing this forces a new Mobile Network to be created.
    MobileCountryCode string
    Mobile country code (MCC), defined in https://www.itu.int/rec/T-REC-E.212 .
    MobileNetworkCode string
    Mobile network code (MNC), defined in https://www.itu.int/rec/T-REC-E.212 .
    Name string
    ResourceGroupName string
    ServiceKey string
    The mobile network resource identifier.
    Tags map[string]string
    A mapping of tags which should be assigned to the Mobile Network.
    id String
    The provider-assigned unique ID for this managed resource.
    location String
    The Azure Region where the Mobile Network should exist. Changing this forces a new Mobile Network to be created.
    mobileCountryCode String
    Mobile country code (MCC), defined in https://www.itu.int/rec/T-REC-E.212 .
    mobileNetworkCode String
    Mobile network code (MNC), defined in https://www.itu.int/rec/T-REC-E.212 .
    name String
    resourceGroupName String
    serviceKey String
    The mobile network resource identifier.
    tags Map<String,String>
    A mapping of tags which should be assigned to the Mobile Network.
    id string
    The provider-assigned unique ID for this managed resource.
    location string
    The Azure Region where the Mobile Network should exist. Changing this forces a new Mobile Network to be created.
    mobileCountryCode string
    Mobile country code (MCC), defined in https://www.itu.int/rec/T-REC-E.212 .
    mobileNetworkCode string
    Mobile network code (MNC), defined in https://www.itu.int/rec/T-REC-E.212 .
    name string
    resourceGroupName string
    serviceKey string
    The mobile network resource identifier.
    tags {[key: string]: string}
    A mapping of tags which should be assigned to the Mobile Network.
    id str
    The provider-assigned unique ID for this managed resource.
    location str
    The Azure Region where the Mobile Network should exist. Changing this forces a new Mobile Network to be created.
    mobile_country_code str
    Mobile country code (MCC), defined in https://www.itu.int/rec/T-REC-E.212 .
    mobile_network_code str
    Mobile network code (MNC), defined in https://www.itu.int/rec/T-REC-E.212 .
    name str
    resource_group_name str
    service_key str
    The mobile network resource identifier.
    tags Mapping[str, str]
    A mapping of tags which should be assigned to the Mobile Network.
    id String
    The provider-assigned unique ID for this managed resource.
    location String
    The Azure Region where the Mobile Network should exist. Changing this forces a new Mobile Network to be created.
    mobileCountryCode String
    Mobile country code (MCC), defined in https://www.itu.int/rec/T-REC-E.212 .
    mobileNetworkCode String
    Mobile network code (MNC), defined in https://www.itu.int/rec/T-REC-E.212 .
    name String
    resourceGroupName String
    serviceKey String
    The mobile network resource identifier.
    tags Map<String>
    A mapping of tags which should be assigned to the Mobile Network.

    Package Details

    Repository
    Azure Classic pulumi/pulumi-azure
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the azurerm Terraform Provider.
    azure logo

    We recommend using Azure Native.

    Azure Classic v5.73.0 published on Monday, Apr 22, 2024 by Pulumi