Site Args
data class SiteArgs(val createdAt: Output<String>? = null, val createdBy: Output<String>? = null, val createdByType: Output<Either<String, CreatedByType>>? = null, val lastModifiedAt: Output<String>? = null, val lastModifiedBy: Output<String>? = null, val lastModifiedByType: Output<Either<String, CreatedByType>>? = null, val location: Output<String>? = null, val mobileNetworkName: Output<String>? = null, val networkFunctions: Output<List<SubResourceArgs>>? = null, val resourceGroupName: Output<String>? = null, val siteName: Output<String>? = null, val tags: Output<Map<String, String>>? = null) : ConvertibleToJava<SiteArgs>
Site resource. API Version: 2022-04-01-preview.
Example Usage
Create mobile network site
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var site = new AzureNative.MobileNetwork.Site("site", new()
{
Location = "testLocation",
MobileNetworkName = "testMobileNetwork",
NetworkFunctions = new[]
{
new AzureNative.MobileNetwork.Inputs.SubResourceArgs
{
Id = "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.HybridNetwork/networkFunctions/testNf",
},
},
ResourceGroupName = "rg1",
SiteName = "testSite",
});
});
Content copied to clipboard
package main
import (
mobilenetwork "github.com/pulumi/pulumi-azure-native-sdk/mobilenetwork"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := mobilenetwork.NewSite(ctx, "site", &mobilenetwork.SiteArgs{
Location: pulumi.String("testLocation"),
MobileNetworkName: pulumi.String("testMobileNetwork"),
NetworkFunctions: []mobilenetwork.SubResourceArgs{
{
Id: pulumi.String("/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.HybridNetwork/networkFunctions/testNf"),
},
},
ResourceGroupName: pulumi.String("rg1"),
SiteName: pulumi.String("testSite"),
})
if err != nil {
return err
}
return nil
})
}
Content copied to clipboard
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.mobilenetwork.Site;
import com.pulumi.azurenative.mobilenetwork.SiteArgs;
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) {
var site = new Site("site", SiteArgs.builder()
.location("testLocation")
.mobileNetworkName("testMobileNetwork")
.networkFunctions(Map.of("id", "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.HybridNetwork/networkFunctions/testNf"))
.resourceGroupName("rg1")
.siteName("testSite")
.build());
}
}
Content copied to clipboard
Import
An existing resource can be imported using its type token, name, and identifier, e.g.
$ pulumi import azure-native:mobilenetwork:Site testSite /subscriptions/subid/resourceGroups/rg1/providers/Microsoft.MobileNetwork/mobileNetworks/testMobileNetwork/sites/testSite
Content copied to clipboard
Constructors
Link copied to clipboard
constructor(createdAt: Output<String>? = null, createdBy: Output<String>? = null, createdByType: Output<Either<String, CreatedByType>>? = null, lastModifiedAt: Output<String>? = null, lastModifiedBy: Output<String>? = null, lastModifiedByType: Output<Either<String, CreatedByType>>? = null, location: Output<String>? = null, mobileNetworkName: Output<String>? = null, networkFunctions: Output<List<SubResourceArgs>>? = null, resourceGroupName: Output<String>? = null, siteName: Output<String>? = null, tags: Output<Map<String, String>>? = null)
Properties
Link copied to clipboard
The type of identity that created the resource.
Link copied to clipboard
The timestamp of resource last modification (UTC)
Link copied to clipboard
The identity that last modified the resource.
Link copied to clipboard
The type of identity that last modified the resource.
Link copied to clipboard
The name of the mobile network.
Link copied to clipboard
An array of IDs of the network functions deployed on the site, maintained by the user.
Link copied to clipboard
The name of the resource group. The name is case insensitive.