-
Notifications
You must be signed in to change notification settings - Fork 33
Expand file tree
/
Copy pathconfig.go
More file actions
48 lines (42 loc) · 1.49 KB
/
config.go
File metadata and controls
48 lines (42 loc) · 1.49 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
// Copyright Mondoo, Inc. 2024, 2026
// SPDX-License-Identifier: BUSL-1.1
package config
import (
"go.mondoo.com/mql/v13/providers-sdk/v1/plugin"
"go.mondoo.com/mql/v13/providers/equinix/provider"
)
var Config = plugin.Provider{
Name: "equinix",
ID: "go.mondoo.com/cnquery/v9/providers/equinix",
Version: "13.0.4",
ConnectionTypes: []string{provider.ConnectionType},
Connectors: []plugin.Connector{
{
Name: "equinix",
Use: "equinix [org <org id>] [project <project-id>] [--token <token>]",
Short: "an Equinix Metal organization",
Long: `Use the equinix provider to query resources in a specified project or organization on the Equinix Metal platform, including devices, projects, and SSH keys.
Available commands:
org <org id> Specifies the organization to interact with, using the organization identifier.
project <project-id> Specifies the project to interact with, using the project identifier.
Examples:
cnspec shell equinix org <org-id> --token <api-token>
cnspec shell equinix project <project-id> --token <api-token>
cnspec scan equinix org <org-id> --token <api-token>
Notes:
If you set the PACKET_AUTH_TOKEN environment variable, you can omit the token flag.
`,
MinArgs: 2,
MaxArgs: 2,
Discovery: []string{},
Flags: []plugin.Flag{
{
Long: "token",
Type: plugin.FlagType_String,
Default: "",
Desc: "The Equinix API token for authenticating the user",
},
},
},
},
}