@google-cloud/security-center

中文文档
10.3.0发布于 2026/10/20Apache-2.0TypeScriptCommonJS近 30 天下载 10.7万

Cloud Security Command Center API client for Node.js

原始使用文档
文档目录8 节
  1. Quickstart
  2. Before you begin
  3. Installing the client library
  4. Samples
  5. Supported Node.js Versions
  6. Versioning
  7. Contributing
  8. License

Google Cloud Platform logo

Security Command Center API: Nodejs Client

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

npm version

Security Command Center API client for Node.js

Node.js idiomatic client for [Cloud Security Command Center][product-docs].

Cloud Security Command Center helps security teams gather data, identify threats, and act on them before they result in business damage or loss. It offers deep insight into application and data risk so that you can quickly mitigate threats to your cloud resources and evaluate overall health. With Cloud Security Command Center, you can view and monitor an inventory of your cloud assets, scan storage systems for sensitive data, detect common web vulnerabilities, and review access rights to your critical resources, all from a single, centralized dashboard.

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:

Quickstart

Before you begin

  1. Select or create a Cloud Platform project.
  2. Enable billing for your project.
  3. Enable the Security Command Center API API.
  4. Set up authentication so you can access the API from your local workstation.

Installing the client library

npm install @google-cloud/security-center

Samples

Samples are in the samples/ directory. Each sample's README.md has instructions for running its sample.

SampleSource Code
batch create resource value configssource code
bulk mute findingssource code
create big query exportsource code
create event threat detection custom modulesource code
create findingsource code
create mute configsource code
create notification configsource code
create security health analytics custom modulesource code
create sourcesource code
delete big query exportsource code
delete event threat detection custom modulesource code
delete mute configsource code
delete notification configsource code
delete resource value configsource code
delete security health analytics custom modulesource code
get big query exportsource code
get effective event threat detection custom modulesource code
get effective security health analytics custom modulesource code
get event threat detection custom modulesource code
get iam policysource code
get mute configsource code
get notification configsource code
get organization settingssource code
get resource value configsource code
get security health analytics custom modulesource code
get simulationsource code
get sourcesource code
get valued resourcesource code
group assetssource code
group findingssource code
list assetssource code
list attack pathssource code
list big query exportssource code
list descendant event threat detection custom modulessource code
list descendant security health analytics custom modulessource code
list effective event threat detection custom modulessource code
list effective security health analytics custom modulessource code
list event threat detection custom modulessource code
list findingssource code
list mute configssource code
list notification configssource code
list resource value configssource code
list security health analytics custom modulessource code
list sourcessource code
list valued resourcessource code
run asset discoverysource code
set finding statesource code
set iam policysource code
set mutesource code
simulate security health analytics custom modulesource code
test iam permissionssource code
update big query exportsource code
update event threat detection custom modulesource code
update external systemsource code
update findingsource code
update mute configsource code
update notification configsource code
update organization settingssource code
update resource value configsource code
update security health analytics custom modulesource code
update security markssource code
update sourcesource code
validate event threat detection custom modulesource code
create findingsource code
create sourcesource code
get iam policysource code
get organization settingssource code
get sourcesource code
group assetssource code
group findingssource code
list assetssource code
list findingssource code
list sourcessource code
run asset discoverysource code
set finding statesource code
set iam policysource code
test iam permissionssource code
update findingsource code
update organization settingssource code
update security markssource code
update sourcesource code
create findingsource code
create notification configsource code
create sourcesource code
delete notification configsource code
get iam policysource code
get notification configsource code
get organization settingssource code
get sourcesource code
group assetssource code
group findingssource code
list assetssource code
list findingssource code
list notification configssource code
list sourcessource code
run asset discoverysource code
set finding statesource code
set iam policysource code
test iam permissionssource code
update findingsource code
update notification configsource code
update organization settingssource code
update security markssource code
update sourcesource code
batch create resource value configssource code
bulk mute findingssource code
create big query exportsource code
create findingsource code
create mute configsource code
create notification configsource code
create sourcesource code
delete big query exportsource code
delete mute configsource code
delete notification configsource code
delete resource value configsource code
get big query exportsource code
get iam policysource code
get mute configsource code
get notification configsource code
get resource value configsource code
get simulationsource code
get sourcesource code
get valued resourcesource code
group findingssource code
list attack pathssource code
list big query exportssource code
list findingssource code
list mute configssource code
list notification configssource code
list resource value configssource code
list sourcessource code
list valued resourcessource code
set finding statesource code
set iam policysource code
set mutesource code
test iam permissionssource code
update big query exportsource code
update external systemsource code
update findingsource code
update mute configsource code
update notification configsource code
update resource value configsource code
update security markssource code
update sourcesource code

Supported Node.js Versions

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:

  • Legacy versions are not tested in continuous integration.
  • Some security patches and features cannot be backported.
  • Dependencies cannot be kept up-to-date.

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/security-center@legacy-8 installs client libraries for versions compatible with Node.js 8.

Versioning

This library follows Semantic Versioning.

More Information: Google Cloud Platform Launch Stages

Contributing

Contributions welcome! See the Contributing Guide.

Please note that this README.md and a variety of configuration files in this repository (including .nycrc and tsconfig.json) are generated from a central template.

License

Apache Version 2.0

See LICENSE

版本与发布记录

@google-cloud/security-center 共发布 86 个版本,首次发布于 2018/12/04;过去 12 个月发布了 11 个版本。

版本发布日期距今
10.3.0latest2026/10/2027 天前
10.2.02026/10/131 个月前
10.1.12026/09/291 个月前
10.1.02026/09/092 个月前
10.0.12026/08/133 个月前
10.0.02026/08/113 个月前

其他发布通道:legacy-8 → 3.1.0,legacy-10 → 5.11.0,legacy-12 → 7.6.0,legacy-18 → 9.5.0。

关于 @google-cloud/security-center 的常见问题

@google-cloud/security-center 是什么?

Cloud Security Command Center API client for Node.js

如何安装 @google-cloud/security-center?

在项目目录运行 npm install @google-cloud/security-center,或使用 pnpm add / yarn add / bun add。

@google-cloud/security-center 支持 TypeScript 吗?

支持。包内自带 TypeScript 类型声明(package.json 声明了 types 入口),安装后即可获得类型提示,无需再安装 @types 包。

@google-cloud/security-center 支持 ESM 还是 CommonJS?

以 CommonJS 形式发布,可以直接 require();在 ES Module 项目中也可以用 import 引入(Node.js 会把 module.exports 作为默认导出)。

@google-cloud/security-center 需要什么版本的 Node.js?

package.json 的 engines 字段要求 Node.js >=22。版本不符时 npm 默认只给出警告,开启 engine-strict 后会拒绝安装。

@google-cloud/security-center 可以商用吗?

@google-cloud/security-center 使用 Apache-2.0 许可。宽松许可:允许商业使用、修改和再分发,并附带明确的专利授权;分发时需保留许可与 NOTICE 文件,修改过的文件要注明改动。以上为概括,不构成法律意见,请以许可原文为准。

@google-cloud/security-center 的下载量有多少?

根据 npm 官方下载统计,@google-cloud/security-center 在 2026/10/17 – 2026/11/15 这 30 天内被下载 107,315 次,日均约 3,577 次。下载量会把 CI 构建、镜像同步和作为其他包依赖的安装一并计入,适合横向比较热度,不能直接等同于使用人数。

@google-cloud/security-center 还在维护吗?

最新版本 10.3.0 发布于 2026/10/20(27 天前);至今共发布 86 个版本,其中过去 12 个月发布了 11 个;首次发布于 2018/12/04。发布频率只是参考信号:功能稳定的工具可能很少需要更新,建议结合源码仓库的 issue 和提交记录判断。