azure-native.servicefabricmesh.Network
Explore with Pulumi AI
This type describes a network resource. Azure REST API version: 2018-09-01-preview. Prior API version in Azure Native 1.x: 2018-09-01-preview.
Other available API versions: 2018-07-01-preview.
Example Usage
CreateOrUpdateNetwork
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var network = new AzureNative.ServiceFabricMesh.Network("network", new()
{
Location = "EastUS",
NetworkResourceName = "sampleNetwork",
Properties = null,
ResourceGroupName = "sbz_demo",
Tags = null,
});
});
package main
import (
servicefabricmesh "github.com/pulumi/pulumi-azure-native-sdk/servicefabricmesh/v2"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := servicefabricmesh.NewNetwork(ctx, "network", &servicefabricmesh.NetworkArgs{
Location: pulumi.String("EastUS"),
NetworkResourceName: pulumi.String("sampleNetwork"),
Properties: nil,
ResourceGroupName: pulumi.String("sbz_demo"),
Tags: nil,
})
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.servicefabricmesh.Network;
import com.pulumi.azurenative.servicefabricmesh.NetworkArgs;
import com.pulumi.azurenative.servicefabricmesh.inputs.NetworkResourcePropertiesArgs;
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 network = new Network("network", NetworkArgs.builder()
.location("EastUS")
.networkResourceName("sampleNetwork")
.properties()
.resourceGroupName("sbz_demo")
.tags()
.build());
}
}
import pulumi
import pulumi_azure_native as azure_native
network = azure_native.servicefabricmesh.Network("network",
location="EastUS",
network_resource_name="sampleNetwork",
properties={},
resource_group_name="sbz_demo",
tags={})
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";
const network = new azure_native.servicefabricmesh.Network("network", {
location: "EastUS",
networkResourceName: "sampleNetwork",
properties: {},
resourceGroupName: "sbz_demo",
tags: {},
});
resources:
network:
type: azure-native:servicefabricmesh:Network
properties:
location: EastUS
networkResourceName: sampleNetwork
properties: {}
resourceGroupName: sbz_demo
tags: {}
Create Network Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Network(name: string, args: NetworkArgs, opts?: CustomResourceOptions);
@overload
def Network(resource_name: str,
args: NetworkArgs,
opts: Optional[ResourceOptions] = None)
@overload
def Network(resource_name: str,
opts: Optional[ResourceOptions] = None,
properties: Optional[NetworkResourcePropertiesArgs] = None,
resource_group_name: Optional[str] = None,
location: Optional[str] = None,
network_resource_name: Optional[str] = None,
tags: Optional[Mapping[str, str]] = None)
func NewNetwork(ctx *Context, name string, args NetworkArgs, opts ...ResourceOption) (*Network, error)
public Network(string name, NetworkArgs args, CustomResourceOptions? opts = null)
public Network(String name, NetworkArgs args)
public Network(String name, NetworkArgs args, CustomResourceOptions options)
type: azure-native:servicefabricmesh:Network
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 NetworkArgs
- 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 NetworkArgs
- 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 NetworkArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args NetworkArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args NetworkArgs
- 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 networkResource = new AzureNative.ServiceFabricMesh.Network("networkResource", new()
{
Properties = new AzureNative.ServiceFabricMesh.Inputs.NetworkResourcePropertiesArgs
{
Kind = "NetworkResourceProperties",
Description = "string",
},
ResourceGroupName = "string",
Location = "string",
NetworkResourceName = "string",
Tags =
{
{ "string", "string" },
},
});
example, err := servicefabricmesh.NewNetwork(ctx, "networkResource", &servicefabricmesh.NetworkArgs{
Properties: &servicefabricmesh.NetworkResourcePropertiesArgs{
Kind: pulumi.String("NetworkResourceProperties"),
Description: pulumi.String("string"),
},
ResourceGroupName: pulumi.String("string"),
Location: pulumi.String("string"),
NetworkResourceName: pulumi.String("string"),
Tags: pulumi.StringMap{
"string": pulumi.String("string"),
},
})
var networkResource = new Network("networkResource", NetworkArgs.builder()
.properties(NetworkResourcePropertiesArgs.builder()
.kind("NetworkResourceProperties")
.description("string")
.build())
.resourceGroupName("string")
.location("string")
.networkResourceName("string")
.tags(Map.of("string", "string"))
.build());
network_resource = azure_native.servicefabricmesh.Network("networkResource",
properties={
"kind": "NetworkResourceProperties",
"description": "string",
},
resource_group_name="string",
location="string",
network_resource_name="string",
tags={
"string": "string",
})
const networkResource = new azure_native.servicefabricmesh.Network("networkResource", {
properties: {
kind: "NetworkResourceProperties",
description: "string",
},
resourceGroupName: "string",
location: "string",
networkResourceName: "string",
tags: {
string: "string",
},
});
type: azure-native:servicefabricmesh:Network
properties:
location: string
networkResourceName: string
properties:
description: string
kind: NetworkResourceProperties
resourceGroupName: string
tags:
string: string
Network Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
The Network resource accepts the following input properties:
- Properties
Pulumi.
Azure Native. Service Fabric Mesh. Inputs. Network Resource Properties - Describes properties of a network resource.
- Resource
Group stringName - Azure resource group name
- Location string
- The geo-location where the resource lives
- Network
Resource stringName - The identity of the network.
- Dictionary<string, string>
- Resource tags.
- Properties
Network
Resource Properties Args - Describes properties of a network resource.
- Resource
Group stringName - Azure resource group name
- Location string
- The geo-location where the resource lives
- Network
Resource stringName - The identity of the network.
- map[string]string
- Resource tags.
- properties
Network
Resource Properties - Describes properties of a network resource.
- resource
Group StringName - Azure resource group name
- location String
- The geo-location where the resource lives
- network
Resource StringName - The identity of the network.
- Map<String,String>
- Resource tags.
- properties
Network
Resource Properties - Describes properties of a network resource.
- resource
Group stringName - Azure resource group name
- location string
- The geo-location where the resource lives
- network
Resource stringName - The identity of the network.
- {[key: string]: string}
- Resource tags.
- properties
Network
Resource Properties Args - Describes properties of a network resource.
- resource_
group_ strname - Azure resource group name
- location str
- The geo-location where the resource lives
- network_
resource_ strname - The identity of the network.
- Mapping[str, str]
- Resource tags.
- properties Property Map
- Describes properties of a network resource.
- resource
Group StringName - Azure resource group name
- location String
- The geo-location where the resource lives
- network
Resource StringName - The identity of the network.
- Map<String>
- Resource tags.
Outputs
All input properties are implicitly available as output properties. Additionally, the Network resource produces the following output properties:
Supporting Types
NetworkResourceProperties, NetworkResourcePropertiesArgs
- Description string
- User readable description of the network.
- Description string
- User readable description of the network.
- description String
- User readable description of the network.
- description string
- User readable description of the network.
- description str
- User readable description of the network.
- description String
- User readable description of the network.
NetworkResourcePropertiesResponse, NetworkResourcePropertiesResponseArgs
- Provisioning
State string - State of the resource.
- Status string
- Status of the network.
- Status
Details string - Gives additional information about the current status of the network.
- Description string
- User readable description of the network.
- Provisioning
State string - State of the resource.
- Status string
- Status of the network.
- Status
Details string - Gives additional information about the current status of the network.
- Description string
- User readable description of the network.
- provisioning
State String - State of the resource.
- status String
- Status of the network.
- status
Details String - Gives additional information about the current status of the network.
- description String
- User readable description of the network.
- provisioning
State string - State of the resource.
- status string
- Status of the network.
- status
Details string - Gives additional information about the current status of the network.
- description string
- User readable description of the network.
- provisioning_
state str - State of the resource.
- status str
- Status of the network.
- status_
details str - Gives additional information about the current status of the network.
- description str
- User readable description of the network.
- provisioning
State String - State of the resource.
- status String
- Status of the network.
- status
Details String - Gives additional information about the current status of the network.
- description String
- User readable description of the network.
Import
An existing resource can be imported using its type token, name, and identifier, e.g.
$ pulumi import azure-native:servicefabricmesh:Network sampleNetwork /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ServiceFabricMesh/networks/{networkResourceName}
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Azure Native pulumi/pulumi-azure-native
- License
- Apache-2.0