Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

⭐️ equinix provider #1574

Merged
merged 3 commits into from
Aug 27, 2023
Merged

⭐️ equinix provider #1574

merged 3 commits into from
Aug 27, 2023

Conversation

chris-rock
Copy link
Member

@chris-rock chris-rock commented Aug 24, 2023

The equinix provider supports both connecting to an org and to a project:

cnquery shell equinix project 676a700e-2b06-48de-aba6-2fa7dd95cd0c --token ''

cnquery> equinix.metal.project { * }
equinix.metal.project: {
  createdAt: 2021-03-03 12:13:46 +0100 CET
  sshKeys: [
    0: equinix.metal.sshkey label="chris-rock"
  ]
  organization: equinix.metal.organization name="Example Inc"
  id: "69780ecb-fdf1-4e6d-aaa1-edba462ee4a1"
  name: "API Integration"
  devices: []
  updatedAt: 2023-08-27 11:36:21 +0200 CEST
  url: "/metal/v1/projects/69780ecb-fdf1-4e6d-aaa1-edba462ee4a1"
}

cnquery shell org project 676a700e-2b06-48de-aba6-2fa7dd95cd0c --token ''

cnquery> equinix.metal.organization { name users }
equinix.metal.organization: {
  users: [
  0: equinix.metal.user email="chris@example.com"
  ]
  name: "Mondoo Inc"
}

A user token is preferred over a project token if you want to fetch information from the organization.

@chris-rock chris-rock force-pushed the chris-rock/equinix branch 2 times, most recently from 2e8ac96 to 43b5771 Compare August 24, 2023 15:03
Copy link
Member

@arlimus arlimus left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

And another one boom

@chris-rock chris-rock marked this pull request as ready for review August 27, 2023 10:49
@chris-rock chris-rock merged commit 333fad4 into main Aug 27, 2023
10 checks passed
@chris-rock chris-rock deleted the chris-rock/equinix branch August 27, 2023 11:04
@github-actions github-actions bot locked and limited conversation to collaborators Aug 27, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants