Tetap teratur dengan koleksi
Simpan dan kategorikan konten berdasarkan preferensi Anda.
Saat Anda mengusulkan koneksi spoke Virtual Private Cloud (VPC)
ke hub, spoke tidak akan beroperasi sepenuhnya hingga administrator hub
menerima spoke. Demikian pula, saat Anda mengusulkan pembaruan pada
properti spoke yang ada, pembaruan tidak akan berlaku hingga administrator
hub menerima pembaruan. Halaman ini menjelaskan
cara memeriksa status spoke setelah Anda mengusulkan spoke baru atau
pembaruan pada spoke yang ada.
Sebelum memulai
Sebelum memulai, tinjau bagian berikut.
Membuat atau memilih project
Untuk mempermudah konfigurasi Network Connectivity Center, mulailah dengan mengidentifikasi project
yang valid.
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.
Untuk melakukan tugas ini, Anda harus telah diberi izin berikut
atau peran IAM berikut.
Izin
networkconnectivity.spokes.get
Peran (salah satu dari berikut ini)
roles/networkconnectivity.hubAdmin
roles/networkconnectivity.spokeAdmin
roles/networkconnectivity.hubViewer
Status Spoke
Tabel berikut menjelaskan berbagai status berbeda yang mungkin spoke berada di dalamnya
setelah diusulkan kepada administrator hub.
Status Spoke
Alasan status
Deskripsi
ACTIVE
Kolom reasons kosong.
Untuk proposal spoke baru, hal ini berarti administrator hub telah
menerima spoke dan spoke telah beroperasi secara penuh.
Untuk update pada spoke yang ada, hal ini berarti administrator hub
telah menerima update dan update telah diterapkan.
ACTIVE
UPDATE_PENDING_REVIEW
Hal ini berarti bahwa spoke beroperasi, tetapi pembaruan yang diusulkan
pada properti spoke belum diterima atau ditolak. Jika
update spoke ditolak oleh administrator hub, tetapi
penolakan gagal, spoke mungkin masih menampilkan status
UPDATE_PENDING_REVIEW.
ACTIVE
UPDATE_FAILED
Hal ini berarti bahwa spoke beroperasi, dan pembaruan yang diusulkan
pada properti spoke diterima, tetapi pembaruan gagal.
ACTIVE
UPDATE_REJECTED
Hal ini berarti bahwa spoke beroperasi, tetapi pembaruan yang diusulkan
pada properti spoke ditolak.
INACTIVE
PENDING_REVIEW
Hal ini berarti bahwa spoke tidak beroperasi, dan administrator
hub belum menerima atau menolak spoke.
INACTIVE
REJECTED
Hal ini berarti bahwa spoke tidak beroperasi karena administrator
hub telah menolak spoke.
OBSOLETE
Kolom reasons kosong.
Hal ini berarti bahwa hub telah dihapus. Setelah dalam status ini,
statusnya tidak akan berubah, dan spoke hanya dapat dihapus.
Mendapatkan status usulan spoke
Untuk mendapatkan status spoke yang telah Anda usulkan di project yang berbeda dari
hub, termasuk update pada spoke yang ada, ikuti langkah-langkah berikut.
[[["Mudah dipahami","easyToUnderstand","thumb-up"],["Memecahkan masalah saya","solvedMyProblem","thumb-up"],["Lainnya","otherUp","thumb-up"]],[["Sulit dipahami","hardToUnderstand","thumb-down"],["Informasi atau kode contoh salah","incorrectInformationOrSampleCode","thumb-down"],["Informasi/contoh yang saya butuhkan tidak ada","missingTheInformationSamplesINeed","thumb-down"],["Masalah terjemahan","translationIssue","thumb-down"],["Lainnya","otherDown","thumb-down"]],["Terakhir diperbarui pada 2025-08-12 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)."]]