We recommend using Azure Native.
Azure v6.21.0 published on Friday, Mar 7, 2025 by Pulumi
azure.mobile.getNetworkSlice
Explore with Pulumi AI
Get information about a Mobile Network Slice.
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 exampleGetNetworkSlice = azure.mobile.getNetworkSlice({
    name: "example-mns",
    mobileNetworkId: test.id,
});
import pulumi
import pulumi_azure as azure
example = azure.mobile.get_network(name="example-mn",
    resource_group_name="example-rg")
example_get_network_slice = azure.mobile.get_network_slice(name="example-mns",
    mobile_network_id=test["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 {
		_, err := mobile.LookupNetwork(ctx, &mobile.LookupNetworkArgs{
			Name:              "example-mn",
			ResourceGroupName: "example-rg",
		}, nil)
		if err != nil {
			return err
		}
		_, err = mobile.LookupNetworkSlice(ctx, &mobile.LookupNetworkSliceArgs{
			Name:            "example-mns",
			MobileNetworkId: test.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 exampleGetNetworkSlice = Azure.Mobile.GetNetworkSlice.Invoke(new()
    {
        Name = "example-mns",
        MobileNetworkId = test.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.GetNetworkSliceArgs;
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 exampleGetNetworkSlice = MobileFunctions.getNetworkSlice(GetNetworkSliceArgs.builder()
            .name("example-mns")
            .mobileNetworkId(test.id())
            .build());
    }
}
variables:
  example:
    fn::invoke:
      function: azure:mobile:getNetwork
      arguments:
        name: example-mn
        resourceGroupName: example-rg
  exampleGetNetworkSlice:
    fn::invoke:
      function: azure:mobile:getNetworkSlice
      arguments:
        name: example-mns
        mobileNetworkId: ${test.id}
Using getNetworkSlice
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 getNetworkSlice(args: GetNetworkSliceArgs, opts?: InvokeOptions): Promise<GetNetworkSliceResult>
function getNetworkSliceOutput(args: GetNetworkSliceOutputArgs, opts?: InvokeOptions): Output<GetNetworkSliceResult>def get_network_slice(mobile_network_id: Optional[str] = None,
                      name: Optional[str] = None,
                      opts: Optional[InvokeOptions] = None) -> GetNetworkSliceResult
def get_network_slice_output(mobile_network_id: Optional[pulumi.Input[str]] = None,
                      name: Optional[pulumi.Input[str]] = None,
                      opts: Optional[InvokeOptions] = None) -> Output[GetNetworkSliceResult]func LookupNetworkSlice(ctx *Context, args *LookupNetworkSliceArgs, opts ...InvokeOption) (*LookupNetworkSliceResult, error)
func LookupNetworkSliceOutput(ctx *Context, args *LookupNetworkSliceOutputArgs, opts ...InvokeOption) LookupNetworkSliceResultOutput> Note: This function is named LookupNetworkSlice in the Go SDK.
public static class GetNetworkSlice 
{
    public static Task<GetNetworkSliceResult> InvokeAsync(GetNetworkSliceArgs args, InvokeOptions? opts = null)
    public static Output<GetNetworkSliceResult> Invoke(GetNetworkSliceInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetNetworkSliceResult> getNetworkSlice(GetNetworkSliceArgs args, InvokeOptions options)
public static Output<GetNetworkSliceResult> getNetworkSlice(GetNetworkSliceArgs args, InvokeOptions options)
fn::invoke:
  function: azure:mobile/getNetworkSlice:getNetworkSlice
  arguments:
    # arguments dictionaryThe following arguments are supported:
- MobileNetwork stringId 
- The ID of Mobile Network which the Mobile Network Slice belongs to.
- Name string
- Specifies the name which should be used for this Mobile Network Slice.
- MobileNetwork stringId 
- The ID of Mobile Network which the Mobile Network Slice belongs to.
- Name string
- Specifies the name which should be used for this Mobile Network Slice.
- mobileNetwork StringId 
- The ID of Mobile Network which the Mobile Network Slice belongs to.
- name String
- Specifies the name which should be used for this Mobile Network Slice.
- mobileNetwork stringId 
- The ID of Mobile Network which the Mobile Network Slice belongs to.
- name string
- Specifies the name which should be used for this Mobile Network Slice.
- mobile_network_ strid 
- The ID of Mobile Network which the Mobile Network Slice belongs to.
- name str
- Specifies the name which should be used for this Mobile Network Slice.
- mobileNetwork StringId 
- The ID of Mobile Network which the Mobile Network Slice belongs to.
- name String
- Specifies the name which should be used for this Mobile Network Slice.
getNetworkSlice Result
The following output properties are available:
- Description string
- A description of this Mobile Network Slice.
- Id string
- The provider-assigned unique ID for this managed resource.
- Location string
- The Azure Region where the Mobile Network Slice exists.
- MobileNetwork stringId 
- Name string
- SingleNetwork List<GetSlice Selection Assistance Informations Network Slice Single Network Slice Selection Assistance Information> 
- A single_network_slice_selection_assistance_informationblock as defined below. Single-network slice selection assistance information (S-NSSAI).
- Dictionary<string, string>
- A mapping of tags which are assigned to the Mobile Network Slice.
- Description string
- A description of this Mobile Network Slice.
- Id string
- The provider-assigned unique ID for this managed resource.
- Location string
- The Azure Region where the Mobile Network Slice exists.
- MobileNetwork stringId 
- Name string
- SingleNetwork []GetSlice Selection Assistance Informations Network Slice Single Network Slice Selection Assistance Information 
- A single_network_slice_selection_assistance_informationblock as defined below. Single-network slice selection assistance information (S-NSSAI).
- map[string]string
- A mapping of tags which are assigned to the Mobile Network Slice.
- description String
- A description of this Mobile Network Slice.
- id String
- The provider-assigned unique ID for this managed resource.
- location String
- The Azure Region where the Mobile Network Slice exists.
- mobileNetwork StringId 
- name String
- singleNetwork List<GetSlice Selection Assistance Informations Network Slice Single Network Slice Selection Assistance Information> 
- A single_network_slice_selection_assistance_informationblock as defined below. Single-network slice selection assistance information (S-NSSAI).
- Map<String,String>
- A mapping of tags which are assigned to the Mobile Network Slice.
- description string
- A description of this Mobile Network Slice.
- id string
- The provider-assigned unique ID for this managed resource.
- location string
- The Azure Region where the Mobile Network Slice exists.
- mobileNetwork stringId 
- name string
- singleNetwork GetSlice Selection Assistance Informations Network Slice Single Network Slice Selection Assistance Information[] 
- A single_network_slice_selection_assistance_informationblock as defined below. Single-network slice selection assistance information (S-NSSAI).
- {[key: string]: string}
- A mapping of tags which are assigned to the Mobile Network Slice.
- description str
- A description of this Mobile Network Slice.
- id str
- The provider-assigned unique ID for this managed resource.
- location str
- The Azure Region where the Mobile Network Slice exists.
- mobile_network_ strid 
- name str
- single_network_ Sequence[Getslice_ selection_ assistance_ informations Network Slice Single Network Slice Selection Assistance Information] 
- A single_network_slice_selection_assistance_informationblock as defined below. Single-network slice selection assistance information (S-NSSAI).
- Mapping[str, str]
- A mapping of tags which are assigned to the Mobile Network Slice.
- description String
- A description of this Mobile Network Slice.
- id String
- The provider-assigned unique ID for this managed resource.
- location String
- The Azure Region where the Mobile Network Slice exists.
- mobileNetwork StringId 
- name String
- singleNetwork List<Property Map>Slice Selection Assistance Informations 
- A single_network_slice_selection_assistance_informationblock as defined below. Single-network slice selection assistance information (S-NSSAI).
- Map<String>
- A mapping of tags which are assigned to the Mobile Network Slice.
Supporting Types
GetNetworkSliceSingleNetworkSliceSelectionAssistanceInformation        
- SliceDifferentiator string
- Slice differentiator (SD).
- SliceService intType 
- Slice/service type (SST).
- SliceDifferentiator string
- Slice differentiator (SD).
- SliceService intType 
- Slice/service type (SST).
- sliceDifferentiator String
- Slice differentiator (SD).
- sliceService IntegerType 
- Slice/service type (SST).
- sliceDifferentiator string
- Slice differentiator (SD).
- sliceService numberType 
- Slice/service type (SST).
- slice_differentiator str
- Slice differentiator (SD).
- slice_service_ inttype 
- Slice/service type (SST).
- sliceDifferentiator String
- Slice differentiator (SD).
- sliceService NumberType 
- Slice/service type (SST).
Package Details
- Repository
- Azure Classic pulumi/pulumi-azure
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the azurermTerraform Provider.