Cloud Services Network Args
data class CloudServicesNetworkArgs(val additionalEgressEndpoints: Output<List<EgressEndpointArgs>>? = null, val cloudServicesNetworkName: Output<String>? = null, val enableDefaultEgressEndpoints: Output<Either<String, CloudServicesNetworkEnableDefaultEgressEndpoints>>? = null, val extendedLocation: Output<ExtendedLocationArgs>? = null, val location: Output<String>? = null, val resourceGroupName: Output<String>? = null, val tags: Output<Map<String, String>>? = null) : ConvertibleToJava<CloudServicesNetworkArgs>
Upon creation, the additional services that are provided by the platform will be allocated and represented in the status of this resource. All resources associated with this cloud services network will be part of the same layer 2 (L2) isolation domain. At least one service network must be created but may be reused across many virtual machines and/or Hybrid AKS clusters. Azure REST API version: 2023-05-01-preview. Prior API version in Azure Native 1.x: 2022-12-12-preview. Other available API versions: 2023-07-01.
Example Usage
Create or update cloud services network
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var cloudServicesNetwork = new AzureNative.NetworkCloud.CloudServicesNetwork("cloudServicesNetwork", new()
{
AdditionalEgressEndpoints = new[]
{
new AzureNative.NetworkCloud.Inputs.EgressEndpointArgs
{
Category = "azure-resource-management",
Endpoints = new[]
{
new AzureNative.NetworkCloud.Inputs.EndpointDependencyArgs
{
DomainName = "https://storageaccountex.blob.core.windows.net",
Port = 443,
},
},
},
},
CloudServicesNetworkName = "cloudServicesNetworkName",
EnableDefaultEgressEndpoints = "False",
ExtendedLocation = new AzureNative.NetworkCloud.Inputs.ExtendedLocationArgs
{
Name = "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.ExtendedLocation/customLocations/clusterExtendedLocationName",
Type = "CustomLocation",
},
Location = "location",
ResourceGroupName = "resourceGroupName",
Tags =
{
{ "key1", "myvalue1" },
{ "key2", "myvalue2" },
},
});
});
Content copied to clipboard
package main
import (
"github.com/pulumi/pulumi-azure-native-sdk/networkcloud/v2"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := networkcloud.NewCloudServicesNetwork(ctx, "cloudServicesNetwork", &networkcloud.CloudServicesNetworkArgs{
AdditionalEgressEndpoints: []networkcloud.EgressEndpointArgs{
{
Category: pulumi.String("azure-resource-management"),
Endpoints: networkcloud.EndpointDependencyArray{
{
DomainName: pulumi.String("https://storageaccountex.blob.core.windows.net"),
Port: pulumi.Float64(443),
},
},
},
},
CloudServicesNetworkName: pulumi.String("cloudServicesNetworkName"),
EnableDefaultEgressEndpoints: pulumi.String("False"),
ExtendedLocation: &networkcloud.ExtendedLocationArgs{
Name: pulumi.String("/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.ExtendedLocation/customLocations/clusterExtendedLocationName"),
Type: pulumi.String("CustomLocation"),
},
Location: pulumi.String("location"),
ResourceGroupName: pulumi.String("resourceGroupName"),
Tags: pulumi.StringMap{
"key1": pulumi.String("myvalue1"),
"key2": pulumi.String("myvalue2"),
},
})
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.networkcloud.CloudServicesNetwork;
import com.pulumi.azurenative.networkcloud.CloudServicesNetworkArgs;
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 cloudServicesNetwork = new CloudServicesNetwork("cloudServicesNetwork", CloudServicesNetworkArgs.builder()
.additionalEgressEndpoints(Map.ofEntries(
Map.entry("category", "azure-resource-management"),
Map.entry("endpoints", Map.ofEntries(
Map.entry("domainName", "https://storageaccountex.blob.core.windows.net"),
Map.entry("port", 443)
))
))
.cloudServicesNetworkName("cloudServicesNetworkName")
.enableDefaultEgressEndpoints("False")
.extendedLocation(Map.ofEntries(
Map.entry("name", "/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.ExtendedLocation/customLocations/clusterExtendedLocationName"),
Map.entry("type", "CustomLocation")
))
.location("location")
.resourceGroupName("resourceGroupName")
.tags(Map.ofEntries(
Map.entry("key1", "myvalue1"),
Map.entry("key2", "myvalue2")
))
.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:networkcloud:CloudServicesNetwork cloudServicesNetworkName /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/cloudServicesNetworks/{cloudServicesNetworkName}
Content copied to clipboard
Constructors
Link copied to clipboard
fun CloudServicesNetworkArgs(additionalEgressEndpoints: Output<List<EgressEndpointArgs>>? = null, cloudServicesNetworkName: Output<String>? = null, enableDefaultEgressEndpoints: Output<Either<String, CloudServicesNetworkEnableDefaultEgressEndpoints>>? = null, extendedLocation: Output<ExtendedLocationArgs>? = null, location: Output<String>? = null, resourceGroupName: Output<String>? = null, tags: Output<Map<String, String>>? = null)
Functions
Properties
Link copied to clipboard
Link copied to clipboard
val enableDefaultEgressEndpoints: Output<Either<String, CloudServicesNetworkEnableDefaultEgressEndpoints>>? = null