Description: Updates a node pool.
Security: Requires admin credentials
Usage: PUT api/v1/nodePools/{nodePoolId}
Produces: application/json
URL Parameters:
Parameter | Data Type | Description |
---|---|---|
| Integer | Numeric node pool Id |
Parameters:
Parameter | Data Type | Description | Required/Optional |
---|---|---|---|
| String | Name of the node pool. | Required |
| String | An array of string environments to which the node pool is available in the project. | Optional |
| String | Operating systems supported for the selected architecture. For a list of supported OS and architecture combinations, refer to Runtime Images. | Required |
| Integer | The maximum time (in minutes) after which pipeline steps will timeout. This timeout is used when your step does not have any timeout specified. Default value for timeout is 60 minutes. | Optional |
| Integer | Limits the maximum disk usage. A build node that exceeds this maximum will be marked as failed. Integer between 0 and 100 | Optional |
| Integer | Configure dynamic node disk size. The minimum limit is:
Note
| Optional |
| Integer | Number of minutes a node can be idle before it is destroyed. | Required for dynamic node pools (if |
| Boolean | When set to | Optional |
| Boolean | When set to | Optional |
| Integer | Object containing cache settings if isCacheEnabled is set to
Example
| Optional |
| Integer | The build plane image Id. For more information, see Get Build Plane Image Ids. | Required for static node pool. |
| Integer | The project integration Id. For information about obtaining integration Id's, see Get All Integrations. For more information, see Dynamic Node Integrations. | Required for dynamic node pool. |
| Object | Object containing configuration for the cloud provider of on-demand nodePool. You can set the following properties:
| Optional |
| Object | Set permissions to restrict node pool use. You can set the following properties:
| Optional |
| Boolean | When set to Set to | Optional |
| Object | Contains configuration to be applied during node initialization. The following property can be set: insecureDockerRegistries: List of insecure docker registries to be allowed on the node. | Optional |
Response:
{ "providerMetadataPropertyBag": null, "numberOfNodes": 1, "id": 6, "projectId": 1, "name": "node_pool", “Environments”: [“DEV”,”PROD”], "isOnDemand": false, “isCacheEnabled”: null, “architecture”: “x86_64”, “operatingSystem”: “Ubuntu_18.04”, “cacheSettingsPropertyBag”: null, "isNatEnabled": false, "updatedAt": "2019-05-31T23:22:26.681Z", "createdAt": "2019-05-31T23:22:26.681Z", "queueName": null, "maxDiskUsagePercentage": 90, "timeoutMS": null, "permissions": { "pipelineSources": { "allowAllPipelineSources": true } }, "initPropertyBag": { "insecureDockerRegistries": [ "0.0.0.0" ] } }