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

We recommend using Azure Native.

Azure v6.10.0 published on Tuesday, Nov 19, 2024 by Pulumi

azure.mobile.getNetworkSlice

Explore with Pulumi AI

azure logo

We recommend using Azure Native.

Azure v6.10.0 published on Tuesday, Nov 19, 2024 by Pulumi

    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)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: azure:mobile/getNetworkSlice:getNetworkSlice
      arguments:
        # arguments dictionary

    The following arguments are supported:

    MobileNetworkId string
    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.
    MobileNetworkId string
    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.
    mobileNetworkId String
    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.
    mobileNetworkId string
    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_id str
    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.
    mobileNetworkId String
    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.
    MobileNetworkId string
    Name string
    SingleNetworkSliceSelectionAssistanceInformations List<GetNetworkSliceSingleNetworkSliceSelectionAssistanceInformation>
    A single_network_slice_selection_assistance_information block as defined below. Single-network slice selection assistance information (S-NSSAI).
    Tags 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.
    MobileNetworkId string
    Name string
    SingleNetworkSliceSelectionAssistanceInformations []GetNetworkSliceSingleNetworkSliceSelectionAssistanceInformation
    A single_network_slice_selection_assistance_information block as defined below. Single-network slice selection assistance information (S-NSSAI).
    Tags 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.
    mobileNetworkId String
    name String
    singleNetworkSliceSelectionAssistanceInformations List<GetNetworkSliceSingleNetworkSliceSelectionAssistanceInformation>
    A single_network_slice_selection_assistance_information block as defined below. Single-network slice selection assistance information (S-NSSAI).
    tags 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.
    mobileNetworkId string
    name string
    singleNetworkSliceSelectionAssistanceInformations GetNetworkSliceSingleNetworkSliceSelectionAssistanceInformation[]
    A single_network_slice_selection_assistance_information block as defined below. Single-network slice selection assistance information (S-NSSAI).
    tags {[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_id str
    name str
    single_network_slice_selection_assistance_informations Sequence[GetNetworkSliceSingleNetworkSliceSelectionAssistanceInformation]
    A single_network_slice_selection_assistance_information block as defined below. Single-network slice selection assistance information (S-NSSAI).
    tags 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.
    mobileNetworkId String
    name String
    singleNetworkSliceSelectionAssistanceInformations List<Property Map>
    A single_network_slice_selection_assistance_information block as defined below. Single-network slice selection assistance information (S-NSSAI).
    tags Map<String>
    A mapping of tags which are assigned to the Mobile Network Slice.

    Supporting Types

    GetNetworkSliceSingleNetworkSliceSelectionAssistanceInformation

    SliceDifferentiator string
    Slice differentiator (SD).
    SliceServiceType int
    Slice/service type (SST).
    SliceDifferentiator string
    Slice differentiator (SD).
    SliceServiceType int
    Slice/service type (SST).
    sliceDifferentiator String
    Slice differentiator (SD).
    sliceServiceType Integer
    Slice/service type (SST).
    sliceDifferentiator string
    Slice differentiator (SD).
    sliceServiceType number
    Slice/service type (SST).
    slice_differentiator str
    Slice differentiator (SD).
    slice_service_type int
    Slice/service type (SST).
    sliceDifferentiator String
    Slice differentiator (SD).
    sliceServiceType Number
    Slice/service type (SST).

    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 v6.10.0 published on Tuesday, Nov 19, 2024 by Pulumi