
Security News
Risky Biz Podcast: Making Reachability Analysis Work in Real-World Codebases
This episode explores the hard problem of reachability analysis, from static analysis limits to handling dynamic languages and massive dependency trees.
@google-cloud/network-connectivity
Advanced tools
Networkconnectivity client for Node.js
A comprehensive list of changes in each version may be found in the CHANGELOG.
Read more about the client libraries for Cloud APIs, including the older Google APIs Client Libraries, in Client Libraries Explained.
Table of contents:
npm install @google-cloud/network-connectivity
// Imports the Google Cloud client library
// eslint-disable-next-line node/no-missing-require
const {HubServiceClient} = require('@google-cloud/network-connectivity');
// TODO(developer): replace with your prefered project ID.
// const projectId = 'my-project'
// const location = 'my-location'
// Creates a client
// eslint-disable-next-line no-unused-vars
const client = new HubServiceClient();
async function listNetworkHubs() {
const [hubs] = await client.listHubs({
parent: `projects/${projectId}/locations/${location}`,
});
console.info(hubs);
}
listNetworkHubs();
Samples are in the samples/
directory. Each sample's README.md
has instructions for running its sample.
Sample | Source Code | Try it |
---|---|---|
Cross_network_automation_service.create_service_connection_map | source code | ![]() |
Cross_network_automation_service.create_service_connection_policy | source code | ![]() |
Cross_network_automation_service.create_service_connection_token | source code | ![]() |
Cross_network_automation_service.delete_service_class | source code | ![]() |
Cross_network_automation_service.delete_service_connection_map | source code | ![]() |
Cross_network_automation_service.delete_service_connection_policy | source code | ![]() |
Cross_network_automation_service.delete_service_connection_token | source code | ![]() |
Cross_network_automation_service.get_service_class | source code | ![]() |
Cross_network_automation_service.get_service_connection_map | source code | ![]() |
Cross_network_automation_service.get_service_connection_policy | source code | ![]() |
Cross_network_automation_service.get_service_connection_token | source code | ![]() |
Cross_network_automation_service.list_service_classes | source code | ![]() |
Cross_network_automation_service.list_service_connection_maps | source code | ![]() |
Cross_network_automation_service.list_service_connection_policies | source code | ![]() |
Cross_network_automation_service.list_service_connection_tokens | source code | ![]() |
Cross_network_automation_service.update_service_class | source code | ![]() |
Cross_network_automation_service.update_service_connection_map | source code | ![]() |
Cross_network_automation_service.update_service_connection_policy | source code | ![]() |
Hub_service.accept_hub_spoke | source code | ![]() |
Hub_service.accept_spoke_update | source code | ![]() |
Hub_service.create_hub | source code | ![]() |
Hub_service.create_spoke | source code | ![]() |
Hub_service.delete_hub | source code | ![]() |
Hub_service.delete_spoke | source code | ![]() |
Hub_service.get_group | source code | ![]() |
Hub_service.get_hub | source code | ![]() |
Hub_service.get_route | source code | ![]() |
Hub_service.get_route_table | source code | ![]() |
Hub_service.get_spoke | source code | ![]() |
Hub_service.list_groups | source code | ![]() |
Hub_service.list_hub_spokes | source code | ![]() |
Hub_service.list_hubs | source code | ![]() |
Hub_service.list_route_tables | source code | ![]() |
Hub_service.list_routes | source code | ![]() |
Hub_service.list_spokes | source code | ![]() |
Hub_service.query_hub_status | source code | ![]() |
Hub_service.reject_hub_spoke | source code | ![]() |
Hub_service.reject_spoke_update | source code | ![]() |
Hub_service.update_group | source code | ![]() |
Hub_service.update_hub | source code | ![]() |
Hub_service.update_spoke | source code | ![]() |
Internal_range_service.create_internal_range | source code | ![]() |
Internal_range_service.delete_internal_range | source code | ![]() |
Internal_range_service.get_internal_range | source code | ![]() |
Internal_range_service.list_internal_ranges | source code | ![]() |
Internal_range_service.update_internal_range | source code | ![]() |
Policy_based_routing_service.create_policy_based_route | source code | ![]() |
Policy_based_routing_service.delete_policy_based_route | source code | ![]() |
Policy_based_routing_service.get_policy_based_route | source code | ![]() |
Policy_based_routing_service.list_policy_based_routes | source code | ![]() |
Hub_service.create_hub | source code | ![]() |
Hub_service.create_spoke | source code | ![]() |
Hub_service.delete_hub | source code | ![]() |
Hub_service.delete_spoke | source code | ![]() |
Hub_service.get_hub | source code | ![]() |
Hub_service.get_spoke | source code | ![]() |
Hub_service.list_hubs | source code | ![]() |
Hub_service.list_spokes | source code | ![]() |
Hub_service.update_hub | source code | ![]() |
Hub_service.update_spoke | source code | ![]() |
Quickstart | source code | ![]() |
The Network Connectivity Center Node.js Client API Reference documentation also contains samples.
Our client libraries follow the Node.js release schedule. Libraries are compatible with all current active and maintenance versions of Node.js. If you are using an end-of-life version of Node.js, we recommend that you update as soon as possible to an actively supported LTS version.
Google's client libraries support legacy versions of Node.js runtimes on a best-efforts basis with the following warnings:
Client libraries targeting some end-of-life versions of Node.js are available, and
can be installed through npm dist-tags.
The dist-tags follow the naming convention legacy-(version)
.
For example, npm install @google-cloud/network-connectivity@legacy-8
installs client libraries
for versions compatible with Node.js 8.
This library follows Semantic Versioning.
This library is considered to be stable. The code surface will not change in backwards-incompatible ways unless absolutely necessary (e.g. because of critical security issues) or with an extensive deprecation period. Issues and requests against stable libraries are addressed with the highest priority.
More Information: Google Cloud Platform Launch Stages
Contributions welcome! See the Contributing Guide.
Please note that this README.md
, the samples/README.md
,
and a variety of configuration files in this repository (including .nycrc
and tsconfig.json
)
are generated from a central template. To edit one of these files, make an edit
to its templates in
directory.
Apache Version 2.0
See LICENSE
FAQs
Networkconnectivity client for Node.js
The npm package @google-cloud/network-connectivity receives a total of 19 weekly downloads. As such, @google-cloud/network-connectivity popularity was classified as not popular.
We found that @google-cloud/network-connectivity demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
This episode explores the hard problem of reachability analysis, from static analysis limits to handling dynamic languages and massive dependency trees.
Security News
/Research
Malicious Nx npm versions stole secrets and wallet info using AI CLI tools; Socket’s AI scanner detected the supply chain attack and flagged the malware.
Security News
CISA’s 2025 draft SBOM guidance adds new fields like hashes, licenses, and tool metadata to make software inventories more actionable.