Skip to content
This repository has been archived by the owner on Sep 28, 2021. It is now read-only.

Added a Allocation#for_job API #2

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

tbartelmess
Copy link

Added a simple API to Allocation to fetch all allocs for a given job, wrapping the /v1/job/<ID>/allocations API endpoint.

An API like

Nomad.job('my_job').allocations

would probably be nicer, however a Response doesn't have access to the Client at this point, enabling an ABI like this would require a few more changes.

@hashicorp-cla
Copy link

CLA assistant check

Thank you for your submission! We require that all contributors sign our Contributor License Agreement ("CLA") before we can accept the contribution. Read and sign the agreement

Learn more about why HashiCorp requires a CLA and what the CLA includes

Have you signed the CLA already but the status is still pending? Recheck it.

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