public sealed class ConnectivityTest : IMessage<ConnectivityTest>, IEquatable<ConnectivityTest>, IDeepCloneable<ConnectivityTest>, IBufferMessage, IMessage
Reference documentation and code samples for the Network Management v1 API class ConnectivityTest.
A Connectivity Test for a network reachability analysis.
Required. Destination specification of the Connectivity Test.
You can use a combination of destination IP address, URI of a supported
endpoint, project ID, or VPC network to identify the destination location.
Reachability analysis proceeds even if the destination location is
ambiguous. However, the test result might include endpoints or use a
destination that you don't intend to test.
public ProbingDetails ProbingDetails { get; set; }
Output only. The probing details of this test from the latest run, present
for applicable tests only. The details are updated when creating a new
test, updating an existing test, or triggering a one-time rerun of an
existing test.
public ReachabilityDetails ReachabilityDetails { get; set; }
Output only. The reachability details of this test from the latest run.
The details are updated when creating a new test, updating an
existing test, or triggering a one-time rerun of an existing test.
public ReachabilityDetails ReturnReachabilityDetails { get; set; }
Output only. The reachability details of this test from the latest run for
the return path. The details are updated when creating a new test,
updating an existing test, or triggering a one-time rerun of an existing
test.
Required. Source specification of the Connectivity Test.
You can use a combination of source IP address, URI of a supported
endpoint, project ID, or VPC network to identify the source location.
Reachability analysis might proceed even if the source location is
ambiguous. However, the test result might include endpoints or use a source
that you don't intend to test.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-28 UTC."],[[["\u003cp\u003eThe latest version of the \u003ccode\u003eConnectivityTest\u003c/code\u003e class for the Network Management v1 API is 2.13.0, with multiple previous versions available, ranging from 1.0.0 to 2.12.0.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eConnectivityTest\u003c/code\u003e is used for network reachability analysis and is part of the \u003ccode\u003eGoogle.Cloud.NetworkManagement.V1\u003c/code\u003e namespace.\u003c/p\u003e\n"],["\u003cp\u003eThe class includes properties for specifying the source and destination endpoints of the test, the protocol, and whether to bypass firewall checks.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eConnectivityTest\u003c/code\u003e provides output details such as probing details, reachability details, creation time, and update time.\u003c/p\u003e\n"],["\u003cp\u003eThe class can run analysis on the return path with a \u003ccode\u003eRoundTrip\u003c/code\u003e property, and the \u003ccode\u003eRelatedProjects\u003c/code\u003e property is used to set other relevant projects for analysis.\u003c/p\u003e\n"]]],[],null,["# Network Management v1 API - Class ConnectivityTest (2.15.0)\n\nVersion latestkeyboard_arrow_down\n\n- [2.15.0 (latest)](/dotnet/docs/reference/Google.Cloud.NetworkManagement.V1/latest/Google.Cloud.NetworkManagement.V1.ConnectivityTest)\n- [2.14.0](/dotnet/docs/reference/Google.Cloud.NetworkManagement.V1/2.14.0/Google.Cloud.NetworkManagement.V1.ConnectivityTest)\n- [2.13.0](/dotnet/docs/reference/Google.Cloud.NetworkManagement.V1/2.13.0/Google.Cloud.NetworkManagement.V1.ConnectivityTest)\n- [2.12.0](/dotnet/docs/reference/Google.Cloud.NetworkManagement.V1/2.12.0/Google.Cloud.NetworkManagement.V1.ConnectivityTest)\n- [2.11.0](/dotnet/docs/reference/Google.Cloud.NetworkManagement.V1/2.11.0/Google.Cloud.NetworkManagement.V1.ConnectivityTest)\n- [2.10.0](/dotnet/docs/reference/Google.Cloud.NetworkManagement.V1/2.10.0/Google.Cloud.NetworkManagement.V1.ConnectivityTest)\n- [2.9.0](/dotnet/docs/reference/Google.Cloud.NetworkManagement.V1/2.9.0/Google.Cloud.NetworkManagement.V1.ConnectivityTest)\n- [2.8.0](/dotnet/docs/reference/Google.Cloud.NetworkManagement.V1/2.8.0/Google.Cloud.NetworkManagement.V1.ConnectivityTest)\n- [2.7.0](/dotnet/docs/reference/Google.Cloud.NetworkManagement.V1/2.7.0/Google.Cloud.NetworkManagement.V1.ConnectivityTest)\n- [2.6.0](/dotnet/docs/reference/Google.Cloud.NetworkManagement.V1/2.6.0/Google.Cloud.NetworkManagement.V1.ConnectivityTest)\n- [2.5.0](/dotnet/docs/reference/Google.Cloud.NetworkManagement.V1/2.5.0/Google.Cloud.NetworkManagement.V1.ConnectivityTest)\n- [2.4.0](/dotnet/docs/reference/Google.Cloud.NetworkManagement.V1/2.4.0/Google.Cloud.NetworkManagement.V1.ConnectivityTest)\n- [2.3.0](/dotnet/docs/reference/Google.Cloud.NetworkManagement.V1/2.3.0/Google.Cloud.NetworkManagement.V1.ConnectivityTest)\n- [2.2.0](/dotnet/docs/reference/Google.Cloud.NetworkManagement.V1/2.2.0/Google.Cloud.NetworkManagement.V1.ConnectivityTest)\n- [2.1.0](/dotnet/docs/reference/Google.Cloud.NetworkManagement.V1/2.1.0/Google.Cloud.NetworkManagement.V1.ConnectivityTest)\n- [2.0.0](/dotnet/docs/reference/Google.Cloud.NetworkManagement.V1/2.0.0/Google.Cloud.NetworkManagement.V1.ConnectivityTest)\n- [1.1.0](/dotnet/docs/reference/Google.Cloud.NetworkManagement.V1/1.1.0/Google.Cloud.NetworkManagement.V1.ConnectivityTest)\n- [1.0.0](/dotnet/docs/reference/Google.Cloud.NetworkManagement.V1/1.0.0/Google.Cloud.NetworkManagement.V1.ConnectivityTest) \n\n public sealed class ConnectivityTest : IMessage\u003cConnectivityTest\u003e, IEquatable\u003cConnectivityTest\u003e, IDeepCloneable\u003cConnectivityTest\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the Network Management v1 API class ConnectivityTest.\n\nA Connectivity Test for a network reachability analysis. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e ConnectivityTest \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[ConnectivityTest](/dotnet/docs/reference/Google.Cloud.NetworkManagement.V1/latest/Google.Cloud.NetworkManagement.V1.ConnectivityTest), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[ConnectivityTest](/dotnet/docs/reference/Google.Cloud.NetworkManagement.V1/latest/Google.Cloud.NetworkManagement.V1.ConnectivityTest), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[ConnectivityTest](/dotnet/docs/reference/Google.Cloud.NetworkManagement.V1/latest/Google.Cloud.NetworkManagement.V1.ConnectivityTest), [IBufferMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IBufferMessage.html), [IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage.html) \n\nInherited Members\n-----------------\n\n[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) \n[object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) \n[object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)\n\nNamespace\n---------\n\n[Google.Cloud.NetworkManagement.V1](/dotnet/docs/reference/Google.Cloud.NetworkManagement.V1/latest/Google.Cloud.NetworkManagement.V1)\n\nAssembly\n--------\n\nGoogle.Cloud.NetworkManagement.V1.dll\n\nConstructors\n------------\n\n### ConnectivityTest()\n\n public ConnectivityTest()\n\n### ConnectivityTest(ConnectivityTest)\n\n public ConnectivityTest(ConnectivityTest other)\n\nProperties\n----------\n\n### BypassFirewallChecks\n\n public bool BypassFirewallChecks { get; set; }\n\nWhether the analysis should skip firewall checking. Default value is false.\n\n### ConnectivityTestName\n\n public ConnectivityTestName ConnectivityTestName { get; set; }\n\n[ConnectivityTestName](/dotnet/docs/reference/Google.Cloud.NetworkManagement.V1/latest/Google.Cloud.NetworkManagement.V1.ConnectivityTestName)-typed view over the [Name](/dotnet/docs/reference/Google.Cloud.NetworkManagement.V1/latest/Google.Cloud.NetworkManagement.V1.ConnectivityTest#Google_Cloud_NetworkManagement_V1_ConnectivityTest_Name) resource name property.\n\n### CreateTime\n\n public Timestamp CreateTime { get; set; }\n\nOutput only. The time the test was created.\n\n### Description\n\n public string Description { get; set; }\n\nThe user-supplied description of the Connectivity Test.\nMaximum of 512 characters.\n\n### Destination\n\n public Endpoint Destination { get; set; }\n\nRequired. Destination specification of the Connectivity Test.\n\nYou can use a combination of destination IP address, URI of a supported\nendpoint, project ID, or VPC network to identify the destination location.\n\nReachability analysis proceeds even if the destination location is\nambiguous. However, the test result might include endpoints or use a\ndestination that you don't intend to test.\n\n### DisplayName\n\n public string DisplayName { get; set; }\n\nOutput only. The display name of a Connectivity Test.\n\n### Labels\n\n public MapField\u003cstring, string\u003e Labels { get; }\n\nResource labels to represent user-provided metadata.\n\n### Name\n\n public string Name { get; set; }\n\nIdentifier. Unique name of the resource using the form:\n`projects/{project_id}/locations/global/connectivityTests/{test_id}`\n\n### ProbingDetails\n\n public ProbingDetails ProbingDetails { get; set; }\n\nOutput only. The probing details of this test from the latest run, present\nfor applicable tests only. The details are updated when creating a new\ntest, updating an existing test, or triggering a one-time rerun of an\nexisting test.\n\n### Protocol\n\n public string Protocol { get; set; }\n\nIP Protocol of the test. When not provided, \"TCP\" is assumed.\n\n### ReachabilityDetails\n\n public ReachabilityDetails ReachabilityDetails { get; set; }\n\nOutput only. The reachability details of this test from the latest run.\nThe details are updated when creating a new test, updating an\nexisting test, or triggering a one-time rerun of an existing test.\n\n### RelatedProjects\n\n public RepeatedField\u003cstring\u003e RelatedProjects { get; }\n\nOther projects that may be relevant for reachability analysis.\nThis is applicable to scenarios where a test can cross project boundaries.\n\n### ReturnReachabilityDetails\n\n public ReachabilityDetails ReturnReachabilityDetails { get; set; }\n\nOutput only. The reachability details of this test from the latest run for\nthe return path. The details are updated when creating a new test,\nupdating an existing test, or triggering a one-time rerun of an existing\ntest.\n\n### RoundTrip\n\n public bool RoundTrip { get; set; }\n\nWhether run analysis for the return path from destination to source.\nDefault value is false.\n\n### Source\n\n public Endpoint Source { get; set; }\n\nRequired. Source specification of the Connectivity Test.\n\nYou can use a combination of source IP address, URI of a supported\nendpoint, project ID, or VPC network to identify the source location.\n\nReachability analysis might proceed even if the source location is\nambiguous. However, the test result might include endpoints or use a source\nthat you don't intend to test.\n\n### UpdateTime\n\n public Timestamp UpdateTime { get; set; }\n\nOutput only. The time the test's configuration was updated."]]