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

[FEATURE] Add links to the interfaces #5

Open
Ramblurr opened this issue Apr 24, 2017 · 0 comments
Open

[FEATURE] Add links to the interfaces #5

Ramblurr opened this issue Apr 24, 2017 · 0 comments

Comments

@Ramblurr
Copy link

The links structure in the Rancher API is invaluable. Without it many common tasks are impossible.

For example, given a Service ID, getting a list of its instances/containers is nearly impossible with the SDK as it stands, but if one could access the links.instances property it would be easy.

Example links container in a Service response:

links": {
"self": "…/v1/projects/1a5/services/1s153",
"account": "…/v1/projects/1a5/services/1s153/account",
"consumedbyservices": "…/v1/projects/1a5/services/1s153/consumedbyservices",
"consumedservices": "…/v1/projects/1a5/services/1s153/consumedservices",
"environment": "…/v1/projects/1a5/services/1s153/environment",
"instances": "…/v1/projects/1a5/services/1s153/instances",
"serviceExposeMaps": "…/v1/projects/1a5/services/1s153/serviceexposemaps",
"containerStats": "…/v1/projects/1a5/services/1s153/containerstats",
},
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant