The Cloud Asset API manages the history and inventory of cloud resources.
-
Set up authentication with a service account so you can access the API from your local workstation.
-
Install the client library:
npm install --save @google-cloud/asset
-
Try an example:
// Imports the Google Cloud client library
const asset = require('@google-cloud/asset');
// eslint-disable-next-line
const client = new asset.AssetServiceClient({
projectId: 'your-project-id',
keyFilename: '/path/to/keyfile.json',
});
The Cloud Asset API Node.js Client API Reference documentation also contains samples.
This library follows Semantic Versioning.
This library is considered to be in alpha. This means it is still a work-in-progress and under active development. Any release is subject to backwards-incompatible changes at any time.
More Information: Google Cloud Platform Launch Stages
Contributions welcome! See the Contributing Guide.
Apache Version 2.0
See LICENSE
- Cloud Asset API Documentation
- Cloud Asset API Node.js Client API Reference
- github.com/googleapis/nodejs-asset
Read more about the client libraries for Cloud APIs, including the older Google APIs Client Libraries, in Client Libraries Explained.