Site

class Site : KotlinCustomResource

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",
});
});
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
})
}
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());
}
}

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

Properties

Link copied to clipboard
val createdAt: Output<String>?

The timestamp of resource creation (UTC).

Link copied to clipboard
val createdBy: Output<String>?

The identity that created the resource.

Link copied to clipboard
val createdByType: Output<String>?

The type of identity that created the resource.

Link copied to clipboard
val id: Output<String>
Link copied to clipboard
val lastModifiedAt: Output<String>?

The timestamp of resource last modification (UTC)

Link copied to clipboard
val lastModifiedBy: Output<String>?

The identity that last modified the resource.

Link copied to clipboard

The type of identity that last modified the resource.

Link copied to clipboard
val location: Output<String>

The geo-location where the resource lives

Link copied to clipboard
val name: Output<String>

The name of the resource

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 provisioning state of the site resource.

Link copied to clipboard
val pulumiChildResources: Set<KotlinResource>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Azure Resource Manager metadata containing createdBy and modifiedBy information.

Link copied to clipboard
val tags: Output<Map<String, String>>?

Resource tags.

Link copied to clipboard
val type: Output<String>

The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"

Link copied to clipboard
val urn: Output<String>