Initial Configuration
Learn how to quickly configure Spyctl to interact with your Spyderbat data
Last updated
Was this helpful?
Learn how to quickly configure Spyctl to interact with your Spyderbat data
Last updated
Was this helpful?
In this section you will learn how to configure Spyctl to enable data retrieval from across your entire organization. To do so, you must first create an APISecret and then use that APISecret to set a Context. An APISecret encapsulates your Spyderbat API credentials; the Context specifies where Spyctl should look for data when interacting with the Spyderbat API (e.g., organization, cluster, machine, service, or container image).
An APISecret encapsulates your Spyderbat API credentials. You must create at least one APISecret in order for Spyctl to access your data via theSpyderbat API.
To create an APISecret, use an .
United States
https://api.spyderbat.com
Mumbai, India
https://api.mum.prod.spyderbat.com
Frankfurt, Germany
https://api.deu.prod.spyderbat.com
Copy a generated API key and region-specific API URL into the following command:
For example:
Contexts will let Spyctl know where to look for data. The broadest possible Context is organization-wide. This means that when you run Spyctl commands, the Spyderbat API will return results relevant to your entire organization.
For example:
You can view your configuration by issuing the following command:
You should see something like this:
At this point you should now be able to run spyctl commands that utilize the Spyderbat API.
For the --org
field in the following command you may supply the name of your organization which can be found in the top right of the Spyderbat Console or the organization UID which can be found in your web browser’s url when logged into the : .