deleteLicense
Deletes a license.
You must specify a productName
and featureName
.
Arguments | Descriptions |
---|---|
productName |
The name of the product with the licensed feature. Possible products include: `CloudBees CD/RO `. Argument type: String |
featureName |
The name of the licensed feature. Possible features include: Argument type: String |
getAdminLicense
Retrieves the admin license, which can be used when all concurrent user licenses are in use.
Arguments | Descriptions |
---|---|
None |
– |
Response
You can receive one or more responses, depending on how you are licensed and actual license usage at the time of your query.
Response examples:
When the user does not have the necessary permission to use the Administrator license:
<error requestId="1"> <code>AccessDenied</code> <where></where> <message>Principal '\bob@example.com' does not have execute privileges on systemObject[name=licensing,id=10]</message> <details></details> </error>
When the user has permission to get/use the Administrator license, but already has a User license:
` <result>User 'bob@example.com@192.168.17.217' already has an active license.</result>`
When the user has permission to use/get the Administrator license, has no other license, and the Administrator license is not currently assigned:
` <result>User 'bob@example.com@192.168.17.217' was given the admin license.</result>`
When the user has permission to get/use the Administrator license, has no license, and the Administrator license is currently assigned to someone else:
` <result>User 'joedoe@example.com@192.168.17.217' was given the admin license that previously belonged to 'bob@example.com@192.168.17.217'. </result>`
getCertificates
Returns the certificates in the trust chain for the server.
Arguments | Descriptions |
---|---|
None |
– |
getLicense
Retrieves information for one license.
You must specify the productName
and featureName
.
Arguments | Descriptions |
---|---|
featureName |
The name of the licensed feature. Possible features include: Argument: String |
productName |
The name of the product with the licensed feature. Possible products include: ` CloudBees CD/RO ` Argument: String |
getLicenseUsage
getServerInfo
Retrieves information about server ports and message delivery.
Arguments | Descriptions |
---|---|
None |
– |
getServerStatus
Retrieves the current status of the CloudBees CD/RO server, including log messages generated during the startup sequence.
Arguments | Descriptions |
---|---|
block |
(Optional) < Boolean flag— If the argument is set to Argument: Boolean |
diagnostics |
(Optional) < Boolean flag - ` 0|1|true|false` > Select the diagnostic information that you want in your output:
Argument: Boolean |
serverStateOnly |
(Optional)< Boolean flag - ` 0|1|true|false` > If the argument is set to Argument: Boolean |
timeout |
(Optional) This argument specifies the timeout for the The default value is 120 seconds. Argument: Integer |
Response
Returns the current status of the server, including the log message generated during the startup sequence. This command returns different information depending on when and how it is called.
You will get a lengthy response if you connect with a session that has admin privileges or if the server is still in a bootstrap state. After the server enters the "running" state, it is able to perform access checks but displays only the short form until you log in. |
A simple response:
<serverState>running</serverState>
For more detailed server status response information, click here .
importLicenseData
Imports one or more licenses.
You must specify licenseData
.
Arguments | Descriptions |
---|---|
licenseData |
The content of a license file ( |
licenseFile |
< localFileName > The license fie to import. This is a local file that will be read by ectool. The contents is sent as the |
logMessage
Enters a message in the server log.
Arguments | Descriptions |
---|---|
message |
Message to add to the server log. Argument: String |
level |
(Optional) Select a message level: Argument: String |
logger |
(Optional) Name of the object that logged the message. Argument: String |
setLogLevel
Changes the log level of a logger.
Arguments | Descriptions |
---|---|
logger |
Name of the user or resource that logged the message. Argument: String |
level |
Select a message level: Argument: String |
shutdownServer
Shuts down the CloudBees CD/RO server. Shutting down the server can take as long as a couple of minutes, depending on the server activity level at the time the shutdown command is issued.
The CloudBees CD/RO server is composed of two processes. The main process is a Java Virtual Machine (JVM). The second process, called the "wrapper", is responsible for interacting with the native operating system as a service. This wrapper process is responsible for starting and stopping the main JVM process.
Arguments | Descriptions |
---|---|
force |
(Optional) < Boolean flag— Argument: Boolean |
restart |
(Optional) < Boolean flag— Argument: Boolean |
tunePerformance
Adjusts how the server is performing.
Arguments | Descriptions |
---|---|
apiQueueSize |
Maximum number of threads that will be created in the API thread pool. Argument: Integer |
dbConnectionPoolSize |
Maximum number of database connections that the server will use. Argument: Integer |
dbThreadPoolSize |
Number of worker threads in the database connection manager. Argument: Integer |
dispatchQueueSize |
Maximum number of threads that will be created in the Dispatch thread pool. Argument: Integer |
quartzQueueSize |
Maximum number of threads that will be created in the Quartz thread pool. Argument: Integer |
stateMachineQueueSize |
Maximum number of threads that will be created in the Argument: Integer |