X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/61ddcaf192e3f39ed8a1242f35bf1b28ff1fe121..5d164d74505c232cfa232d69a56273da2d02b72a:/doc/api/methods/nodes.html.textile.liquid diff --git a/doc/api/methods/nodes.html.textile.liquid b/doc/api/methods/nodes.html.textile.liquid index 8dc896c47c..1b51f01c63 100644 --- a/doc/api/methods/nodes.html.textile.liquid +++ b/doc/api/methods/nodes.html.textile.liquid @@ -5,45 +5,54 @@ navmenu: API Methods title: "nodes" ... +{% comment %} +Copyright (C) The Arvados Authors. All rights reserved. +SPDX-License-Identifier: CC-BY-SA-3.0 +{% endcomment %} +API endpoint base: @https://{{ site.arvados_api_host }}/arvados/v1/nodes@ -Required arguments are displayed in %{background:#ccffcc}green%. +Object type: @7ekkf@ +Example UUID: @zzzzz-7ekkf-0123456789abcde@ -h2. create +h2. Resource -Create a new Node. +Node resources list compute nodes on which Crunch may schedule work. -Arguments: +Each Node has, in addition to the "Common resource fields":{{site.baseurl}}/api/resources.html: table(table table-bordered table-condensed). -|_. Argument |_. Type |_. Description |_. Location |_. Example | -|node|object||query|| - -h2. delete +|_. Attribute|_. Type|_. Description|_. Example| +|slot_number|integer||| +|hostname|string||| +|domain|string||| +|ip_address|string||| +|job_uuid|string|The UUID of the job that this node is assigned to work on. If you do not have permission to read the job, this will be null.|| +|first_ping_at|datetime||| +|last_ping_at|datetime||| +|info|hash||| -Delete an existing Node. +h2. Methods -Arguments: +See "Common resource methods":{{site.baseurl}}/api/methods.html for more information about @create@, @delete@, @get@, @list@, and @update@. -table(table table-bordered table-condensed). -|_. Argument |_. Type |_. Description |_. Location |_. Example | -{background:#ccffcc}.|uuid|string|The UUID of the Node in question.|path|| +Required arguments are displayed in %{background:#ccffcc}green%. -h2. destroy +h3. create -destroy nodes +Create a new Node. Arguments: table(table table-bordered table-condensed). |_. Argument |_. Type |_. Description |_. Location |_. Example | -{background:#ccffcc}.|uuid|string||path|| +{background:#ccffcc}.|node|object||query|| -h2. get +h3. delete -Gets a Node's metadata by UUID. +Delete an existing Node. Arguments: @@ -51,40 +60,34 @@ table(table table-bordered table-condensed). |_. Argument |_. Type |_. Description |_. Location |_. Example | {background:#ccffcc}.|uuid|string|The UUID of the Node in question.|path|| -h2. list +h3. get -List nodes. +Gets a Node's metadata by UUID. Arguments: table(table table-bordered table-condensed). |_. Argument |_. Type |_. Description |_. Location |_. Example | -|limit|integer (default 100)|Maximum number of nodes to return.|query|| -|order|string|Order in which to return matching nodes.|query|| -|filters|array|Conditions for filtering nodes.|query|| - -h2. ping +{background:#ccffcc}.|uuid|string|The UUID of the Node in question.|path|| -ping nodes +h3. list -Arguments: +List nodes. -table(table table-bordered table-condensed). -|_. Argument |_. Type |_. Description |_. Location |_. Example | -{background:#ccffcc}.|ping_secret|string||query|| -{background:#ccffcc}.|uuid|string||path|| +See "common resource list method.":{{site.baseurl}}/api/methods.html#index -h2. show +h3. ping -show nodes +Process a ping from a compute node. Arguments: table(table table-bordered table-condensed). |_. Argument |_. Type |_. Description |_. Location |_. Example | +{background:#ccffcc}.|ping_secret|string||query|| {background:#ccffcc}.|uuid|string||path|| -h2. update +h3. update Update attributes of an existing Node. @@ -94,3 +97,5 @@ table(table table-bordered table-condensed). |_. Argument |_. Type |_. Description |_. Location |_. Example | {background:#ccffcc}.|uuid|string|The UUID of the Node in question.|path|| |node|object||query|| + +To remove a node's job assignment, update the node object's @job_uuid@ to null.