Class CloudServicesNetwork
- java.lang.Object
-
- com.pulumi.resources.Resource
-
- com.pulumi.resources.CustomResource
-
- com.pulumi.azurenative.networkcloud.CloudServicesNetwork
-
public class CloudServicesNetwork extends com.pulumi.resources.CustomResource
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-10-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 ```java 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 com.pulumi.azurenative.networkcloud.inputs.EgressEndpointArgs; import com.pulumi.azurenative.networkcloud.inputs.ExtendedLocationArgs; 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(EgressEndpointArgs.builder() .category("azure-resource-management") .endpoints(EndpointDependencyArgs.builder() .domainName("https://storageaccountex.blob.core.windows.net") .port(443) .build()) .build()) .cloudServicesNetworkName("cloudServicesNetworkName") .enableDefaultEgressEndpoints("False") .extendedLocation(ExtendedLocationArgs.builder() .name("/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.ExtendedLocation/customLocations/clusterExtendedLocationName") .type("CustomLocation") .build()) .location("location") .resourceGroupName("resourceGroupName") .tags(Map.ofEntries( Map.entry("key1", "myvalue1"), Map.entry("key2", "myvalue2") )) .build()); } } ``` ## Import An existing resource can be imported using its type token, name, and identifier, e.g. ```sh $ pulumi import azure-native:networkcloud:CloudServicesNetwork cloudServicesNetworkName /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/cloudServicesNetworks/{cloudServicesNetworkName} ```
-
-
Constructor Summary
Constructors Constructor Description CloudServicesNetwork(java.lang.String name)
CloudServicesNetwork(java.lang.String name, CloudServicesNetworkArgs args)
CloudServicesNetwork(java.lang.String name, CloudServicesNetworkArgs args, com.pulumi.resources.CustomResourceOptions options)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description com.pulumi.core.Output<java.util.Optional<java.util.List<EgressEndpointResponse>>>
additionalEgressEndpoints()
com.pulumi.core.Output<java.util.List<java.lang.String>>
associatedResourceIds()
com.pulumi.core.Output<java.lang.String>
clusterId()
com.pulumi.core.Output<java.lang.String>
detailedStatus()
com.pulumi.core.Output<java.lang.String>
detailedStatusMessage()
com.pulumi.core.Output<java.util.Optional<java.lang.String>>
enableDefaultEgressEndpoints()
com.pulumi.core.Output<java.util.List<EgressEndpointResponse>>
enabledEgressEndpoints()
com.pulumi.core.Output<ExtendedLocationResponse>
extendedLocation()
static CloudServicesNetwork
get(java.lang.String name, com.pulumi.core.Output<java.lang.String> id, com.pulumi.resources.CustomResourceOptions options)
Get an existing Host resource's state with the given name, ID, and optional extra properties used to qualify the lookup.com.pulumi.core.Output<java.util.List<java.lang.String>>
hybridAksClustersAssociatedIds()
com.pulumi.core.Output<java.lang.String>
interfaceName()
com.pulumi.core.Output<java.lang.String>
location()
com.pulumi.core.Output<java.lang.String>
name()
com.pulumi.core.Output<java.lang.String>
provisioningState()
com.pulumi.core.Output<SystemDataResponse>
systemData()
com.pulumi.core.Output<java.util.Optional<java.util.Map<java.lang.String,java.lang.String>>>
tags()
com.pulumi.core.Output<java.lang.String>
type()
com.pulumi.core.Output<java.util.List<java.lang.String>>
virtualMachinesAssociatedIds()
-
-
-
Constructor Detail
-
CloudServicesNetwork
public CloudServicesNetwork(java.lang.String name)
- Parameters:
name
- The _unique_ name of the resulting resource.
-
CloudServicesNetwork
public CloudServicesNetwork(java.lang.String name, CloudServicesNetworkArgs args)
- Parameters:
name
- The _unique_ name of the resulting resource.args
- The arguments to use to populate this resource's properties.
-
CloudServicesNetwork
public CloudServicesNetwork(java.lang.String name, CloudServicesNetworkArgs args, @Nullable com.pulumi.resources.CustomResourceOptions options)
- Parameters:
name
- The _unique_ name of the resulting resource.args
- The arguments to use to populate this resource's properties.options
- A bag of options that control this resource's behavior.
-
-
Method Detail
-
additionalEgressEndpoints
public com.pulumi.core.Output<java.util.Optional<java.util.List<EgressEndpointResponse>>> additionalEgressEndpoints()
- Returns:
- The list of egress endpoints. This allows for connection from a Hybrid AKS cluster to the specified endpoint.
-
associatedResourceIds
public com.pulumi.core.Output<java.util.List<java.lang.String>> associatedResourceIds()
- Returns:
- The list of resource IDs for the other Microsoft.NetworkCloud resources that have attached this network.
-
clusterId
public com.pulumi.core.Output<java.lang.String> clusterId()
- Returns:
- The resource ID of the Network Cloud cluster this cloud services network is associated with.
-
detailedStatus
public com.pulumi.core.Output<java.lang.String> detailedStatus()
- Returns:
- The more detailed status of the cloud services network.
-
detailedStatusMessage
public com.pulumi.core.Output<java.lang.String> detailedStatusMessage()
- Returns:
- The descriptive message about the current detailed status.
-
enableDefaultEgressEndpoints
public com.pulumi.core.Output<java.util.Optional<java.lang.String>> enableDefaultEgressEndpoints()
- Returns:
- The indicator of whether the platform default endpoints are allowed for the egress traffic.
-
enabledEgressEndpoints
public com.pulumi.core.Output<java.util.List<EgressEndpointResponse>> enabledEgressEndpoints()
- Returns:
- The full list of additional and default egress endpoints that are currently enabled.
-
extendedLocation
public com.pulumi.core.Output<ExtendedLocationResponse> extendedLocation()
- Returns:
- The extended location of the cluster associated with the resource.
-
hybridAksClustersAssociatedIds
public com.pulumi.core.Output<java.util.List<java.lang.String>> hybridAksClustersAssociatedIds()
- Returns:
- Field Deprecated. These fields will be empty/omitted. The list of Hybrid AKS cluster resource IDs that are associated with this cloud services network.
-
interfaceName
public com.pulumi.core.Output<java.lang.String> interfaceName()
- Returns:
- The name of the interface that will be present in the virtual machine to represent this network.
-
location
public com.pulumi.core.Output<java.lang.String> location()
- Returns:
- The geo-location where the resource lives
-
name
public com.pulumi.core.Output<java.lang.String> name()
- Returns:
- The name of the resource
-
provisioningState
public com.pulumi.core.Output<java.lang.String> provisioningState()
- Returns:
- The provisioning state of the cloud services network.
-
systemData
public com.pulumi.core.Output<SystemDataResponse> systemData()
- Returns:
- Azure Resource Manager metadata containing createdBy and modifiedBy information.
-
tags
public com.pulumi.core.Output<java.util.Optional<java.util.Map<java.lang.String,java.lang.String>>> tags()
- Returns:
- Resource tags.
-
type
public com.pulumi.core.Output<java.lang.String> type()
- Returns:
- The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"
-
virtualMachinesAssociatedIds
public com.pulumi.core.Output<java.util.List<java.lang.String>> virtualMachinesAssociatedIds()
- Returns:
- Field Deprecated. These fields will be empty/omitted. The list of virtual machine resource IDs, excluding any Hybrid AKS virtual machines, that are currently using this cloud services network.
-
get
public static CloudServicesNetwork get(java.lang.String name, com.pulumi.core.Output<java.lang.String> id, @Nullable com.pulumi.resources.CustomResourceOptions options)
Get an existing Host resource's state with the given name, ID, and optional extra properties used to qualify the lookup.- Parameters:
name
- The _unique_ name of the resulting resource.id
- The _unique_ provider ID of the resource to lookup.options
- Optional settings to control the behavior of the CustomResource.
-
-