Class L2Network
- java.lang.Object
-
- com.pulumi.resources.Resource
-
- com.pulumi.resources.CustomResource
-
- com.pulumi.azurenative.networkcloud.L2Network
-
public class L2Network extends com.pulumi.resources.CustomResource
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 L2 network ```java package generated_program; import com.pulumi.Context; import com.pulumi.Pulumi; import com.pulumi.core.Output; import com.pulumi.azurenative.networkcloud.L2Network; import com.pulumi.azurenative.networkcloud.L2NetworkArgs; 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 l2Network = new L2Network("l2Network", L2NetworkArgs.builder() .extendedLocation(ExtendedLocationArgs.builder() .name("/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.ExtendedLocation/customLocations/clusterExtendedLocationName") .type("CustomLocation") .build()) .hybridAksPluginType("DPDK") .interfaceName("eth0") .l2IsolationDomainId("/subscriptions/123e4567-e89b-12d3-a456-426655440000/resourceGroups/resourceGroupName/providers/Microsoft.ManagedNetworkFabric/l2IsolationDomains/l2IsolationDomainName") .l2NetworkName("l2NetworkName") .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:L2Network l2NetworkName /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetworkCloud/l2Networks/{l2NetworkName} ```
-
-
Constructor Summary
Constructors Constructor Description L2Network(java.lang.String name)
L2Network(java.lang.String name, L2NetworkArgs args)
L2Network(java.lang.String name, L2NetworkArgs 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.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<ExtendedLocationResponse>
extendedLocation()
static L2Network
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.util.Optional<java.lang.String>>
hybridAksPluginType()
com.pulumi.core.Output<java.util.Optional<java.lang.String>>
interfaceName()
com.pulumi.core.Output<java.lang.String>
l2IsolationDomainId()
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
-
L2Network
public L2Network(java.lang.String name)
- Parameters:
name
- The _unique_ name of the resulting resource.
-
L2Network
public L2Network(java.lang.String name, L2NetworkArgs args)
- Parameters:
name
- The _unique_ name of the resulting resource.args
- The arguments to use to populate this resource's properties.
-
L2Network
public L2Network(java.lang.String name, L2NetworkArgs 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
-
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 L2 network is associated with.
-
detailedStatus
public com.pulumi.core.Output<java.lang.String> detailedStatus()
- Returns:
- The more detailed status of the L2 network.
-
detailedStatusMessage
public com.pulumi.core.Output<java.lang.String> detailedStatusMessage()
- Returns:
- The descriptive message about the current detailed status.
-
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 ID(s) that are associated with this L2 network.
-
hybridAksPluginType
public com.pulumi.core.Output<java.util.Optional<java.lang.String>> hybridAksPluginType()
- Returns:
- Field Deprecated. The field was previously optional, now it will have no defined behavior and will be ignored. The network plugin type for Hybrid AKS.
-
interfaceName
public com.pulumi.core.Output<java.util.Optional<java.lang.String>> interfaceName()
- Returns:
- The default interface name for this L2 network in the virtual machine. This name can be overridden by the name supplied in the network attachment configuration of that virtual machine.
-
l2IsolationDomainId
public com.pulumi.core.Output<java.lang.String> l2IsolationDomainId()
- Returns:
- The resource ID of the Network Fabric l2IsolationDomain.
-
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 L2 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 ID(s), excluding any Hybrid AKS virtual machines, that are currently using this L2 network.
-
get
public static L2Network 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.
-
-