ReachabilityAnalysisIntent

class ReachabilityAnalysisIntent : KotlinCustomResource

Configuration information or intent on which to do the analysis on. Uses Azure REST API version 2024-05-01. In version 2.x of the Azure Native provider, it used API version 2024-01-01-preview. Other available API versions: 2024-01-01-preview. These can be accessed by generating a local SDK package using the CLI command pulumi package add azure-native network [ApiVersion]. See the ../../../version-guide/#accessing-any-api-version-via-local-packages for details.

Example Usage

ReachabilityAnalysisIntentCreate

using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var reachabilityAnalysisIntent = new AzureNative.Network.ReachabilityAnalysisIntent("reachabilityAnalysisIntent", new()
{
NetworkManagerName = "testNetworkManager",
Properties = new AzureNative.Network.Inputs.ReachabilityAnalysisIntentPropertiesArgs
{
Description = "A sample reachability analysis intent",
DestinationResourceId = "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Compute/virtualMachines/testVmDest",
IpTraffic = new AzureNative.Network.Inputs.IPTrafficArgs
{
DestinationIps = new[]
{
"10.4.0.1",
},
DestinationPorts = new[]
{
"0",
},
Protocols = new[]
{
AzureNative.Network.NetworkProtocol.Any,
},
SourceIps = new[]
{
"10.4.0.0",
},
SourcePorts = new[]
{
"0",
},
},
SourceResourceId = "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Compute/virtualMachines/testVmSrc",
},
ReachabilityAnalysisIntentName = "testAnalysisIntentName",
ResourceGroupName = "rg1",
WorkspaceName = "testWorkspace",
});
});
package main
import (
network "github.com/pulumi/pulumi-azure-native-sdk/network/v2"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := network.NewReachabilityAnalysisIntent(ctx, "reachabilityAnalysisIntent", &network.ReachabilityAnalysisIntentArgs{
NetworkManagerName: pulumi.String("testNetworkManager"),
Properties: &network.ReachabilityAnalysisIntentPropertiesArgs{
Description: pulumi.String("A sample reachability analysis intent"),
DestinationResourceId: pulumi.String("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Compute/virtualMachines/testVmDest"),
IpTraffic: &network.IPTrafficArgs{
DestinationIps: pulumi.StringArray{
pulumi.String("10.4.0.1"),
},
DestinationPorts: pulumi.StringArray{
pulumi.String("0"),
},
Protocols: pulumi.StringArray{
pulumi.String(network.NetworkProtocolAny),
},
SourceIps: pulumi.StringArray{
pulumi.String("10.4.0.0"),
},
SourcePorts: pulumi.StringArray{
pulumi.String("0"),
},
},
SourceResourceId: pulumi.String("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Compute/virtualMachines/testVmSrc"),
},
ReachabilityAnalysisIntentName: pulumi.String("testAnalysisIntentName"),
ResourceGroupName: pulumi.String("rg1"),
WorkspaceName: pulumi.String("testWorkspace"),
})
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.network.ReachabilityAnalysisIntent;
import com.pulumi.azurenative.network.ReachabilityAnalysisIntentArgs;
import com.pulumi.azurenative.network.inputs.ReachabilityAnalysisIntentPropertiesArgs;
import com.pulumi.azurenative.network.inputs.IPTrafficArgs;
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 reachabilityAnalysisIntent = new ReachabilityAnalysisIntent("reachabilityAnalysisIntent", ReachabilityAnalysisIntentArgs.builder()
.networkManagerName("testNetworkManager")
.properties(ReachabilityAnalysisIntentPropertiesArgs.builder()
.description("A sample reachability analysis intent")
.destinationResourceId("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Compute/virtualMachines/testVmDest")
.ipTraffic(IPTrafficArgs.builder()
.destinationIps("10.4.0.1")
.destinationPorts("0")
.protocols("Any")
.sourceIps("10.4.0.0")
.sourcePorts("0")
.build())
.sourceResourceId("/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Compute/virtualMachines/testVmSrc")
.build())
.reachabilityAnalysisIntentName("testAnalysisIntentName")
.resourceGroupName("rg1")
.workspaceName("testWorkspace")
.build());
}
}

Import

An existing resource can be imported using its type token, name, and identifier, e.g.

$ pulumi import azure-native:network:ReachabilityAnalysisIntent testAnalysisIntentName /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/networkManagers/{networkManagerName}/verifierWorkspaces/{workspaceName}/reachabilityAnalysisIntents/{reachabilityAnalysisIntentName}

Properties

Link copied to clipboard
val azureApiVersion: Output<String>

The Azure API version of the resource.

Link copied to clipboard
val id: Output<String>
Link copied to clipboard
val name: Output<String>

The name of the resource

Link copied to clipboard

Represents the Reachability Analysis Intent properties.

Link copied to clipboard
val pulumiChildResources: Set<KotlinResource>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Azure Resource Manager metadata containing createdBy and modifiedBy information.

Link copied to clipboard
val type: Output<String>

The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts"

Link copied to clipboard
val urn: Output<String>