addResourcesToPool
Adds resources to the specified resource pool (a named group of resources).
You must specify a resourcePoolName
.
Arguments | Descriptions |
---|---|
resourcePoolName |
Name for the resource pool that must be unique among all resource pools. The resource pool has one or more resources. Argument Type: String |
resourceNames |
(Optional) List of resources to add to the resource pool. Argument Type: Collection |
addResourceToEnvironmentTier
Adds a resource to the specified environment tier.
You must specify the resourceName
, projectName
, environmentName
. and environmentTierName
arguments.
Arguments | Descriptions |
---|---|
resourceName |
Name for the resource that must be unique among all resources. Argument Type: String |
projectName |
Name of the project. This name must be unique among all projects. Argument Type: String Argument Type: String |
environmentName |
Name of the environment that must be unique among all projects. Argument Type: String |
environmentTierName |
Name for the environment tier that must be unique among all tiers for the environment. Argument Type: String |
rollingDeployPhaseName |
(Optional) Name for the rolling deploy phase to be associated with the resource. Argument Type: String |
ec-perl
syntax: $<object>->addResourceToEnvironmentTier(<resourceName>, <projectName>, <environmentName>, <environmentTierName>, {<optionals>});
createResource
Creates a new resource. For a proxy resource, the `proxyHostName` and `proxyPort` arguments refer to the proxying CloudBees Flow agent. The `hostName` and `port` arguments refer to the proxy target.
Arguments | Descriptions | ||
---|---|---|---|
resourceName |
Name of the new resource that must be unique among all resources. Argument Type: String |
||
artifactCacheDirectory |
(Optional) Directory on the agent host where retrieved artifacts are stored. Argument Type: String |
||
block |
(Optional) < Boolean flag— A newly created resource will be pinged. This argument makes the Argument Type: Boolean |
||
description |
(Optional) A plain text or HTML description for this object. If using HTML, you must surround your text with Argument Type: String |
||
hostName |
(Optional) If it is an ordinary resource, the name or IP address of the machine containing the CloudBees Flow agent for this resource . If this is a proxy resource, the name or IP address of the proxy target. Argument Type: String |
||
hostType |
(Optional) Type of the host:
Argument Type: String |
||
pools |
(Optional) A space-separated list of one or more pool names where this resource is a member. Steps defined to run on a resource pool will run on any available member (resource) in the pool. Argument Type: String
|
||
port |
(Optional) The CloudBees Flow agent port number for an ordinary resource. If a port number is not specified, the default agent port is used. The default agent port can be configured on the "Server Settings" page in the automation platform UI. For a proxy resource, this is the port number for the service running on the proxy target that will run commands on behalf of the CloudBees Flow agent. For Argument Type: Integer |
||
proxyCustomization |
(Optional) Customized Perl code specifying how the proxy resource communicates with the proxy target. This argument is applicable only for proxy resources. Argument Type: String |
||
proxyHostName |
(Optional) The name or IP address of the computer containing the CloudBees Flow Agent used for a proxy resource. Argument Type: String |
||
proxyPort |
(Optional) The CloudBees Flow agent port number for a proxy resource. See the Argument Type: Integer |
||
proxyProtocol |
(Optional) Protocol for communicating with the proxy target. Defaults to Argument Type: String |
||
repositoryNames |
(Optional) A list of one or more repository names. Each repository name is listed on a "new line." Argument Type: String |
||
resourceDisabled |
(Optional) < Boolean flag— If this is set to Argument Type: Boolean |
||
resourcePools |
(Optional) A comma-separated list of one or more pool names where this resource is a member. Spaces and commas in pool names are allowed. Steps defined to run on a resource pool will run on any available member (resource) in the pool. Argument Type: String
To create one pool with a space in its name:
To create multiple pools with spaces in their names:
To create a pool with a comma in its name:
|
||
shell |
(Optional) This sets a default shell for running step commands on this resource. The default is Argument Type: String |
||
stepLimit |
(Optional) Limits the number of steps that can run on the resource at one time. Setting the limit to `1 ` enforces serial access to the resource. Argument Type: Integer |
||
trusted |
(Optional) < Boolean flag— If this is set to
Argument Type: Boolean |
||
useSSL |
(Optional) < Boolean flag— Use this flag to define whether SSL is used for server-agent communication, or if you need to use SSL to communicate with your Active Directory servers. The default is
Argument Type: Boolean |
||
workspaceName |
(Optional) Name of the workspace that the resource uses. Argument Type: String |
||
zoneName |
(Optional) The name of the zone where this resource resides. Argument Type: String |
createResourcePool
Creates a new pool for resources.
You must specify a resourcePoolName
.
Arguments | Descriptions |
---|---|
resourcePoolName |
Name for the resource pool that must be unique among all resource pools. Argument Type: String |
autoDelete |
(Optional) < Boolean flag— Argument Type: Boolean |
description |
(Optional) A plain text or HTML description for this object. If using HTML, you must surround your text with Argument Type: String |
orderingFilter |
(Optional) A Javascript block invoked when scheduling resources for a pool. A Javascript block is not required unless you need to override the default resource ordering behavior. Argument Type: String |
resourceNames |
(Optional) A list of resource names to add to the pool. This value does not need to refer to an existing resource. Any names that do not resolve to an existing resource will be skipped when assigning resources to steps. Argument Type: Collection |
resourcePoolDisabled |
(Optional) < Boolean flag— Argument Type: Boolean |
deleteResource
deleteResourcePool
Deletes a resource pool.
You must enter a resourcePoolName
.
Arguments | Descriptions |
---|---|
resourcePoolName |
Name for the resource pool that must be unique among all resource pools. A resource pool contains one or more resources. Argument Type: String |
getResource
Retrieves a resource by its name.
You must specify resourceName
.
Arguments | Descriptions |
---|---|
resourceName |
Name for the resource that must be unique among all resources. Argument Type: String |
Response
One resource
element, which includes the resource ID, name, agent state, time created, host name, owner, port, disabled flag, shell, step limit, workspace name, and so on. If using zones and gateways, `getResource ` returns a list of gateways where this resource participates.
getResourcesInEnvironmentTier
Retrieves the list of resources in an environment tier.
You must specify the projectName
, environmentName
and environmentTierName
.
Arguments | Descriptions |
---|---|
projectName |
Name of the project. This name must be unique among all projects. Argument Type: String Argument Type: String |
environmentName |
Name of the environment that must be unique among all projects. Argument Type: String |
environmentTierName |
Name for the environment tier that must be unique among all tiers for the environment. Argument Type: String |
ec-perl
Syntax:
$<object>->getResourcesInEnvironmentTier(<projectName>, <environmentName>, <environmentTierName>);
Example:
$ec->getResourcesInEnvironmentTier("Default", "PROD", "Tomcat");
getResourcesInPool
Retrieves a list of resources in a pool.
You must specify a resourcePoolName
.
Arguments | Descriptions |
---|---|
resourcePoolName |
The name of a resource pool containing one or more resources. Argument Type: String |
jobStepId |
(Optional) The unique CloudBees Flow-generated identifier (a UUID) for a job step that is assigned automatically when the job step is created. This is UUID of the job step related to this pool. Argument type: UUID |
getResourcePool
Retrieves a specified resource pool by name.
You must specify a resourcePoolName
.
Arguments | Descriptions |
---|---|
resourcePoolName |
Name for the resource pool that must be unique among all resource pools. Argument Type: String |
modifyResource
Modifies an existing resource. For a proxy resource, the proxyHostName
and proxyPort
arguments refer to the proxying CloudBees Flow agent. The hostName
and port
arguments refer to the proxy target.
You must specify a resourceName
.
Arguments | Descriptions | ||
---|---|---|---|
resourceName |
Name for the resource that must be unique among all resources. Argument Type: String |
||
artifactCacheDirectory |
(Optional) The directory on the agent host where retrieved artifacts are stored. Argument Type: String |
||
block |
(Optional) < Boolean flag— A newly modified resource will be pinged. This argument makes the Argument Type: Boolean |
||
description |
(Optional) A plain text or HTML description for this object. If using HTML, you must surround your text with Argument Type: String |
||
hostName |
(Optional) The name or IP address for the CloudBees Flow machine containing the agent for this resource. Argument Type: String |
||
hostType |
(Optional) Type of the host:
Argument Type: String |
||
newName |
(Optional) New name of an existing resource. Argument Type: String |
||
pools |
(Optional) A space-separated list of one or more pool names where this resource is a member. Steps defined to run on a resource pool will run on any available member (resource) in the pool. Argument Type: String
|
||
port |
(Optional) The port number for the CloudBees Flow agent. Default is to the default agent port, but you can change this port number because of port conflicts or multiple agents running on the same machine. Argument Type: Integer |
||
proxyCustomization |
(Optional) Customized Perl code specifying how the proxy resource communicates with the proxy target. This applies only to proxy resources. Argument Type: String |
||
proxyHostName |
(Optional) The IP address of the computer containing the CloudBees Flow Agent used for a proxy resource. Argument Type: String |
||
proxyPort |
(Optional) The CloudBees Flow agent port number for a proxy resource. See the Argument Type: Integer |
||
proxyProtocol |
(Optional) Protocol for communicating with the proxy target. Defaults to Argument Type: String |
||
repositoryNames |
(Optional) A list of repository names with each repository name listed on a "new line". Argument Type: String |
||
resourceDisabled |
< Boolean flag— Argument Type: String |
||
resourcePools |
(Optional) A comma-separated list of one or more pool names where this resource is a member. Spaces and commas in pool names are allowed. Steps defined to run on a resource pool will run on any available member (resource) in the pool. Argument Type: String
To create one pool with a space in its name:
To create multiple pools with spaces in their names:
To create a pool with a comma in its name:
|
||
shell |
(Optional) This sets a default shell for running step commands on this resource. The default is Argument Type: String |
||
stepLimit |
(Optional) This limits the number of steps that can be running on the resource at one time. Setting this value to 1 is a good way to enforce serial access to the resource. Argument Type: String |
||
trusted |
(Optional) < Boolean flag—
Argument Type: Boolean |
||
useSSL |
(Optional) < Boolean flag —
Argument Type: Boolean |
||
workspaceName |
(Optional) Name of the default workspace where job output is stored. Argument Type: String |
||
zoneName |
(Optional) Name of the zone where this resource resides, which must be unique among all zones. Argument Type: String |
modifyResourcePool
Modifies an existing resource pool.
You must specify a resourcePoolName
.
Arguments | Descriptions |
---|---|
resourcePoolName |
Name for the resource pool that must be unique among all resource pools. A resource pool contains one or more resources. Argument Type: String |
autoDelete |
(Optional) < Boolean flag— If this is set to Argument Type: Boolean |
description |
(Optional) A plain text or HTML description for this object. If using HTML, you must surround your text with Argument Type: String |
newName |
(Optional) Any new unique name for this resource pool. Argument Type: String |
orderingFilter |
(Optional) A Javascript block invoked when scheduling resources for a pool. A Javascript block is not required unless you need to override the default resource ordering behavior. Argument Type: String |
resourceNames |
(Optional) A list of resource names to add to the pool. This value does not need to refer to an existing resource. Any names that do not resolve to an existing resource will be skipped when assigning resources to steps. Argument Type: Collection |
resourcePoolDisabled |
(Optional) < Boolean flag— If this is set Argument Type: Boolean |
pingAllResources
Pings all resources.
Arguments | Description |
---|---|
block |
(Optional) < Boolean flag — The default value= Argument Type: Boolean |
pingResource
removeResourceFromEnvironmentTier
Removes a resource from the specified environment tier.
You must specify the resourceName
, projectName
, environmentName
. and environmentTierName
.
Arguments | Descriptions |
---|---|
resourceName |
Name for the resource that must be unique among all resources. Argument Type: String |
projectName |
Name of the project. This name must be unique among all projects. Argument Type: String Argument Type: String |
environmentName |
Name of the environment that must be unique among all projects. Argument Type: String |
environmentTierName |
Name for the environment tier that must be unique among all tiers for the environment. Argument Type: String |
ec-perl
Syntax:
$<object>->removeResourceFromEnvironmentTier(<resourceName>, <projectName>, <environmentName>, <environmentTierName>);
Example:
$ec->removeResourceFromEnvironmentTier("Web server", "Default", "QA", "Tomcat");
removeResourcesFromPool
Removes resources from the specified resource pool.
You must specify a resourcePoolName
.
Arguments | Descriptions |
---|---|
resourcePoolName |
Name for the resource pool that must be unique among all resource pools. Argument Type: String |
resourceNames |
(Optional) The list of resources to remove from this pool. Argument Type: Collection |
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.
You must specify the pluginKey
, pluginName
, projectName
, environmentName
, environmentTierName
, configurationName
.
Arguments | Descriptions |
---|---|
pluginKey |
The version independent name of the plugin. Argument type: String |
pluginName |
The name of the plugin. Argument type: String |
projectName |
The name of the project. Argument type: String |
environmentName |
The name of the environment. Argument type: String |
environmentTierName |
The name of the environment tier. Argument type: String |
configurationName |
The name of the plugin configuration. Argument type: String |
resourceNames |
(Optional) List of resources to use for discovery.. Argument type: Collection |
Positional arguments
pluginKey
, pluginName
, projectName
, environmentName
, environmentTierName
, configurationName
ec-perl
syntax: $<object>->runDiscovery(<pluginKey>, <pluginName>, <projectName>, <environmentName>, <environmentTierName>, <configurationName>, {<optionals>});