addResourcesToPool
addResourceToEnvironmentTier
Adds a resource to the specified environment tier.
Arguments
Argument Name | Type | Description |
---|---|---|
resourceName |
String |
(Required) Name for the resource; must be unique among all resources. |
projectName |
String |
(Required) The name for the project that must be unique among all projects. |
environmentName |
String |
(Required) The name of the environment. |
environmentTierName |
String |
(Required) Name for the environment tier; must be unique among all tiers for the environment. |
rollingDeployPhaseName |
String |
Name for the rolling deploy phase to be associated with the resource. |
createResource
Creates a new resource. For a proxy resource, the proxyHostName
and proxyPort
arguments refer to the proxying CloudBees CD/RO agent. The hostName
and port
arguments refer to the proxy target.
Resource objects inherit their privileges from Resources privileges. To create a resource, you must have modify privileges on Resources, and you must have Modify privileges on the zone. |
Arguments
Argument Name | Type | Description |
---|---|---|
resourceName |
String |
(Required) Name for the resource; must be unique among all resources. |
artifactCacheDirectory |
String |
Artifact cache directory for this resource. |
block |
Boolean |
True to block on the agent ping before returning. |
description |
String |
Comment text describing this object that is not interpreted at all by CloudBees CD/RO. |
hostName |
String |
The domain name or IP address of the server machine corresponding to this resource. |
hostType |
String |
The type of the host. |
pools |
String |
DEPRECATED: A list of arbitrary names separated by spaces, indicating the pools with which this resource is associated. |
port |
Integer |
Port number to use when connecting to the agent for this resource; defaults to server default. |
proxyCustomization |
String |
Proxy specific customization data; defaults to none. |
proxyHostName |
String |
The domain name or IP address of the proxy agent machine corresponding to this resource. |
proxyPort |
Integer |
Port number to use when connecting to the proxy agent for this resource; defaults to server default. |
proxyProtocol |
String |
The protocol to use when proxying to this resource; defaults to none. |
repositoryNames |
String |
A newline delimited list of repositories to retrieve artifacts from. |
resourceDisabled |
Boolean |
True means this resource will not be allocated to job steps, regardless of its step limit. |
resourcePools |
String |
A list of arbitrary names separated by comma, indicating the pools with which this resource is associated. |
shell |
String |
Name of the shell program that will execute the command and postprocessor for the step. |
stepLimit |
Integer |
The maximum number of steps that may execute simultaneously using this resource. |
trusted |
Boolean |
True means the agent can speak to all other trusted agents in its zone. An untrusted agent can only speak to gateway agents. |
useSSL |
Boolean |
True means SSL is used for communication. |
workspaceName |
String |
The name of the workspace. |
zoneName |
String |
Name for the zone; must be unique among all zones. |
createResourcePool
Creates a new pool for resources.
Arguments
Argument Name | Type | Description |
---|---|---|
resourcePoolName |
String |
(Required) Name for the resource pool; must be unique among all resource pools. |
autoDelete |
Boolean |
If true, the pool is deleted when the last resource is deleted. |
description |
String |
Comment text describing this object that is not interpreted at all by CloudBees CD/RO. |
orderingFilter |
String |
JavaScript fragment that returns custom ordering of resources in a pool. |
resourceNames |
Collection |
List of resources to add/remove from the pool. |
resourcePoolDisabled |
Boolean |
True means the resourcePool will not be allocated to job steps. |
deleteResourcePool
getResourcePool
getResourcesInEnvironmentTier
Retrieves the list of resources in an environment tier.
Arguments
Argument Name | Type | Description |
---|---|---|
projectName |
String |
(Required) The name for the project that must be unique among all projects. |
environmentName |
String |
(Required) The name of the environment. |
environmentTierName |
String |
(Required) Name for the environment tier; must be unique among all tiers for the environment. |
getResourcesInPool
modifyResource
Modifies an existing resource. For a proxy resource, the proxyHostName
and proxyPort
arguments refer to the proxying CloudBees CD/RO agent. The hostName
and port
arguments refer to the proxy target.
Arguments
Argument Name | Type | Description |
---|---|---|
resourceName |
String |
(Required) Name for the resource; must be unique among all resources. |
artifactCacheDirectory |
String |
Artifact cache directory for this resource. |
block |
Boolean |
True to block on the agent ping before returning. |
description |
String |
Comment text describing this object that is not interpreted at all by CloudBees CD/RO. |
hostName |
String |
The domain name or IP address of the server machine corresponding to this resource. |
hostType |
String |
The type of the host. |
newName |
String |
The new name for an existing object that is being renamed. |
pools |
String |
DEPRECATED: A list of arbitrary names separated by spaces, indicating the pools with which this resource is associated. |
port |
Integer |
Port number to use when connecting to the agent for this resource; defaults to server default. |
proxyCustomization |
String |
Proxy specific customization data; defaults to none. |
proxyHostName |
String |
The domain name or IP address of the proxy agent machine corresponding to this resource. |
proxyPort |
Integer |
Port number to use when connecting to the proxy agent for this resource; defaults to server default. |
proxyProtocol |
String |
The protocol to use when proxying to this resource; defaults to none. |
repositoryNames |
String |
A newline delimited list of repositories to retrieve artifacts from. |
resourceDisabled |
Boolean |
True means this resource will not be allocated to job steps, regardless of its step limit. |
resourcePools |
String |
A list of arbitrary names separated by comma, indicating the pools with which this resource is associated. |
shell |
String |
Name of the shell program that will execute the command and postprocessor for the step. |
stepLimit |
Integer |
The maximum number of steps that may execute simultaneously using this resource. |
trusted |
Boolean |
True means the agent can speak to all other trusted agents in its zone. An untrusted agent can only speak to gateway agents. |
useSSL |
Boolean |
True means SSL is used for communication. |
workspaceName |
String |
The name of the workspace. |
zoneName |
String |
Name for the zone; must be unique among all zones. |
modifyResourcePool
Modifies an existing resource pool.
Arguments
Argument Name | Type | Description |
---|---|---|
resourcePoolName |
String |
(Required) Name for the resource pool; must be unique among all resource pools. |
autoDelete |
Boolean |
If true, the pool is deleted when the last resource is deleted. |
description |
String |
Comment text describing this object that is not interpreted at all by CloudBees CD/RO. |
newName |
String |
The new name for an existing object that is being renamed. |
orderingFilter |
String |
JavaScript fragment that returns custom ordering of resources in a pool. |
resourceNames |
Collection |
List of resources to add/remove from the pool. |
resourcePoolDisabled |
Boolean |
True means the resourcePool will not be allocated to job steps. |
pingAllResources
removeResourceFromEnvironmentTier
Removes a resource from the specified environment tier.
Arguments
Argument Name | Type | Description |
---|---|---|
resourceName |
String |
(Required) Name for the resource; must be unique among all resources. |
projectName |
String |
(Required) The name for the project that must be unique among all projects. |
environmentName |
String |
(Required) The name of the environment. |
environmentTierName |
String |
(Required) Name for the environment tier; must be unique among all tiers for the environment. |
removeResourcesFromPool
runDiscovery
Runs the Discover procedure in a plugin to discover contents of a list or set of resources, and store settings for them in the ec_discovery
property sheets.
Arguments
Argument Name | Type | Description |
---|---|---|
pluginKey |
String |
(Required) Version independent name of the plugin. |
pluginName |
String |
(Required) The name of the plugin. |
projectName |
String |
(Required) The name of the project. |
environmentName |
String |
(Required) The name of the environment. |
environmentTierName |
String |
(Required) The name of the environment tier. |
configurationName |
String |
(Required) The name of the plugin configuration. |
resourceNames |
Collection |
List of resources to use for discovery. |