Using the gcloud CLI for Connectivity Tests

gcloud is a unified command-line tool that is part of the Google Cloud CLI. When you run gcloud commands for Connectivity Tests, you perform operations on the ConnectivityTest resource that is part of the Network Management API.

For more information about the Network Management API, see the API reference.

gcloud commands

You can use gcloud to run the following commands for Connectivity Tests. For more information, see the SDK overview for Connectivity Tests.

Command Task
gcloud network-management connectivity-tests list Lists Connectivity Tests for a project
gcloud network-management connectivity-tests create Creates and runs a Connectivity Test
gcloud network-management connectivity-tests rerun Reruns a Connectivity Test
gcloud network-management connectivity-tests describe Lists test results for a running or completed Connectivity Test
gcloud network-management connectivity-tests update Updates options for an existing Connectivity Test
gcloud network-management connectivity-tests delete Deletes a Connectivity Test

For command-line examples, see the following pages: