get Network Service
Get information about a Mobile Network Service.
Example Usage
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.NetworkService;
import com.pulumi.azure.mobile.NetworkServiceArgs;
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());
var exampleNetworkService = new NetworkService("exampleNetworkService", NetworkServiceArgs.builder()
.name("example-mns")
.mobileNetworkId(example.applyValue(getNetworkResult -> getNetworkResult.id()))
.build());
}
}
Content copied to clipboard
Return
A collection of values returned by getNetworkService.
Parameters
argument
A collection of arguments for invoking getNetworkService.
Return
A collection of values returned by getNetworkService.
See also
Parameters
mobile Network Id
Specifies the ID of the Mobile Network Service.
name
Specifies the name which should be used for this Mobile Network Service.
suspend fun getNetworkService(argument: suspend GetNetworkServicePlainArgsBuilder.() -> Unit): GetNetworkServiceResult
Return
A collection of values returned by getNetworkService.
See also
Parameters
argument
Builder for com.pulumi.azure.mobile.kotlin.inputs.GetNetworkServicePlainArgs.