Cluster information resource.
-It supports the following commands: ``GET``.
+.. rapi_resource_details:: /2/info
+
.. _rapi-res-info+get:
Redistribute configuration to all nodes.
-It supports the following commands: ``PUT``.
+.. rapi_resource_details:: /2/redistribute-config
.. _rapi-res-redistribute-config+put:
``/2/features``
+++++++++++++++
+.. rapi_resource_details:: /2/features
+
.. _rapi-res-features+get:
Modifies cluster parameters.
-Supports the following commands: ``PUT``.
+.. rapi_resource_details:: /2/modify
.. _rapi-res-modify+put:
The groups resource.
-It supports the following commands: ``GET``, ``POST``.
+.. rapi_resource_details:: /2/groups
+
.. _rapi-res-groups+get:
Returns information about a node group.
-It supports the following commands: ``GET``, ``DELETE``.
+.. rapi_resource_details:: /2/groups/[group_name]
+
.. _rapi-res-groups-group_name+get:
Modifies the parameters of a node group.
-Supports the following commands: ``PUT``.
+.. rapi_resource_details:: /2/groups/[group_name]/modify
+
.. _rapi-res-groups-group_name-modify+put:
Renames a node group.
-Supports the following commands: ``PUT``.
+.. rapi_resource_details:: /2/groups/[group_name]/rename
+
.. _rapi-res-groups-group_name-rename+put:
Assigns nodes to a group.
-Supports the following commands: ``PUT``.
+.. rapi_resource_details:: /2/groups/[group_name]/assign-nodes
.. _rapi-res-groups-group_name-assign-nodes+put:
Manages per-nodegroup tags.
-Supports the following commands: ``GET``, ``PUT``, ``DELETE``.
+.. rapi_resource_details:: /2/groups/[group_name]/tags
+
.. _rapi-res-groups-group_name-tags+get:
The networks resource.
-It supports the following commands: ``GET``, ``POST``.
+.. rapi_resource_details:: /2/networks
.. _rapi-res-networks+get:
Returns information about a network.
-It supports the following commands: ``GET``, ``DELETE``.
+.. rapi_resource_details:: /2/networks/[network_name]
.. _rapi-res-networks-network_name+get:
Modifies the parameters of a network.
-Supports the following commands: ``PUT``.
+.. rapi_resource_details:: /2/networks/[network_name]/modify
.. _rapi-res-networks-network_name-modify+put:
Connects a network to a nodegroup.
-Supports the following commands: ``PUT``.
+.. rapi_resource_details:: /2/networks/[network_name]/connect
.. _rapi-res-networks-network_name-connect+put:
Disonnects a network from a nodegroup.
-Supports the following commands: ``PUT``.
+.. rapi_resource_details:: /2/networks/[network_name]/disconnect
.. _rapi-res-networks-network_name-disconnect+put:
Manages per-network tags.
-Supports the following commands: ``GET``, ``PUT``, ``DELETE``.
+.. rapi_resource_details:: /2/networks/[network_name]/tags
.. _rapi-res-networks-network_name-tags+get:
Tries to allocate multiple instances.
-It supports the following commands: ``POST``
+.. rapi_resource_details:: /2/instances-multi-alloc
.. _rapi-res-instances-multi-alloc+post:
The instances resource.
-It supports the following commands: ``GET``, ``POST``.
+.. rapi_resource_details:: /2/instances
.. _rapi-res-instances+get:
Instance-specific resource.
-It supports the following commands: ``GET``, ``DELETE``.
+.. rapi_resource_details:: /2/instances/[instance_name]
.. _rapi-res-instances-instance_name+get:
``/2/instances/[instance_name]/info``
+++++++++++++++++++++++++++++++++++++++
-It supports the following commands: ``GET``.
+.. rapi_resource_details:: /2/instances/[instance_name]/info
.. _rapi-res-instances-instance_name-info+get:
Reboots URI for an instance.
-It supports the following commands: ``POST``.
+.. rapi_resource_details:: /2/instances/[instance_name]/reboot
.. _rapi-res-instances-instance_name-reboot+post:
Instance shutdown URI.
-It supports the following commands: ``PUT``.
+.. rapi_resource_details:: /2/instances/[instance_name]/shutdown
.. _rapi-res-instances-instance_name-shutdown+put:
Instance startup URI.
-It supports the following commands: ``PUT``.
+.. rapi_resource_details:: /2/instances/[instance_name]/startup
.. _rapi-res-instances-instance_name-startup+put:
Installs the operating system again.
-It supports the following commands: ``POST``.
+.. rapi_resource_details:: /2/instances/[instance_name]/reinstall
.. _rapi-res-instances-instance_name-reinstall+post:
Replaces disks on an instance.
-It supports the following commands: ``POST``.
+.. rapi_resource_details:: /2/instances/[instance_name]/replace-disks
.. _rapi-res-instances-instance_name-replace-disks+post:
Activate disks on an instance.
-It supports the following commands: ``PUT``.
+.. rapi_resource_details:: /2/instances/[instance_name]/activate-disks
.. _rapi-res-instances-instance_name-activate-disks+put:
Deactivate disks on an instance.
-It supports the following commands: ``PUT``.
+.. rapi_resource_details:: /2/instances/[instance_name]/deactivate-disks
.. _rapi-res-instances-instance_name-deactivate-disks+put:
``/2/instances/[instance_name]/recreate-disks``
+++++++++++++++++++++++++++++++++++++++++++++++++
-Recreate disks of an instance. Supports the following commands:
-``POST``.
+Recreate disks of an instance.
+
+.. rapi_resource_details:: /2/instances/[instance_name]/recreate-disks
.. _rapi-res-instances-instance_name-recreate-disks+post:
Grows one disk of an instance.
-Supports the following commands: ``POST``.
+.. rapi_resource_details:: /2/instances/[instance_name]/disk/[disk_index]/grow
.. _rapi-res-instances-instance_name-disk-disk_index-grow+post:
Prepares an export of an instance.
-It supports the following commands: ``PUT``.
+.. rapi_resource_details:: /2/instances/[instance_name]/prepare-export
.. _rapi-res-instances-instance_name-prepare-export+put:
Exports an instance.
-It supports the following commands: ``PUT``.
+.. rapi_resource_details:: /2/instances/[instance_name]/export
.. _rapi-res-instances-instance_name-export+put:
Migrates an instance.
-Supports the following commands: ``PUT``.
+.. rapi_resource_details:: /2/instances/[instance_name]/migrate
.. _rapi-res-instances-instance_name-migrate+put:
Does a failover of an instance.
-Supports the following commands: ``PUT``.
+.. rapi_resource_details:: /2/instances/[instance_name]/failover
.. _rapi-res-instances-instance_name-failover+put:
Renames an instance.
-Supports the following commands: ``PUT``.
+.. rapi_resource_details:: /2/instances/[instance_name]/rename
.. _rapi-res-instances-instance_name-rename+put:
Modifies an instance.
-Supports the following commands: ``PUT``.
+.. rapi_resource_details:: /2/instances/[instance_name]/modify
.. _rapi-res-instances-instance_name-modify+put:
Request information for connecting to instance's console.
-.. pyassert::
-
- not (hasattr(rlib2.R_2_instances_name_console, "PUT") or
- hasattr(rlib2.R_2_instances_name_console, "POST") or
- hasattr(rlib2.R_2_instances_name_console, "DELETE"))
-
-Supports the following commands: ``GET``. Requires authentication with
-one of the following options:
-:pyeval:`utils.CommaJoin(rlib2.R_2_instances_name_console.GET_ACCESS)`.
+.. rapi_resource_details:: /2/instances/[instance_name]/console
.. _rapi-res-instances-instance_name-console+get:
Manages per-instance tags.
-It supports the following commands: ``GET``, ``PUT``, ``DELETE``.
+.. rapi_resource_details:: /2/instances/[instance_name]/tags
.. _rapi-res-instances-instance_name-tags+get:
The ``/2/jobs`` resource.
-It supports the following commands: ``GET``.
+.. rapi_resource_details:: /2/jobs
.. _rapi-res-jobs+get:
``/2/jobs/[job_id]``
++++++++++++++++++++
-
Individual job URI.
-It supports the following commands: ``GET``, ``DELETE``.
+.. rapi_resource_details:: /2/jobs/[job_id]
.. _rapi-res-jobs-job_id+get:
``/2/jobs/[job_id]/wait``
+++++++++++++++++++++++++
+.. rapi_resource_details:: /2/jobs/[job_id]/wait
+
.. _rapi-res-jobs-job_id-wait+get:
Nodes resource.
-It supports the following commands: ``GET``.
+.. rapi_resource_details:: /2/nodes
.. _rapi-res-nodes+get:
Returns information about a node.
-It supports the following commands: ``GET``.
+.. rapi_resource_details:: /2/nodes/[node_name]
.. _rapi-res-nodes-node_name+get:
``/2/nodes/[node_name]/powercycle``
+++++++++++++++++++++++++++++++++++
-Powercycles a node. Supports the following commands: ``POST``.
+Powercycles a node.
+
+.. rapi_resource_details:: /2/nodes/[node_name]/powercycle
.. _rapi-res-nodes-node_name-powercycle+post:
Evacuates instances off a node.
-It supports the following commands: ``POST``.
+.. rapi_resource_details:: /2/nodes/[node_name]/evacuate
.. _rapi-res-nodes-node_name-evacuate+post:
Migrates all primary instances from a node.
-It supports the following commands: ``POST``.
+.. rapi_resource_details:: /2/nodes/[node_name]/migrate
+
.. _rapi-res-nodes-node_name-migrate+post:
Manages node role.
-It supports the following commands: ``GET``, ``PUT``.
+.. rapi_resource_details:: /2/nodes/[node_name]/role
The role is always one of the following:
``/2/nodes/[node_name]/modify``
+++++++++++++++++++++++++++++++
-Modifies the parameters of a node. Supports the following commands:
-``POST``.
+Modifies the parameters of a node.
+
+.. rapi_resource_details:: /2/nodes/[node_name]/modify
.. _rapi-res-nodes-node_name-modify+post:
Manages storage units on the node.
+.. rapi_resource_details:: /2/nodes/[node_name]/storage
+
+
.. _rapi-res-nodes-node_name-storage+get:
``GET``
Modifies storage units on the node.
+.. rapi_resource_details:: /2/nodes/[node_name]/storage/modify
+
.. _rapi-res-nodes-node_name-storage-modify+put:
Repairs a storage unit on the node.
+.. rapi_resource_details:: /2/nodes/[node_name]/storage/repair
+
.. _rapi-res-nodes-node_name-storage-repair+put:
Manages per-node tags.
-It supports the following commands: ``GET``, ``PUT``, ``DELETE``.
+.. rapi_resource_details:: /2/nodes/[node_name]/tags
.. _rapi-res-nodes-node_name-tags+get:
:pyeval:`utils.CommaJoin(constants.QR_VIA_RAPI)`. See the :doc:`query2
design document <design-query2>` for more details.
-.. pyassert::
-
- (rlib2.R_2_query.GET_ACCESS == rlib2.R_2_query.PUT_ACCESS and
- not (hasattr(rlib2.R_2_query, "POST") or
- hasattr(rlib2.R_2_query, "DELETE")))
-
-Supports the following commands: ``GET``, ``PUT``. Requires
-authentication with one of the following options:
-:pyeval:`utils.CommaJoin(rlib2.R_2_query.GET_ACCESS)`.
+.. rapi_resource_details:: /2/query/[resource]
.. _rapi-res-query-resource+get:
:pyeval:`utils.CommaJoin(constants.QR_VIA_RAPI)`. See the
:doc:`query2 design document <design-query2>` for more details.
-Supports the following commands: ``GET``.
+.. rapi_resource_details:: /2/query/[resource]/fields
.. _rapi-res-query-resource-fields+get:
OS resource.
-It supports the following commands: ``GET``.
+.. rapi_resource_details:: /2/os
.. _rapi-res-os+get:
Manages cluster tags.
-It supports the following commands: ``GET``, ``PUT``, ``DELETE``.
+.. rapi_resource_details:: /2/tags
.. _rapi-res-tags+get:
This resource should be used to determine the remote API version and to
adapt clients accordingly.
-It supports the following commands: ``GET``.
+.. rapi_resource_details:: /version
+
.. _rapi-res-version+get: