ArmNetworkModelFactory.ConnectionAnalyzerEndpoint Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Describes a source or destination endpoint of a connection analyzer.
The schema is intentionally permissive (a flat object) because the set of
valid fields is determined by type and is enforced server-side by the
Network Resource Provider. The required and allowed fields per type are:
- `VM`, `VMSS`, `BastionHost`, `ApplicationGateway`: `resourceId` is
- `ExternalAddress`: `address` is required and must be an IP address or
public static Azure.ResourceManager.Network.Models.ConnectionAnalyzerEndpoint ConnectionAnalyzerEndpoint(Azure.ResourceManager.Network.Models.ConnectionAnalyzerEndpointType type = default, Azure.Core.ResourceIdentifier resourceId = default, string address = default, int? port = default);
static member ConnectionAnalyzerEndpoint : Azure.ResourceManager.Network.Models.ConnectionAnalyzerEndpointType * Azure.Core.ResourceIdentifier * string * Nullable<int> -> Azure.ResourceManager.Network.Models.ConnectionAnalyzerEndpoint
Public Shared Function ConnectionAnalyzerEndpoint (Optional type As ConnectionAnalyzerEndpointType = Nothing, Optional resourceId As ResourceIdentifier = Nothing, Optional address As String = Nothing, Optional port As Nullable(Of Integer) = Nothing) As ConnectionAnalyzerEndpoint
Parameters
The type of the endpoint. Determines which of resourceId and address
are required; see the model-level documentation for the per-type contract.
- resourceId
- ResourceIdentifier
ARM resource ID of the endpoint resource. Required when type is VM,
VMSS, BastionHost, or ApplicationGateway. Not used when type is
ExternalAddress.
- address
- String
IP address or FQDN of the endpoint. Required when type is
ExternalAddress. Not used for the resource-typed endpoint kinds (VM,
VMSS, BastionHost, ApplicationGateway).
Returns
A new ConnectionAnalyzerEndpoint instance for mocking.