Mit Sammlungen den Überblick behalten
Sie können Inhalte basierend auf Ihren Einstellungen speichern und kategorisieren.
Wenn Sie eine Verbindung von einem VPC-Spoke (Virtual Private Cloud) zu einem Hub vorschlagen, ist der Spoke erst einsatzbereit, wenn der Hub-Administrator den Spoke annimmt. Auf dieser Seite wird beschrieben, wie Sie den Status eines Spoke prüfen können, nachdem Sie ihn vorgeschlagen haben.
Hinweise
Lesen Sie zuerst die folgenden Abschnitte, bevor Sie beginnen.
Projekt erstellen oder auswählen
Geben Sie ein gültiges Projekt an, um die Konfiguration des Network Connectivity Centers zu vereinfachen.
Sign in to your Google Cloud account. If you're new to
Google Cloud,
create an account to evaluate how our products perform in
real-world scenarios. New customers also get $300 in free credits to
run, test, and deploy workloads.
In the Google Cloud console, on the project selector page,
select or create a Google Cloud project.
Zum Ausführen dieser Aufgabe müssen Sie die folgenden Berechtigungen oder die folgenden IAM-Rollen haben.
Berechtigungen
networkconnectivity.spokes.get
Rollen (eine der folgenden)
roles/networkconnectivity.hubAdmin
roles/networkconnectivity.spokeAdmin
roles/networkconnectivity.hubViewer
Spoke-Status
In der folgenden Tabelle werden die verschiedenen Status beschrieben, in denen sich ein Spoke befinden kann, nachdem er dem Hub-Administrator vorgeschlagen wurde.
Spoke-Status
Statusgrund
Beschreibung
ACTIVE
Das Feld reasons ist leer.
Dies bedeutet, dass der Hub-Administrator den Spoke akzeptiert hat und der Spoke voll einsatzbereit ist.
INACTIVE
PENDING_REVIEW
Dies bedeutet, dass der Spoke nicht einsatzbereit ist und der Hub-Administrator den Spoke noch nicht akzeptiert oder abgelehnt hat.
INACTIVE
REJECTED
Dies bedeutet, dass der Spoke nicht einsatzbereit ist, da der Hub-Administrator den Spoke abgelehnt hat.
OBSOLETE
Das Feld reasons ist leer.
Das bedeutet, dass der Hub gelöscht wurde. Wenn dieser Status erreicht ist, ändert er sich nie mehr und der Spoke kann nur gelöscht werden.
Status eines Spoke-Vorschlags abrufen
Führen Sie die folgenden Schritte aus, um den Status eines Spoke abzurufen, den Sie in einem anderen Projekt als dem Hub vorgeschlagen haben.
[[["Leicht verständlich","easyToUnderstand","thumb-up"],["Mein Problem wurde gelöst","solvedMyProblem","thumb-up"],["Sonstiges","otherUp","thumb-up"]],[["Schwer verständlich","hardToUnderstand","thumb-down"],["Informationen oder Beispielcode falsch","incorrectInformationOrSampleCode","thumb-down"],["Benötigte Informationen/Beispiele nicht gefunden","missingTheInformationSamplesINeed","thumb-down"],["Problem mit der Übersetzung","translationIssue","thumb-down"],["Sonstiges","otherDown","thumb-down"]],["Zuletzt aktualisiert: 2025-08-28 (UTC)."],[],[],null,["# Check the status of a VPC spoke\n\nWhen you [propose a Virtual Private Cloud (VPC) spoke](/network-connectivity/docs/network-connectivity-center/how-to/vpc-propose-a-spoke)\nconnection to a hub, the spoke is not fully operational until the hub\nadministrator accepts the spoke. Similarly, when you propose updates to the\nproperties of an existing spoke, the updates aren't effective until the hub\nadministrator accepts the updates. This page describes\nhow you can check the status of a spoke after you have proposed a new spoke or\nupdates to an existing spoke.\n\nBefore you begin\n----------------\n\nBefore you get started, review the following sections.\n\n### Create or select a project\n\nTo make it easier to configure Network Connectivity Center, start by identifying a valid\nproject.\n\n- Sign in to your Google Cloud account. If you're new to Google Cloud, [create an account](https://console.cloud.google.com/freetrial) to evaluate how our products perform in real-world scenarios. New customers also get $300 in free credits to run, test, and deploy workloads.\n- In the Google Cloud console, on the project selector page,\n select or create a Google Cloud project.\n\n | **Note**: If you don't plan to keep the resources that you create in this procedure, create a project instead of selecting an existing project. After you finish these steps, you can delete the project, removing all resources associated with the project.\n\n [Go to project selector](https://console.cloud.google.com/projectselector2/home/dashboard)\n-\n [Verify that billing is enabled for your Google Cloud project](/billing/docs/how-to/verify-billing-enabled#confirm_billing_is_enabled_on_a_project).\n\n-\n [Install](/sdk/docs/install) the Google Cloud CLI.\n\n- If you're using an external identity provider (IdP), you must first\n [sign in to the gcloud CLI with your federated identity](/iam/docs/workforce-log-in-gcloud).\n\n-\n To [initialize](/sdk/docs/initializing) the gcloud CLI, run the following command:\n\n ```bash\n gcloud init\n ```\n\n- In the Google Cloud console, on the project selector page,\n select or create a Google Cloud project.\n\n | **Note**: If you don't plan to keep the resources that you create in this procedure, create a project instead of selecting an existing project. After you finish these steps, you can delete the project, removing all resources associated with the project.\n\n [Go to project selector](https://console.cloud.google.com/projectselector2/home/dashboard)\n-\n [Verify that billing is enabled for your Google Cloud project](/billing/docs/how-to/verify-billing-enabled#confirm_billing_is_enabled_on_a_project).\n\n-\n [Install](/sdk/docs/install) the Google Cloud CLI.\n\n- If you're using an external identity provider (IdP), you must first\n [sign in to the gcloud CLI with your federated identity](/iam/docs/workforce-log-in-gcloud).\n\n-\n To [initialize](/sdk/docs/initializing) the gcloud CLI, run the following command:\n\n ```bash\n gcloud init\n ```\n\n1. If you are using the Google Cloud CLI, set your project\n ID by using the\n [`gcloud config set` command](/sdk/gcloud/reference/config/set).\n\n ```\n gcloud config set project PROJECT_ID\n ```\n\n Replace \u003cvar translate=\"no\"\u003ePROJECT_ID\u003c/var\u003e with your unique project ID.\n\n The gcloud CLI instructions on this page assume that you have set your project ID.\n2. To confirm that you set the project ID correctly, use the\n [`gcloud config list` command](/sdk/gcloud/reference/config/list).\n\n ```\n gcloud config list --format='text(core.project)'\n ```\n\n### Enable the Network Connectivity API\n\nBefore you can perform *any* tasks using Network Connectivity Center, you must enable the\nNetwork Connectivity API. \n\n### Console\n\nTo enable the Network Connectivity API, do the following:\n\n1. In the Google Cloud console, go to the **Network Connectivity Center** page.\n\n [Go to Network Connectivity Center](https://console.cloud.google.com/hybrid/hubs/list)\n2. Click **Enable**.\n\nAlternatively, you can enable the API by\nusing the\n[Google Cloud console API Library](https://console.cloud.google.com/apis/library?project=_),\nas described in [Enabling APIs](/apis/docs/getting-started#enabling_apis).\n\n#### Permissions required for this task\n\nTo perform this task, you must have been granted the following permissions\n*or* the following IAM roles.\n\n**Permissions**\n\n- `networkconnectivity.spokes.get`\n\n**Roles** (one of the following)\n\n- `roles/networkconnectivity.hubAdmin`\n- `roles/networkconnectivity.spokeAdmin`\n- `roles/networkconnectivity.hubViewer`\n\nSpoke states\n------------\n\nThe following table describes the different states that a spoke might be in\nafter it is proposed to the hub administrator.\n\nGet the status of a spoke proposal\n----------------------------------\n\nTo get the status of a spoke that you have proposed in a different project from\nthe hub, including updates to existing spokes, follow these steps. \n\n### gcloud\n\nRun the\n[`gcloud network-connectivity spokes describe` command](/sdk/gcloud/reference/network-connectivity/spokes/describe). \n\n```\ngcloud network-connectivity spokes describe SPOKE_NAME \\\n --global\n```\n\nReplace \u003cvar translate=\"no\"\u003eSPOKE_NAME\u003c/var\u003e with the name of the spoke for which\nyou want to check the status, such as `my-spoke`.\n\n### API\n\nTo describe a spoke, use the\n[`networkconnectivity.spokes.get` method](/network-connectivity/docs/reference/networkconnectivity/rest/v1/projects.locations.spokes/get). \n\n```\n GET https://networkconnectivity.googleapis.com/v1/projects/PROJECT_ID/locations/global/spokes/SPOKE_NAME\n```\n\nReplace the following:\n\n- \u003cvar translate=\"no\"\u003ePROJECT_ID\u003c/var\u003e: the project ID of the project that contains the spoke\n- \u003cvar translate=\"no\"\u003eSPOKE_NAME\u003c/var\u003e: the name of the spoke for which you want to get status\n\nWhat's next\n-----------\n\n- To create hubs and spokes, see [Work with hubs and spokes](/network-connectivity/docs/network-connectivity-center/how-to/working-with-hubs-spokes).\n- To view a list of partners whose solutions are integrated with Network Connectivity Center, see [Network Connectivity Center partners](/network-connectivity/docs/network-connectivity-center/partners).\n- To find solutions for common issues, see [Troubleshooting](/network-connectivity/docs/network-connectivity-center/support/troubleshooting).\n- To get details about API and `gcloud` commands, see [APIs and reference](/network-connectivity/docs/network-connectivity-center/apis)."]]