azure-native.hybridnetwork.Site
Explore with Pulumi AI
Site resource. Azure REST API version: 2023-09-01.
Other available API versions: 2024-04-15.
Example Usage
Create network site
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var site = new AzureNative.HybridNetwork.Site("site", new()
{
Location = "westUs2",
Properties = new AzureNative.HybridNetwork.Inputs.SitePropertiesFormatArgs
{
Nfvis =
{
new AzureNative.HybridNetwork.Inputs.AzureCoreNFVIDetailsArgs
{
Location = "westUs2",
Name = "nfvi1",
NfviType = "AzureCore",
},
new AzureNative.HybridNetwork.Inputs.AzureArcK8sClusterNFVIDetailsArgs
{
CustomLocationReference = new AzureNative.HybridNetwork.Inputs.ReferencedResourceArgs
{
Id = "/subscriptions/subid/resourceGroups/testResourceGroup/providers/Microsoft.ExtendedLocation/customLocations/testCustomLocation1",
},
Name = "nfvi2",
NfviType = "AzureArcKubernetes",
},
new AzureNative.HybridNetwork.Inputs.AzureOperatorNexusClusterNFVIDetailsArgs
{
CustomLocationReference = new AzureNative.HybridNetwork.Inputs.ReferencedResourceArgs
{
Id = "/subscriptions/subid/resourceGroups/testResourceGroup/providers/Microsoft.ExtendedLocation/customLocations/testCustomLocation2",
},
Name = "nfvi3",
NfviType = "AzureOperatorNexus",
},
},
},
ResourceGroupName = "rg1",
SiteName = "testSite",
});
});
package main
import (
hybridnetwork "github.com/pulumi/pulumi-azure-native-sdk/hybridnetwork/v2"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := hybridnetwork.NewSite(ctx, "site", &hybridnetwork.SiteArgs{
Location: pulumi.String("westUs2"),
Properties: &hybridnetwork.SitePropertiesFormatArgs{
Nfvis: pulumi.Array{
hybridnetwork.AzureCoreNFVIDetails{
Location: "westUs2",
Name: "nfvi1",
NfviType: "AzureCore",
},
hybridnetwork.AzureArcK8sClusterNFVIDetails{
CustomLocationReference: hybridnetwork.ReferencedResource{
Id: "/subscriptions/subid/resourceGroups/testResourceGroup/providers/Microsoft.ExtendedLocation/customLocations/testCustomLocation1",
},
Name: "nfvi2",
NfviType: "AzureArcKubernetes",
},
hybridnetwork.AzureOperatorNexusClusterNFVIDetails{
CustomLocationReference: hybridnetwork.ReferencedResource{
Id: "/subscriptions/subid/resourceGroups/testResourceGroup/providers/Microsoft.ExtendedLocation/customLocations/testCustomLocation2",
},
Name: "nfvi3",
NfviType: "AzureOperatorNexus",
},
},
},
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.hybridnetwork.Site;
import com.pulumi.azurenative.hybridnetwork.SiteArgs;
import com.pulumi.azurenative.hybridnetwork.inputs.SitePropertiesFormatArgs;
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("westUs2")
.properties(SitePropertiesFormatArgs.builder()
.nfvis(
AzureCoreNFVIDetailsArgs.builder()
.location("westUs2")
.name("nfvi1")
.nfviType("AzureCore")
.build(),
AzureArcK8sClusterNFVIDetailsArgs.builder()
.customLocationReference(ReferencedResourceArgs.builder()
.id("/subscriptions/subid/resourceGroups/testResourceGroup/providers/Microsoft.ExtendedLocation/customLocations/testCustomLocation1")
.build())
.name("nfvi2")
.nfviType("AzureArcKubernetes")
.build(),
AzureOperatorNexusClusterNFVIDetailsArgs.builder()
.customLocationReference(ReferencedResourceArgs.builder()
.id("/subscriptions/subid/resourceGroups/testResourceGroup/providers/Microsoft.ExtendedLocation/customLocations/testCustomLocation2")
.build())
.name("nfvi3")
.nfviType("AzureOperatorNexus")
.build())
.build())
.resourceGroupName("rg1")
.siteName("testSite")
.build());
}
}
import pulumi
import pulumi_azure_native as azure_native
site = azure_native.hybridnetwork.Site("site",
location="westUs2",
properties={
"nfvis": [
{
"location": "westUs2",
"name": "nfvi1",
"nfvi_type": "AzureCore",
},
{
"custom_location_reference": {
"id": "/subscriptions/subid/resourceGroups/testResourceGroup/providers/Microsoft.ExtendedLocation/customLocations/testCustomLocation1",
},
"name": "nfvi2",
"nfvi_type": "AzureArcKubernetes",
},
{
"custom_location_reference": {
"id": "/subscriptions/subid/resourceGroups/testResourceGroup/providers/Microsoft.ExtendedLocation/customLocations/testCustomLocation2",
},
"name": "nfvi3",
"nfvi_type": "AzureOperatorNexus",
},
],
},
resource_group_name="rg1",
site_name="testSite")
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";
const site = new azure_native.hybridnetwork.Site("site", {
location: "westUs2",
properties: {
nfvis: [
{
location: "westUs2",
name: "nfvi1",
nfviType: "AzureCore",
},
{
customLocationReference: {
id: "/subscriptions/subid/resourceGroups/testResourceGroup/providers/Microsoft.ExtendedLocation/customLocations/testCustomLocation1",
},
name: "nfvi2",
nfviType: "AzureArcKubernetes",
},
{
customLocationReference: {
id: "/subscriptions/subid/resourceGroups/testResourceGroup/providers/Microsoft.ExtendedLocation/customLocations/testCustomLocation2",
},
name: "nfvi3",
nfviType: "AzureOperatorNexus",
},
],
},
resourceGroupName: "rg1",
siteName: "testSite",
});
resources:
site:
type: azure-native:hybridnetwork:Site
properties:
location: westUs2
properties:
nfvis:
- location: westUs2
name: nfvi1
nfviType: AzureCore
- customLocationReference:
id: /subscriptions/subid/resourceGroups/testResourceGroup/providers/Microsoft.ExtendedLocation/customLocations/testCustomLocation1
name: nfvi2
nfviType: AzureArcKubernetes
- customLocationReference:
id: /subscriptions/subid/resourceGroups/testResourceGroup/providers/Microsoft.ExtendedLocation/customLocations/testCustomLocation2
name: nfvi3
nfviType: AzureOperatorNexus
resourceGroupName: rg1
siteName: testSite
Create Site Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Site(name: string, args: SiteArgs, opts?: CustomResourceOptions);
@overload
def Site(resource_name: str,
args: SiteArgs,
opts: Optional[ResourceOptions] = None)
@overload
def Site(resource_name: str,
opts: Optional[ResourceOptions] = None,
resource_group_name: Optional[str] = None,
location: Optional[str] = None,
properties: Optional[SitePropertiesFormatArgs] = None,
site_name: Optional[str] = None,
tags: Optional[Mapping[str, str]] = None)
func NewSite(ctx *Context, name string, args SiteArgs, opts ...ResourceOption) (*Site, error)
public Site(string name, SiteArgs args, CustomResourceOptions? opts = null)
type: azure-native:hybridnetwork:Site
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args SiteArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args SiteArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args SiteArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args SiteArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args SiteArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var azure_nativeSiteResource = new AzureNative.HybridNetwork.Site("azure-nativeSiteResource", new()
{
ResourceGroupName = "string",
Location = "string",
Properties = new AzureNative.HybridNetwork.Inputs.SitePropertiesFormatArgs
{
Nfvis = new[]
{
new AzureNative.HybridNetwork.Inputs.AzureArcK8sClusterNFVIDetailsArgs
{
NfviType = "AzureArcKubernetes",
CustomLocationReference = new AzureNative.HybridNetwork.Inputs.ReferencedResourceArgs
{
Id = "string",
},
Name = "string",
},
},
},
SiteName = "string",
Tags =
{
{ "string", "string" },
},
});
example, err := hybridnetwork.NewSite(ctx, "azure-nativeSiteResource", &hybridnetwork.SiteArgs{
ResourceGroupName: pulumi.String("string"),
Location: pulumi.String("string"),
Properties: &hybridnetwork.SitePropertiesFormatArgs{
Nfvis: pulumi.Array{
hybridnetwork.AzureArcK8sClusterNFVIDetails{
NfviType: "AzureArcKubernetes",
CustomLocationReference: hybridnetwork.ReferencedResource{
Id: "string",
},
Name: "string",
},
},
},
SiteName: pulumi.String("string"),
Tags: pulumi.StringMap{
"string": pulumi.String("string"),
},
})
var azure_nativeSiteResource = new Site("azure-nativeSiteResource", SiteArgs.builder()
.resourceGroupName("string")
.location("string")
.properties(SitePropertiesFormatArgs.builder()
.nfvis(AzureArcK8sClusterNFVIDetailsArgs.builder()
.nfviType("AzureArcKubernetes")
.customLocationReference(ReferencedResourceArgs.builder()
.id("string")
.build())
.name("string")
.build())
.build())
.siteName("string")
.tags(Map.of("string", "string"))
.build());
azure_native_site_resource = azure_native.hybridnetwork.Site("azure-nativeSiteResource",
resource_group_name="string",
location="string",
properties={
"nfvis": [{
"nfvi_type": "AzureArcKubernetes",
"custom_location_reference": {
"id": "string",
},
"name": "string",
}],
},
site_name="string",
tags={
"string": "string",
})
const azure_nativeSiteResource = new azure_native.hybridnetwork.Site("azure-nativeSiteResource", {
resourceGroupName: "string",
location: "string",
properties: {
nfvis: [{
nfviType: "AzureArcKubernetes",
customLocationReference: {
id: "string",
},
name: "string",
}],
},
siteName: "string",
tags: {
string: "string",
},
});
type: azure-native:hybridnetwork:Site
properties:
location: string
properties:
nfvis:
- customLocationReference:
id: string
name: string
nfviType: AzureArcKubernetes
resourceGroupName: string
siteName: string
tags:
string: string
Site Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The Site resource accepts the following input properties:
- Resource
Group stringName - The name of the resource group. The name is case insensitive.
- Location string
- The geo-location where the resource lives
- Properties
Pulumi.
Azure Native. Hybrid Network. Inputs. Site Properties Format - Site properties.
- Site
Name string - The name of the network service site.
- Dictionary<string, string>
- Resource tags.
- Resource
Group stringName - The name of the resource group. The name is case insensitive.
- Location string
- The geo-location where the resource lives
- Properties
Site
Properties Format Args - Site properties.
- Site
Name string - The name of the network service site.
- map[string]string
- Resource tags.
- resource
Group StringName - The name of the resource group. The name is case insensitive.
- location String
- The geo-location where the resource lives
- properties
Site
Properties Format - Site properties.
- site
Name String - The name of the network service site.
- Map<String,String>
- Resource tags.
- resource
Group stringName - The name of the resource group. The name is case insensitive.
- location string
- The geo-location where the resource lives
- properties
Site
Properties Format - Site properties.
- site
Name string - The name of the network service site.
- {[key: string]: string}
- Resource tags.
- resource_
group_ strname - The name of the resource group. The name is case insensitive.
- location str
- The geo-location where the resource lives
- properties
Site
Properties Format Args - Site properties.
- site_
name str - The name of the network service site.
- Mapping[str, str]
- Resource tags.
- resource
Group StringName - The name of the resource group. The name is case insensitive.
- location String
- The geo-location where the resource lives
- properties Property Map
- Site properties.
- site
Name String - The name of the network service site.
- Map<String>
- Resource tags.
Outputs
All input properties are implicitly available as output properties. Additionally, the Site resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- The name of the resource
- System
Data Pulumi.Azure Native. Hybrid Network. Outputs. System Data Response - Azure Resource Manager metadata containing createdBy and modifiedBy information.
- Type string
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- The name of the resource
- System
Data SystemData Response - Azure Resource Manager metadata containing createdBy and modifiedBy information.
- Type string
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- id String
- The provider-assigned unique ID for this managed resource.
- name String
- The name of the resource
- system
Data SystemData Response - Azure Resource Manager metadata containing createdBy and modifiedBy information.
- type String
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- id string
- The provider-assigned unique ID for this managed resource.
- name string
- The name of the resource
- system
Data SystemData Response - Azure Resource Manager metadata containing createdBy and modifiedBy information.
- type string
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- id str
- The provider-assigned unique ID for this managed resource.
- name str
- The name of the resource
- system_
data SystemData Response - Azure Resource Manager metadata containing createdBy and modifiedBy information.
- type str
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
- id String
- The provider-assigned unique ID for this managed resource.
- name String
- The name of the resource
- system
Data Property Map - Azure Resource Manager metadata containing createdBy and modifiedBy information.
- type String
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
Supporting Types
AzureArcK8sClusterNFVIDetails, AzureArcK8sClusterNFVIDetailsArgs
- Custom
Location Pulumi.Reference Azure Native. Hybrid Network. Inputs. Referenced Resource - The reference to the custom location.
- Name string
- Name of the nfvi.
- Custom
Location ReferencedReference Resource - The reference to the custom location.
- Name string
- Name of the nfvi.
- custom
Location ReferencedReference Resource - The reference to the custom location.
- name String
- Name of the nfvi.
- custom
Location ReferencedReference Resource - The reference to the custom location.
- name string
- Name of the nfvi.
- custom_
location_ Referencedreference Resource - The reference to the custom location.
- name str
- Name of the nfvi.
- custom
Location Property MapReference - The reference to the custom location.
- name String
- Name of the nfvi.
AzureArcK8sClusterNFVIDetailsResponse, AzureArcK8sClusterNFVIDetailsResponseArgs
- Custom
Location Pulumi.Reference Azure Native. Hybrid Network. Inputs. Referenced Resource Response - The reference to the custom location.
- Name string
- Name of the nfvi.
- Custom
Location ReferencedReference Resource Response - The reference to the custom location.
- Name string
- Name of the nfvi.
- custom
Location ReferencedReference Resource Response - The reference to the custom location.
- name String
- Name of the nfvi.
- custom
Location ReferencedReference Resource Response - The reference to the custom location.
- name string
- Name of the nfvi.
- custom_
location_ Referencedreference Resource Response - The reference to the custom location.
- name str
- Name of the nfvi.
- custom
Location Property MapReference - The reference to the custom location.
- name String
- Name of the nfvi.
AzureCoreNFVIDetails, AzureCoreNFVIDetailsArgs
AzureCoreNFVIDetailsResponse, AzureCoreNFVIDetailsResponseArgs
AzureOperatorNexusClusterNFVIDetails, AzureOperatorNexusClusterNFVIDetailsArgs
- Custom
Location Pulumi.Reference Azure Native. Hybrid Network. Inputs. Referenced Resource - The reference to the custom location.
- Name string
- Name of the nfvi.
- Custom
Location ReferencedReference Resource - The reference to the custom location.
- Name string
- Name of the nfvi.
- custom
Location ReferencedReference Resource - The reference to the custom location.
- name String
- Name of the nfvi.
- custom
Location ReferencedReference Resource - The reference to the custom location.
- name string
- Name of the nfvi.
- custom_
location_ Referencedreference Resource - The reference to the custom location.
- name str
- Name of the nfvi.
- custom
Location Property MapReference - The reference to the custom location.
- name String
- Name of the nfvi.
AzureOperatorNexusClusterNFVIDetailsResponse, AzureOperatorNexusClusterNFVIDetailsResponseArgs
- Custom
Location Pulumi.Reference Azure Native. Hybrid Network. Inputs. Referenced Resource Response - The reference to the custom location.
- Name string
- Name of the nfvi.
- Custom
Location ReferencedReference Resource Response - The reference to the custom location.
- Name string
- Name of the nfvi.
- custom
Location ReferencedReference Resource Response - The reference to the custom location.
- name String
- Name of the nfvi.
- custom
Location ReferencedReference Resource Response - The reference to the custom location.
- name string
- Name of the nfvi.
- custom_
location_ Referencedreference Resource Response - The reference to the custom location.
- name str
- Name of the nfvi.
- custom
Location Property MapReference - The reference to the custom location.
- name String
- Name of the nfvi.
ReferencedResource, ReferencedResourceArgs
- Id string
- Resource ID.
- Id string
- Resource ID.
- id String
- Resource ID.
- id string
- Resource ID.
- id str
- Resource ID.
- id String
- Resource ID.
ReferencedResourceResponse, ReferencedResourceResponseArgs
- Id string
- Resource ID.
- Id string
- Resource ID.
- id String
- Resource ID.
- id string
- Resource ID.
- id str
- Resource ID.
- id String
- Resource ID.
SitePropertiesFormat, SitePropertiesFormatArgs
- Nfvis List<object>
- List of NFVIs
- Nfvis []interface{}
- List of NFVIs
- nfvis List<Object>
- List of NFVIs
- nfvis
(Azure
Arc K8s Cluster NFVIDetails | Azure Core NFVIDetails | Azure Operator Nexus Cluster NFVIDetails)[] - List of NFVIs
- nfvis
Sequence[Union[Azure
Arc K8s Cluster NFVIDetails, Azure Core NFVIDetails, Azure Operator Nexus Cluster NFVIDetails]] - List of NFVIs
- nfvis List<Property Map | Property Map | Property Map>
- List of NFVIs
SitePropertiesFormatResponse, SitePropertiesFormatResponseArgs
- Provisioning
State string - The provisioning state of the site resource. TODO: Confirm if this is needed.
- Site
Network List<Pulumi.Service References Azure Native. Hybrid Network. Inputs. Referenced Resource Response> - The list of site network services on the site.
- Nfvis List<object>
- List of NFVIs
- Provisioning
State string - The provisioning state of the site resource. TODO: Confirm if this is needed.
- Site
Network []ReferencedService References Resource Response - The list of site network services on the site.
- Nfvis []interface{}
- List of NFVIs
- provisioning
State String - The provisioning state of the site resource. TODO: Confirm if this is needed.
- site
Network List<ReferencedService References Resource Response> - The list of site network services on the site.
- nfvis List<Object>
- List of NFVIs
- provisioning
State string - The provisioning state of the site resource. TODO: Confirm if this is needed.
- site
Network ReferencedService References Resource Response[] - The list of site network services on the site.
- nfvis
(Azure
Arc K8s Cluster NFVIDetails Response | Azure Core NFVIDetails Response | Azure Operator Nexus Cluster NFVIDetails Response)[] - List of NFVIs
- provisioning_
state str - The provisioning state of the site resource. TODO: Confirm if this is needed.
- site_
network_ Sequence[Referencedservice_ references Resource Response] - The list of site network services on the site.
- nfvis
Sequence[Union[Azure
Arc K8s Cluster NFVIDetails Response, Azure Core NFVIDetails Response, Azure Operator Nexus Cluster NFVIDetails Response]] - List of NFVIs
- provisioning
State String - The provisioning state of the site resource. TODO: Confirm if this is needed.
- site
Network List<Property Map>Service References - The list of site network services on the site.
- nfvis List<Property Map | Property Map | Property Map>
- List of NFVIs
SystemDataResponse, SystemDataResponseArgs
- Created
At string - The timestamp of resource creation (UTC).
- Created
By string - The identity that created the resource.
- Created
By stringType - The type of identity that created the resource.
- Last
Modified stringAt - The timestamp of resource last modification (UTC)
- Last
Modified stringBy - The identity that last modified the resource.
- Last
Modified stringBy Type - The type of identity that last modified the resource.
- Created
At string - The timestamp of resource creation (UTC).
- Created
By string - The identity that created the resource.
- Created
By stringType - The type of identity that created the resource.
- Last
Modified stringAt - The timestamp of resource last modification (UTC)
- Last
Modified stringBy - The identity that last modified the resource.
- Last
Modified stringBy Type - The type of identity that last modified the resource.
- created
At String - The timestamp of resource creation (UTC).
- created
By String - The identity that created the resource.
- created
By StringType - The type of identity that created the resource.
- last
Modified StringAt - The timestamp of resource last modification (UTC)
- last
Modified StringBy - The identity that last modified the resource.
- last
Modified StringBy Type - The type of identity that last modified the resource.
- created
At string - The timestamp of resource creation (UTC).
- created
By string - The identity that created the resource.
- created
By stringType - The type of identity that created the resource.
- last
Modified stringAt - The timestamp of resource last modification (UTC)
- last
Modified stringBy - The identity that last modified the resource.
- last
Modified stringBy Type - The type of identity that last modified the resource.
- created_
at str - The timestamp of resource creation (UTC).
- created_
by str - The identity that created the resource.
- created_
by_ strtype - The type of identity that created the resource.
- last_
modified_ strat - The timestamp of resource last modification (UTC)
- last_
modified_ strby - The identity that last modified the resource.
- last_
modified_ strby_ type - The type of identity that last modified the resource.
- created
At String - The timestamp of resource creation (UTC).
- created
By String - The identity that created the resource.
- created
By StringType - The type of identity that created the resource.
- last
Modified StringAt - The timestamp of resource last modification (UTC)
- last
Modified StringBy - The identity that last modified the resource.
- last
Modified StringBy Type - The type of identity that last modified the resource.
Import
An existing resource can be imported using its type token, name, and identifier, e.g.
$ pulumi import azure-native:hybridnetwork:Site testSite /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HybridNetwork/sites/{siteName}
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Azure Native pulumi/pulumi-azure-native
- License
- Apache-2.0