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

v1 - list systems - expose EC2 instance ID #24

Closed
sparkacus opened this issue Nov 1, 2018 · 3 comments
Closed

v1 - list systems - expose EC2 instance ID #24

sparkacus opened this issue Nov 1, 2018 · 3 comments

Comments

@sparkacus
Copy link

Hi,

Would it be possible to expose the EC2 instance ID when listing systems?

I have a need to find a system based on it's EC2 instance ID, but I don't think I'm able to do that via the API. Please correct me if I'm wrong.

@scottd3v
Copy link

scottd3v commented Nov 1, 2018

The amazonInstanceID is populated for systems hosted in amazon see an example output of the JSON object for a system below:

systemToken : REMOVED
rganization : REMOVED
created : 1/2/18 10:21:00 PM
lastContact : 11/1/18 4:53:20 PM
os : Ubuntu
version : 16.04
arch : x86_64
networkInterfaces : {@{address=172.31.34.140; family=IPv4; internal=False; name=eth0}, @{address=fe80::c98:aeff:feb3:fd60; family=IPv6;
internal=False; name=eth0}, @{address=127.0.0.1; family=IPv4; internal=True; name=lo}, @{address=::1; family=IPv6;
internal=True; name=lo}}
hostname : ip-172-31-34-140
displayName : ip-172-31-34-140
systemTimezone : 0
templateName : ubuntu-16.04-x86_64
remoteIP : 54.174.23.213
amazonInstanceID : i-0aad3fa40a1ba30ed
active : True
sshdParams : {@{name=ChallengeResponseAuthentication; value=no}, @{name=UsePAM; value=yes}, @{name=PubkeyAuthentication; value=no},
@{name=PermitRootLogin; value=yes}...}
allowSshPasswordAuthentication : True
allowSshRootLogin : True
allowMultiFactorAuthentication : True
allowPublicKeyAuthentication : False
modifySSHDConfig : True
agentVersion : 0.10.22
connectionHistory : {}
serialNumber : REMOVED
_id : REMOVED

@sparkacus
Copy link
Author

How can I access the 'amazonInstanceID' key using the V1 api?

It's not something listed in this struct as far as I can tell - https://github.com/TheJumpCloud/jcapi-go/blob/master/v1/system.go

I'm rather new to GO, so apologies if it's something simple that I've missed.

@bbawn
Copy link
Contributor

bbawn commented Jan 21, 2019

This should be fixed in #27 . amazonInstanceIID is now part of the JumpCloud API and is thus included in the generated SDK

@bbawn bbawn closed this as completed Jan 21, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging a pull request may close this issue.

3 participants