Server
    Bamboo / Reference / APIs
    Operations
    GET/admin/latest/artifactHandlers/agentLocalPUT/admin/latest/artifactHandlers/agentLocalGET/admin/latest/artifactHandlers/bambooRemotePUT/admin/latest/artifactHandlers/bambooRemoteGET/admin/latest/artifactHandlers/s3PUT/admin/latest/artifactHandlers/s3GET/admin/latest/artifactHandlers/sftpPUT/admin/latest/artifactHandlers/sftpGET/admin/latest/config/agentsGET/admin/latest/config/agents/{agentId}PUT/admin/latest/config/agents/{agentId}GET/admin/latest/config/auditLogPUT/admin/latest/config/auditLogGET/admin/latest/config/build/concurrencyPUT/admin/latest/config/build/concurrencyGET/admin/latest/config/build/monitoringPUT/admin/latest/config/build/monitoringGET/admin/latest/config/generalPUT/admin/latest/config/generalGET/admin/latest/config/imServerPUT/admin/latest/config/imServerDEL/admin/latest/config/imServerGET/admin/latest/config/mailServerPUT/admin/latest/config/mailServerDEL/admin/latest/config/mailServerGET/admin/latest/config/quarantinePUT/admin/latest/config/quarantineGET/admin/latest/config/remoteAgentSupportPUT/admin/latest/config/remoteAgentSupportGET/admin/latest/darkFeaturesGET/admin/latest/darkFeatures/{key}PUT/admin/latest/darkFeatures/{key}GET/admin/latest/darkFeatures/{key}/user/{userName}PUT/admin/latest/darkFeatures/{key}/user/{userName}GET/admin/latest/elastic/configPUT/admin/latest/elastic/configGET/admin/latest/ephemeral/configPUT/admin/latest/ephemeral/configPOST/admin/latest/ephemeral/config/test-connectionGET/admin/latest/expiry/configurationPUT/admin/latest/expiry/configurationPUT/admin/latest/expiry/runGET/admin/latest/expiry/statusGET/admin/latest/globalVariablesPOST/admin/latest/globalVariablesPUT/admin/latest/globalVariables/verifyGET/admin/latest/globalVariables/{variableId}PUT/admin/latest/globalVariables/{variableId}DEL/admin/latest/globalVariables/{variableId}GET/admin/latest/scheduler/jobsPOST/admin/latest/scheduler/jobs/triggerGET/admin/latest/security/groupsPOST/admin/latest/security/groupsGET/admin/latest/security/settingsPUT/admin/latest/security/settingsGET/admin/latest/security/trustedKeyPOST/admin/latest/security/trustedKeyDEL/admin/latest/security/trustedKey/{id}DEL/admin/latest/session/{name}GET/admin/latest/storageSettingsPUT/admin/latest/storageSettingsPOST/admin/latest/userPUT/admin/latest/user/{newUserName}
    GET

    Get admin latest artifactHandlers agentLocal

    Retrieve configuration of Agent-Local Artifact Handler.

    Request

    This request has no parameters.

    Responses

    Configuration of Agent-Local Artifact Handler

    application/json

    RestArtifactHandler
    GET/admin/latest/artifactHandlers/agentLocal
    1 2 3 curl --request GET \ --url 'http://{baseurl}/rest/admin/latest/artifactHandlers/agentLocal' \ --header 'Accept: application/json'
    200Response
    1 2 3 4 5 6 { "attributes": {}, "nonsharedArtifactsEnabled": true, "self": "<string>", "sharedArtifactsEnabled": true }
    PUT

    Put admin latest artifactHandlers agentLocal

    Update Agent-Local Artifact Handler configuration.

    Request

    Request bodyapplication/json

    New configuration of the artifact handler. If a configuration attribute is not present in the request, the previously stored value is used

    attributes

    object

    nonsharedArtifactsEnabled

    boolean

    sharedArtifactsEnabled

    boolean

    Responses

    Configuration of updated Agent Local Artifact handler

    application/json

    RestArtifactHandler
    PUT/admin/latest/artifactHandlers/agentLocal
    1 2 3 4 5 6 7 8 9 curl --request PUT \ --url 'http://{baseurl}/rest/admin/latest/artifactHandlers/agentLocal' \ --header 'Accept: application/json' \ --header 'Content-Type: application/json' \ --data '{ "attributes": {}, "nonsharedArtifactsEnabled": true, "sharedArtifactsEnabled": true }'
    200Response
    1 2 3 4 5 6 { "attributes": {}, "nonsharedArtifactsEnabled": true, "self": "<string>", "sharedArtifactsEnabled": true }
    GET

    Get admin latest artifactHandlers bambooRemote

    Retrieve configuration of Bamboo Server Artifact Handler.

    Request

    This request has no parameters.

    Responses

    Configuration of Bamboo Server Artifact Handler

    application/json

    SimpleRestArtifactHandler
    GET/admin/latest/artifactHandlers/bambooRemote
    1 2 3 curl --request GET \ --url 'http://{baseurl}/rest/admin/latest/artifactHandlers/bambooRemote' \ --header 'Accept: application/json'
    200Response
    1 2 3 4 5 { "nonsharedArtifactsEnabled": true, "self": "<string>", "sharedArtifactsEnabled": true }
    PUT

    Put admin latest artifactHandlers bambooRemote

    Update Bamboo Server Artifact Handler configuration.

    Request

    Request bodyapplication/json

    New configuration of the artifact handler. If a configuration attribute is not present in the request, the previously stored value is used

    nonsharedArtifactsEnabled

    boolean

    sharedArtifactsEnabled

    boolean

    Responses

    Configuration of updated Bamboo Server artifact handler

    application/json

    RestArtifactHandler
    PUT/admin/latest/artifactHandlers/bambooRemote
    1 2 3 4 5 6 7 8 curl --request PUT \ --url 'http://{baseurl}/rest/admin/latest/artifactHandlers/bambooRemote' \ --header 'Accept: application/json' \ --header 'Content-Type: application/json' \ --data '{ "nonsharedArtifactsEnabled": true, "sharedArtifactsEnabled": true }'
    200Response
    1 2 3 4 5 6 { "attributes": {}, "nonsharedArtifactsEnabled": true, "self": "<string>", "sharedArtifactsEnabled": true }
    GET

    Get admin latest artifactHandlers s3

    Retrieve configuration of S3 Artifact Handler.

    Request

    This request has no parameters.

    Responses

    Configuration of S3 Artifact Handler

    application/json

    RestArtifactHandler
    GET/admin/latest/artifactHandlers/s3
    1 2 3 curl --request GET \ --url 'http://{baseurl}/rest/admin/latest/artifactHandlers/s3' \ --header 'Accept: application/json'
    200Response
    1 2 3 4 5 6 { "attributes": {}, "nonsharedArtifactsEnabled": true, "self": "<string>", "sharedArtifactsEnabled": true }
    PUT

    Put admin latest artifactHandlers s3

    Update S3 Artifact Handler configuration.

    Request

    Request bodyapplication/json

    New configuration of the artifact handler. If a configuration attribute is not present in the request, the previously stored value is used

    attributes

    object

    nonsharedArtifactsEnabled

    boolean

    sharedArtifactsEnabled

    boolean

    Responses

    Configuration of updated S3 Artifact handler

    application/json

    RestArtifactHandler
    PUT/admin/latest/artifactHandlers/s3
    1 2 3 4 5 6 7 8 9 curl --request PUT \ --url 'http://{baseurl}/rest/admin/latest/artifactHandlers/s3' \ --header 'Accept: application/json' \ --header 'Content-Type: application/json' \ --data '{ "attributes": {}, "nonsharedArtifactsEnabled": true, "sharedArtifactsEnabled": true }'
    200Response
    1 2 3 4 5 6 { "attributes": {}, "nonsharedArtifactsEnabled": true, "self": "<string>", "sharedArtifactsEnabled": true }
    GET

    Get admin latest artifactHandlers sftp

    Retrieve configuration of SFTP Artifact Handler.

    Request

    This request has no parameters.

    Responses

    Configuration of SFTP Artifact Handler

    application/json

    SimpleRestArtifactHandler
    GET/admin/latest/artifactHandlers/sftp
    1 2 3 curl --request GET \ --url 'http://{baseurl}/rest/admin/latest/artifactHandlers/sftp' \ --header 'Accept: application/json'
    200Response
    1 2 3 4 5 { "nonsharedArtifactsEnabled": true, "self": "<string>", "sharedArtifactsEnabled": true }
    PUT

    Put admin latest artifactHandlers sftp

    Update SFTP Artifact Handler configuration.

    Request

    Request bodyapplication/json

    New configuration of the artifact handler. If a configuration attribute is not present in the request, the previously stored value is used

    nonsharedArtifactsEnabled

    boolean

    sharedArtifactsEnabled

    boolean

    Responses

    Configuration of updated SFTP artifact handler

    application/json

    RestArtifactHandler
    PUT/admin/latest/artifactHandlers/sftp
    1 2 3 4 5 6 7 8 curl --request PUT \ --url 'http://{baseurl}/rest/admin/latest/artifactHandlers/sftp' \ --header 'Accept: application/json' \ --header 'Content-Type: application/json' \ --data '{ "nonsharedArtifactsEnabled": true, "sharedArtifactsEnabled": true }'
    200Response
    1 2 3 4 5 6 { "attributes": {}, "nonsharedArtifactsEnabled": true, "self": "<string>", "sharedArtifactsEnabled": true }
    GET

    Get admin latest config agents

    Return collection of all agents of all types.

    Request

    This request has no parameters.

    Responses

    All agents of all types and links to each

    application/json

    object
    GET/admin/latest/config/agents
    1 2 3 curl --request GET \ --url 'http://{baseurl}/rest/admin/latest/config/agents' \ --header 'Accept: application/json'
    200Response
    1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 { "limit": 25, "next": "http://localhost:8085/rest/api/latest/../paginate?limit=25&start=50", "prev": "http://localhost:8085/rest/api/latest/../paginate?limit=25&start=0", "results": [ { "description": "This is a description", "enabled": true, "id": 131073, "link": "https://bamboo/rest/admin/latest/agent/131073", "name": "Default Agent", "type": "local" } ], "self": "http://localhost:8085/rest/api/latest/../paginate?limit=25&start=25", "start": 25 }
    GET

    Get admin latest config agents {agentId}

    Retrieve a build agent definition by id.

    Request

    Path parameters

    agentId

    string

    Required

    Responses

    Agent definition of agent with the id

    application/json

    RestAgent
    GET/admin/latest/config/agents/{agentId}
    1 2 3 curl --request GET \ --url 'http://{baseurl}/rest/admin/latest/config/agents/{agentId}' \ --header 'Accept: application/json'
    200Response
    1 2 3 4 5 6 7 8 { "description": "This is a description", "enabled": true, "id": 131073, "link": "https://bamboo/rest/admin/latest/agent/131073", "name": "Default Agent", "type": "local" }
    PUT

    Put admin latest config agents {agentId}

    Update agent details

    Request

    Path parameters

    agentId

    string

    Required

    Request bodyapplication/json

    RestAgent that contains the update values

    description

    string

    enabled

    boolean

    id

    integer

    link

    string

    name

    string

    type

    string

    Responses

    Updated agent successfully

    application/json

    RestAgent
    PUT/admin/latest/config/agents/{agentId}
    1 2 3 4 5 6 7 8 9 10 11 12 curl --request PUT \ --url 'http://{baseurl}/rest/admin/latest/config/agents/{agentId}' \ --header 'Accept: application/json' \ --header 'Content-Type: application/json' \ --data '{ "description": "This is a description", "enabled": true, "id": 131073, "link": "https://bamboo/rest/admin/latest/agent/131073", "name": "Default Agent", "type": "local" }'
    200Response
    1 2 3 4 5 6 7 8 { "description": "This is a description", "enabled": true, "id": 131073, "link": "https://bamboo/rest/admin/latest/agent/131073", "name": "Default Agent", "type": "local" }
    GET

    Get admin latest config auditLog

    Retrieve audit log settings.

    Request

    This request has no parameters.

    Responses

    Audit log settings

    application/json

    RestAuditLogConfiguration
    GET/admin/latest/config/auditLog
    1 2 3 curl --request GET \ --url 'http://{baseurl}/rest/admin/latest/config/auditLog' \ --header 'Accept: application/json'
    200Response
    1 2 3 4 { "auditLoggingEnabled": false, "self": "<string>" }
    PUT

    Put admin latest config auditLog

    Enable/disable audit log.

    Request

    Request bodyapplication/json

    Audit log settings

    auditLoggingEnabled

    boolean

    Responses

    Enable/disable audit log successfully

    application/json

    RestAuditLogConfiguration
    PUT/admin/latest/config/auditLog
    1 2 3 4 5 6 7 curl --request PUT \ --url 'http://{baseurl}/rest/admin/latest/config/auditLog' \ --header 'Accept: application/json' \ --header 'Content-Type: application/json' \ --data '{ "auditLoggingEnabled": false }'
    200Response
    1 2 3 4 { "auditLoggingEnabled": false, "self": "<string>" }
    GET

    Get admin latest config build concurrency

    Retrieve build concurrency settings.

    Request

    This request has no parameters.

    Responses

    Bamboo build concurrency settings

    application/json

    RestBuildConcurrency
    GET/admin/latest/config/build/concurrency
    1 2 3 curl --request GET \ --url 'http://{baseurl}/rest/admin/latest/config/build/concurrency' \ --header 'Accept: application/json'
    200Response
    1 2 3 4 5 { "buildConcurrencyEnabled": true, "defaultConcurrentBuildsNumber": 10, "self": "<string>" }
    PUT

    Put admin latest config build concurrency

    Update build concurrency settings. Partially update supported.

    Request

    Request bodyapplication/json

    buildConcurrencyEnabled

    boolean

    defaultConcurrentBuildsNumber

    integer

    Responses

    Status of the update operation

    application/json

    RestBuildConcurrency
    PUT/admin/latest/config/build/concurrency
    1 2 3 4 5 6 7 8 curl --request PUT \ --url 'http://{baseurl}/rest/admin/latest/config/build/concurrency' \ --header 'Accept: application/json' \ --header 'Content-Type: application/json' \ --data '{ "buildConcurrencyEnabled": true, "defaultConcurrentBuildsNumber": 10 }'
    200Response
    1 2 3 4 5 { "buildConcurrencyEnabled": true, "defaultConcurrentBuildsNumber": 10, "self": "<string>" }
    GET

    Get admin latest config build monitoring

    Retrieve build monitoring settings

    Request

    This request has no parameters.

    Responses

    Bamboo build monitoring settings

    application/json

    RestBuildMonitoring
    GET/admin/latest/config/build/monitoring
    1 2 3 curl --request GET \ --url 'http://{baseurl}/rest/admin/latest/config/build/monitoring' \ --header 'Accept: application/json'
    200Response
    1 2 3 4 5 6 7 8 9 10 11 12 13 14 { "buildMonitoringEnabled": true, "buildQueueMinutesTimeoutDefault": 30, "buildTimeMultiplierDefault": 2.5, "enableLogLineCountLimit": true, "enableLogLineLengthLimit": true, "enableLogSizeLimit": true, "forceStopHangingBuilds": true, "liveLogsAreActive": true, "logQuietMinutesTimeDefault": 10, "maxLogLineCount": 2154, "maxLogLineLength": 2154, "maxLogSizeKilobytes": 2154 }
    PUT

    Put admin latest config build monitoring

    Update build monitoring settings. Partially update supported.

    Request

    Request bodyapplication/json

    buildMonitoringEnabled

    boolean

    buildQueueMinutesTimeoutDefault

    integer

    buildTimeMultiplierDefault

    number

    enableLogLineCountLimit

    boolean

    enableLogLineLengthLimit

    boolean

    enableLogSizeLimit

    boolean

    forceStopHangingBuilds

    boolean

    liveLogsAreActive

    boolean

    logQuietMinutesTimeDefault

    integer

    maxLogLineCount

    integer

    Responses

    Status of the update operation and a link to the REST endpoint

    application/json

    BuildMonitoringLink
    PUT/admin/latest/config/build/monitoring
    1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 curl --request PUT \ --url 'http://{baseurl}/rest/admin/latest/config/build/monitoring' \ --header 'Accept: application/json' \ --header 'Content-Type: application/json' \ --data '{ "buildMonitoringEnabled": true, "buildQueueMinutesTimeoutDefault": 30, "buildTimeMultiplierDefault": 2.5, "enableLogLineCountLimit": true, "enableLogLineLengthLimit": true, "enableLogSizeLimit": true, "forceStopHangingBuilds": true, "liveLogsAreActive": true, "logQuietMinutesTimeDefault": 10, "maxLogLineCount": 2154, "maxLogLineLength": 2154, "maxLogSizeKilobytes": 2154 }'
    200Response
    1 2 3 { "link": "http://{baseurl}/rest/admin/latest/config/build/monitoring" }
    GET

    Get admin latest config general

    Retrieve Bamboo server general configurations.

    Request

    This request has no parameters.

    Responses

    Bamboo general configuration

    application/json

    RestGeneralConfiguration
    GET/admin/latest/config/general
    1 2 3 curl --request GET \ --url 'http://{baseurl}/rest/admin/latest/config/general' \ --header 'Accept: application/json'
    200Response
    1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 { "baseUrl": "http://bamboo.local", "branchDetectionIntervalSeconds": 100, "brokerClientUrl": "tcp://bamboo.local:5555", "brokerUrl": "nio://localhost:5555", "dashboardDefaultPageSize": 50, "enableGravatarSupport": true, "enableGzipCompression": true, "enableRssPolling": true, "gravatarServerUrl": "<string>", "instanceName": "CI instance", "quietPeriodGloballyDisabled": true, "rssPollingCronExpression": "0 7 * ? * *", "self": "<string>" }
    PUT

    Put admin latest config general

    Update bamboo server general configurations. Partially update supported.

    Request

    Request bodyapplication/json

    baseUrl

    string

    branchDetectionIntervalSeconds

    integer

    brokerClientUrl

    string

    brokerUrl

    string

    dashboardDefaultPageSize

    integer

    enableGravatarSupport

    boolean

    enableGzipCompression

    boolean

    enableRssPolling

    boolean

    gravatarServerUrl

    string

    instanceName

    string

    Responses

    Update successfully

    application/json

    RestBuildConcurrency
    PUT/admin/latest/config/general
    1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 curl --request PUT \ --url 'http://{baseurl}/rest/admin/latest/config/general' \ --header 'Accept: application/json' \ --header 'Content-Type: application/json' \ --data '{ "baseUrl": "http://bamboo.local", "branchDetectionIntervalSeconds": 100, "brokerClientUrl": "tcp://bamboo.local:5555", "brokerUrl": "nio://localhost:5555", "dashboardDefaultPageSize": 50, "enableGravatarSupport": true, "enableGzipCompression": true, "enableRssPolling": true, "gravatarServerUrl": "<string>", "instanceName": "CI instance", "quietPeriodGloballyDisabled": true, "rssPollingCronExpression": "0 7 * ? * *" }'
    200Response
    1 2 3 4 5 { "buildConcurrencyEnabled": true, "defaultConcurrentBuildsNumber": 10, "self": "<string>" }
    GET

    Get admin latest config imServer

    Get instant message server configuration.

    Request

    This request has no parameters.

    Responses

    Current IM server configuration

    application/json

    RestIMServerConfiguration
    GET/admin/latest/config/imServer
    1 2 3 curl --request GET \ --url 'http://{baseurl}/rest/admin/latest/config/imServer' \ --header 'Accept: application/json'
    200Response
    1 2 3 4 5 6 7 8 { "host": "im.server.com", "port": 8888, "requireTLSSSLConnection": true, "resource": "test", "self": "<string>", "username": "bamboo_user" }
    PUT

    Put admin latest config imServer

    Update or create existing IM server configuration in bamboo. If IM server is already configured in bamboo, update existing configuration. Otherwise, create IM server configuration.

    Request

    Request bodyapplication/json

    host

    string

    password

    string

    port

    integer

    requireTLSSSLConnection

    boolean

    resource

    string

    username

    string

    Responses

    Updated IM server configuration

    application/json

    RestIMServerConfiguration
    PUT/admin/latest/config/imServer
    1 2 3 4 5 6 7 8 9 10 11 12 curl --request PUT \ --url 'http://{baseurl}/rest/admin/latest/config/imServer' \ --header 'Accept: application/json' \ --header 'Content-Type: application/json' \ --data '{ "host": "im.server.com", "password": "<string>", "port": 8888, "requireTLSSSLConnection": true, "resource": "test", "username": "bamboo_user" }'
    200Response
    1 2 3 4 5 6 7 8 { "host": "im.server.com", "port": 8888, "requireTLSSSLConnection": true, "resource": "test", "self": "<string>", "username": "bamboo_user" }
    DEL

    Delete admin latest config imServer

    Delete current IM Server configuration.

    Request

    This request has no parameters.

    Responses

    Current IM server configuration is deleted

    DEL/admin/latest/config/imServer
    1 2 curl --request DELETE \ --url 'http://{baseurl}/rest/admin/latest/config/imServer'
    GET

    Get admin latest config mailServer

    Retrieve the current mail server configuration.

    Request

    This request has no parameters.

    Responses

    Mail Server configuration

    application/json

    RestMailConfiguration
    GET/admin/latest/config/mailServer
    1 2 3 curl --request GET \ --url 'http://{baseurl}/rest/admin/latest/config/mailServer' \ --header 'Accept: application/json'
    200Response
    1 2 3 4 5 6 7 8 9 10 11 12 13 { "emailSetting": "SMTP", "fromAddress": "mail@mailymail.com", "jndiLocation": "<string>", "name": "Amazing SMTP Server", "precedenceBulkHeaderExcluded": true, "self": "<string>", "smtpPort": "25", "smtpServer": "mail.thisisnotarealserver.com", "smtpUsername": "user", "subjectPrefix": "[READ THIS FROM BAMBOO]", "tlsEnabled": true }
    PUT

    Put admin latest config mailServer

    Update the mail server configuration.

    Request

    Request bodyapplication/json

    emailSetting

    string

    fromAddress

    string

    jndiLocation

    string

    name

    string

    precedenceBulkHeaderExcluded

    boolean

    smtpPassword

    string

    smtpPort

    string

    smtpServer

    string

    smtpUsername

    string

    subjectPrefix

    string

    Responses

    Updated mail server configuration

    application/json

    RestMailConfiguration
    PUT/admin/latest/config/mailServer
    1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 curl --request PUT \ --url 'http://{baseurl}/rest/admin/latest/config/mailServer' \ --header 'Accept: application/json' \ --header 'Content-Type: application/json' \ --data '{ "emailSetting": "SMTP", "fromAddress": "mail@mailymail.com", "jndiLocation": "<string>", "name": "Amazing SMTP Server", "precedenceBulkHeaderExcluded": true, "smtpPassword": "pass", "smtpPort": "25", "smtpServer": "mail.thisisnotarealserver.com", "smtpUsername": "user", "subjectPrefix": "[READ THIS FROM BAMBOO]", "tlsEnabled": true }'
    200Response
    1 2 3 4 5 6 7 8 9 10 11 12 13 { "emailSetting": "SMTP", "fromAddress": "mail@mailymail.com", "jndiLocation": "<string>", "name": "Amazing SMTP Server", "precedenceBulkHeaderExcluded": true, "self": "<string>", "smtpPort": "25", "smtpServer": "mail.thisisnotarealserver.com", "smtpUsername": "user", "subjectPrefix": "[READ THIS FROM BAMBOO]", "tlsEnabled": true }
    DEL

    Delete admin latest config mailServer

    Delete current mail configuration.

    Request

    This request has no parameters.

    Responses

    Successfully deleted mail configuration

    DEL/admin/latest/config/mailServer
    1 2 curl --request DELETE \ --url 'http://{baseurl}/rest/admin/latest/config/mailServer'
    GET

    Get admin latest config quarantine

    Retrieve Bamboo quarantine settings.

    Request

    This request has no parameters.

    Responses

    Current quarantine settings

    application/json

    RestQuarantineConfig
    GET/admin/latest/config/quarantine
    1 2 3 curl --request GET \ --url 'http://{baseurl}/rest/admin/latest/config/quarantine' \ --header 'Accept: application/json'
    200Response
    1 2 3 4 { "quarantineTestsEnabled": true, "self": "<string>" }
    PUT

    Put admin latest config quarantine

    Update Bamboo quarantine settings.

    Request

    Request bodyapplication/json

    quarantineTestsEnabled

    boolean

    Responses

    Quarantine settings of Bamboo is updated successfully, return updated config

    application/json

    RestQuarantineConfig
    PUT/admin/latest/config/quarantine
    1 2 3 4 5 6 7 curl --request PUT \ --url 'http://{baseurl}/rest/admin/latest/config/quarantine' \ --header 'Accept: application/json' \ --header 'Content-Type: application/json' \ --data '{ "quarantineTestsEnabled": true }'
    200Response
    1 2 3 4 { "quarantineTestsEnabled": true, "self": "<string>" }
    GET

    Get admin latest config remoteAgentSupport

    Retrieve the remote agent configuration

    Request

    This request has no parameters.

    Responses

    Remote agent support configuration

    application/json

    RestRemoteAgentConfiguration
    GET/admin/latest/config/remoteAgentSupport
    1 2 3 curl --request GET \ --url 'http://{baseurl}/rest/admin/latest/config/remoteAgentSupport' \ --header 'Accept: application/json'
    200Response
    1 2 3 4 { "remoteAgentsSupported": true, "self": "<string>" }
    PUT

    Put admin latest config remoteAgentSupport

    Update the remote agent configuration

    Request

    Request bodyapplication/json

    Remote agent configuration

    remoteAgentsSupported

    boolean

    Responses

    The remote agent configuration after the update

    application/json

    RestRemoteAgentConfiguration
    PUT/admin/latest/config/remoteAgentSupport
    1 2 3 4 5 6 7 curl --request PUT \ --url 'http://{baseurl}/rest/admin/latest/config/remoteAgentSupport' \ --header 'Accept: application/json' \ --header 'Content-Type: application/json' \ --data '{ "remoteAgentsSupported": true }'
    200Response
    1 2 3 4 { "remoteAgentsSupported": true, "self": "<string>" }
    GET

    Get admin latest darkFeatures

    Retrieves a list of dark features that are enabled for all users.

    Request

    This request has no parameters.

    Responses

    A list of dark features that are enabled for all users

    application/json

    array<RestDarkFeature>

    GET/admin/latest/darkFeatures
    1 2 3 curl --request GET \ --url 'http://{baseurl}/rest/admin/latest/darkFeatures' \ --header 'Accept: application/json'
    200Response
    1 2 3 4 5 6 [ { "enabled": true, "key": "my.bamboo.feature.key" } ]
    GET

    Get admin latest darkFeatures {key}

    Retrieves whether a given dark feature key is enabled for this instance.

    Request

    Path parameters

    key

    string

    Required

    Responses

    Status of the dark feature for this instance

    application/json

    RestDarkFeature
    GET/admin/latest/darkFeatures/{key}
    1 2 3 curl --request GET \ --url 'http://{baseurl}/rest/admin/latest/darkFeatures/{key}' \ --header 'Accept: application/json'
    200Response
    1 2 3 4 { "enabled": true, "key": "my.bamboo.feature.key" }
    PUT

    Put admin latest darkFeatures {key}

    Enable or disable a dark feature for all users of this instance.

    Request

    Path parameters

    key

    string

    Required

    Request bodyapplication/json

    enabled

    boolean

    key

    string

    Responses

    The updated dark feature

    application/json

    RestDarkFeature
    PUT/admin/latest/darkFeatures/{key}
    1 2 3 4 5 6 7 8 curl --request PUT \ --url 'http://{baseurl}/rest/admin/latest/darkFeatures/{key}' \ --header 'Accept: application/json' \ --header 'Content-Type: application/json' \ --data '{ "enabled": true, "key": "my.bamboo.feature.key" }'
    200Response
    1 2 3 4 { "enabled": true, "key": "my.bamboo.feature.key" }
    GET

    Get admin latest darkFeatures {key} user {userName}

    Retrieves whether a given dark feature key is enabled for a given user. A dark feature is enabled for a user if its either enabled for this instance or for the specific user.

    Request

    Path parameters

    userName

    string

    Required
    key

    string

    Required

    Responses

    Status of the dark feature for the given user

    application/json

    RestUserDarkFeature
    GET/admin/latest/darkFeatures/{key}/user/{userName}
    1 2 3 curl --request GET \ --url 'http://{baseurl}/rest/admin/latest/darkFeatures/{key}/user/{userName}' \ --header 'Accept: application/json'
    200Response
    1 2 3 4 5 { "enabled": true, "key": "my.bamboo.feature.key", "userName": "admin" }
    PUT

    Put admin latest darkFeatures {key} user {userName}

    Enable or disable a dark feature for a given user.

    Request

    Path parameters

    userName

    string

    Required
    key

    string

    Required

    Request bodyapplication/json

    enabled

    boolean

    key

    string

    Responses

    The updated dark feature

    application/json

    RestUserDarkFeature
    PUT/admin/latest/darkFeatures/{key}/user/{userName}
    1 2 3 4 5 6 7 8 curl --request PUT \ --url 'http://{baseurl}/rest/admin/latest/darkFeatures/{key}/user/{userName}' \ --header 'Accept: application/json' \ --header 'Content-Type: application/json' \ --data '{ "enabled": true, "key": "my.bamboo.feature.key" }'
    200Response
    1 2 3 4 5 { "enabled": true, "key": "my.bamboo.feature.key", "userName": "admin" }
    GET

    Get admin latest elastic config

    Retrieves the current elastic configuration.

    Request

    This request has no parameters.

    Responses

    Current elastic configuration of bamboo server

    application/json

    RestElasticConfiguration
    GET/admin/latest/elastic/config
    1 2 3 curl --request GET \ --url 'http://{baseurl}/rest/admin/latest/elastic/config' \ --header 'Accept: application/json'
    200Response
    1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 { "accessKeyId": "TEST-ACCESS-KEY-ID", "allocatePublicIpToVpcInstances": true, "awsCredentialsType": "ACCESS_KEY", "certificateFile": "/path/to/certificate", "elasticInstanceManagement": { "allowedNonBambooInstances": 3, "avgQueueTimeMinutes": 10, "idleAgentShutdownDelayMinutes": 5, "maxNumOfInstancesStart": 7, "numOfBuildsInQueue": 5, "numOfElasticBuildsInQueue": 1, "type": "Custom" }, "elasticTerminationConfiguration": { "enabled": true, "shutdownDelay": 300 }, "enabled": true, "maxNumOfElasticInstances": 15, "privateKeyFile": "/path/to/privateKey", "region": "US_EAST_1", "self": "<string>", "uploadAwsIdentifier": true }
    PUT

    Put admin latest elastic config

    Update elastic configuration.

    Request

    Request bodyapplication/json

    accessKeyId

    string

    allocatePublicIpToVpcInstances

    boolean

    awsCredentialsType

    string

    certificateFile

    string

    elasticInstanceManagement

    RestElasticInstanceManagement

    elasticTerminationConfiguration

    RestElasticTerminationConfiguration

    enabled

    boolean

    maxNumOfElasticInstances

    integer

    privateKeyFile

    string

    region

    string

    Responses

    Updated elastic configuration

    application/json

    RestElasticConfiguration
    PUT/admin/latest/elastic/config
    1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 curl --request PUT \ --url 'http://{baseurl}/rest/admin/latest/elastic/config' \ --header 'Accept: application/json' \ --header 'Content-Type: application/json' \ --data '{ "accessKeyId": "TEST-ACCESS-KEY-ID", "allocatePublicIpToVpcInstances": true, "awsCredentialsType": "ACCESS_KEY", "certificateFile": "/path/to/certificate", "elasticInstanceManagement": { "allowedNonBambooInstances": 3, "avgQueueTimeMinutes": 10, "idleAgentShutdownDelayMinutes": 5, "maxNumOfInstancesStart": 7, "numOfBuildsInQueue": 5, "numOfElasticBuildsInQueue": 1, "type": "Custom" }, "elasticTerminationConfiguration": { "enabled": true, "shutdownDelay": 300 }, "enabled": true, "maxNumOfElasticInstances": 15, "privateKeyFile": "/path/to/privateKey", "region": "US_EAST_1", "secretAccessKey": "<string>", "uploadAwsIdentifier": true }'
    200Response
    1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 { "accessKeyId": "TEST-ACCESS-KEY-ID", "allocatePublicIpToVpcInstances": true, "awsCredentialsType": "ACCESS_KEY", "certificateFile": "/path/to/certificate", "elasticInstanceManagement": { "allowedNonBambooInstances": 3, "avgQueueTimeMinutes": 10, "idleAgentShutdownDelayMinutes": 5, "maxNumOfInstancesStart": 7, "numOfBuildsInQueue": 5, "numOfElasticBuildsInQueue": 1, "type": "Custom" }, "elasticTerminationConfiguration": { "enabled": true, "shutdownDelay": 300 }, "enabled": true, "maxNumOfElasticInstances": 15, "privateKeyFile": "/path/to/privateKey", "region": "US_EAST_1", "self": "<string>", "uploadAwsIdentifier": true }
    GET

    Get admin latest ephemeral config

    Retrieves ephemeral agents configuration.

    Request

    This request has no parameters.

    Responses

    Ephemeral agents configuration

    application/json

    EphemeralAgentsConfigurationDTO
    GET/admin/latest/ephemeral/config
    1 2 3 curl --request GET \ --url 'http://{baseurl}/rest/admin/latest/ephemeral/config' \ --header 'Accept: application/json'
    200Response
    1 2 3 4 5 6 7 8 9 10 { "enabled": true, "label": "<string>", "pathToConfig": "<string>", "podsCleanup": { "delay": 2154, "enabled": true }, "waitForEphemeralAgentDuration": 2154 }
    PUT

    Put admin latest ephemeral config

    Modify ephemeral agents configuration.

    Request

    Request bodyapplication/json

    enabled

    boolean

    label

    string

    pathToConfig

    string

    podsCleanup

    PodsCleanup

    waitForEphemeralAgentDuration

    integer

    Responses

    Ephemeral agents configuration

    application/json

    EphemeralAgentsConfigurationDTO
    PUT/admin/latest/ephemeral/config
    1 2 3 4 5 6 7 8 9 10 11 12 13 14 curl --request PUT \ --url 'http://{baseurl}/rest/admin/latest/ephemeral/config' \ --header 'Accept: application/json' \ --header 'Content-Type: application/json' \ --data '{ "enabled": true, "label": "<string>", "pathToConfig": "<string>", "podsCleanup": { "delay": 2154, "enabled": true }, "waitForEphemeralAgentDuration": 2154 }'
    200Response
    1 2 3 4 5 6 7 8 9 10 { "enabled": true, "label": "<string>", "pathToConfig": "<string>", "podsCleanup": { "delay": 2154, "enabled": true }, "waitForEphemeralAgentDuration": 2154 }
    POST

    Post admin latest ephemeral config test-connection

    Test connection to ephemeral agents provider.

    Request

    Request bodyapplication/json

    enabled

    boolean

    label

    string

    pathToConfig

    string

    podsCleanup

    PodsCleanup

    waitForEphemeralAgentDuration

    integer

    Responses

    Result of connection testing

    application/json

    TestConnectionResultDto
    POST/admin/latest/ephemeral/config/test-connection
    1 2 3 4 5 6 7 8 9 10 11 12 13 14 curl --request POST \ --url 'http://{baseurl}/rest/admin/latest/ephemeral/config/test-connection' \ --header 'Accept: application/json' \ --header 'Content-Type: application/json' \ --data '{ "enabled": true, "label": "<string>", "pathToConfig": "<string>", "podsCleanup": { "delay": 2154, "enabled": true }, "waitForEphemeralAgentDuration": 2154 }'
    200Response
    1 2 3 4 5 6 { "clientVersion": "<string>", "errorMessage": "<string>", "serverVersion": "<string>", "success": true }
    GET

    Get admin latest expiry configuration

    Retrieves global build and deployment expiry configuration for this Bamboo instance.

    Request

    This request has no parameters.

    Responses

    Current expiry configuration

    application/json

    RestCombinedExpiryConfiguration
    GET/admin/latest/expiry/configuration
    1 2 3 curl --request GET \ --url 'http://{baseurl}/rest/admin/latest/expiry/configuration' \ --header 'Accept: application/json'
    200Response
    1 2 3 4 5 6 7 8 9 10 11 12 13 { "buildsToKeep": 2154, "cronExpression": "<string>", "deploymentsToKeep": 2154, "duration": 2154, "expireArtifacts": true, "expireLogs": true, "expireResults": true, "labelsToExclude": "<string>", "maximumBuildsToKeep": 2154, "maximumIgnoredLogSize": 2154, "period": "<string>" }
    PUT

    Put admin latest expiry configuration

    Update global build and deployment expiry configuration for this Bamboo instance. Partial configuration is not allowed (it will fail validation).

    Request

    Request bodyapplication/json

    buildsToKeep

    integer

    cronExpression

    string

    deploymentsToKeep

    integer

    duration

    integer

    expireArtifacts

    boolean

    expireLogs

    boolean

    expireResults

    boolean

    labelsToExclude

    string

    maximumBuildsToKeep

    integer

    maximumIgnoredLogSize

    integer

    Responses

    Newly saved expiry configuration

    application/json

    RestCombinedExpiryConfiguration
    PUT/admin/latest/expiry/configuration
    1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 curl --request PUT \ --url 'http://{baseurl}/rest/admin/latest/expiry/configuration' \ --header 'Accept: application/json' \ --header 'Content-Type: application/json' \ --data '{ "buildsToKeep": 2154, "cronExpression": "<string>", "deploymentsToKeep": 2154, "duration": 2154, "expireArtifacts": true, "expireLogs": true, "expireResults": true, "labelsToExclude": "<string>", "maximumBuildsToKeep": 2154, "maximumIgnoredLogSize": 2154, "period": "<string>" }'
    200Response
    1 2 3 4 5 6 7 8 9 10 11 12 13 { "buildsToKeep": 2154, "cronExpression": "<string>", "deploymentsToKeep": 2154, "duration": 2154, "expireArtifacts": true, "expireLogs": true, "expireResults": true, "labelsToExclude": "<string>", "maximumBuildsToKeep": 2154, "maximumIgnoredLogSize": 2154, "period": "<string>" }
    PUT

    Put admin latest expiry run

    Executes build and deployment expiry process. Will only start each process if it's not currently running.

    Request

    This request has no parameters.

    Responses

    Expiration process status

    application/json

    RunExpiryResponse
    PUT/admin/latest/expiry/run
    1 2 3 curl --request PUT \ --url 'http://{baseurl}/rest/admin/latest/expiry/run' \ --header 'Accept: application/json'
    202Response
    1 2 3 { "statusUrl": "<string>" }
    GET

    Get admin latest expiry status

    Retrieves build and deployment expiry status.

    Request

    This request has no parameters.

    Responses

    Status of both build and deployment expiry, containing information whether expiry is currently running and the last expiry execution date

    application/json

    RestCombinedExpiryStatus
    GET/admin/latest/expiry/status
    1 2 3 curl --request GET \ --url 'http://{baseurl}/rest/admin/latest/expiry/status' \ --header 'Accept: application/json'
    200Response
    1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 { "buildExpiryStatus": { "lastFinished": 2154, "lastFinishedDate": "<string>", "lastRun": 2154, "lastRunDate": "<string>", "lastRunSuccessful": true, "running": true }, "deploymentExpiryStatus": { "lastFinished": 2154, "lastFinishedDate": "<string>", "lastRun": 2154, "lastRunDate": "<string>", "lastRunSuccessful": true, "running": true } }
    GET

    Get admin latest globalVariables

    Return collection of all global variables. Value of variables that contain password in name will be encrypted with salted hash.

    Request

    This request has no parameters.

    Responses

    Collection of all global variables

    application/json

    RestGlobalVariables
    GET/admin/latest/globalVariables
    1 2 3 curl --request GET \ --url 'http://{baseurl}/rest/admin/latest/globalVariables' \ --header 'Accept: application/json'
    200Response
    1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 { "globalVariables": { "allElements": [ { "encrypted": true, "id": 1000, "link": "http://bamboo/rest/admin/latest/globalVariable/1000", "name": "name", "value": "value" } ], "globalVariables": [ { "encrypted": true, "id": 1000, "link": "http://bamboo/rest/admin/latest/globalVariable/1000", "name": "name", "value": "value" } ], "maxResult": 2154, "size": 2154, "startIndex": 2154 }, "link": "<string>" }
    POST

    Post admin latest globalVariables

    Create a single global variable.

    Request

    Request bodyapplication/json

    name

    string

    value

    string

    Responses

    Global variable that is created

    application/json

    RestGlobalVariable
    POST/admin/latest/globalVariables
    1 2 3 4 5 6 7 8 curl --request POST \ --url 'http://{baseurl}/rest/admin/latest/globalVariables' \ --header 'Accept: application/json' \ --header 'Content-Type: application/json' \ --data '{ "name": "name", "value": "value" }'
    201Response
    1 2 3 4 5 6 7 { "encrypted": true, "id": 1000, "link": "http://bamboo/rest/admin/latest/globalVariable/1000", "name": "name", "value": "value" }
    PUT

    Put admin latest globalVariables verify

    Server side verification that the encrypted value of a global variable has changed.

    Request

    Request bodyapplication/json

    name

    string

    rawValue

    string

    Responses

    Variable value matches provided value

    application/json

    any

    PUT/admin/latest/globalVariables/verify
    1 2 3 4 5 6 7 8 curl --request PUT \ --url 'http://{baseurl}/rest/admin/latest/globalVariables/verify' \ --header 'Accept: application/json' \ --header 'Content-Type: application/json' \ --data '{ "name": "<string>", "rawValue": "<string>" }'
    GET

    Get admin latest globalVariables {variableId}

    Retrieve a global variable definition. Value will be encrypted if variable name contains key word password.

    Request

    Path parameters

    variableId

    string

    Required

    Responses

    Variable definition which contains name, value and link to the variable

    application/json

    RestGlobalVariable
    GET/admin/latest/globalVariables/{variableId}
    1 2 3 curl --request GET \ --url 'http://{baseurl}/rest/admin/latest/globalVariables/{variableId}' \ --header 'Accept: application/json'
    200Response
    1 2 3 4 5 6 7 { "encrypted": true, "id": 1000, "link": "http://bamboo/rest/admin/latest/globalVariable/1000", "name": "name", "value": "value" }
    PUT

    Put admin latest globalVariables {variableId}

    Update value of a global variable.

    Request

    Path parameters

    variableId

    string

    Required

    Request bodyapplication/json

    name

    string

    value

    string

    Responses

    Update variable successfully

    application/json

    RestGlobalVariable
    PUT/admin/latest/globalVariables/{variableId}
    1 2 3 4 5 6 7 8 curl --request PUT \ --url 'http://{baseurl}/rest/admin/latest/globalVariables/{variableId}' \ --header 'Accept: application/json' \ --header 'Content-Type: application/json' \ --data '{ "name": "name", "value": "value" }'
    200Response
    1 2 3 4 5 6 7 { "encrypted": true, "id": 1000, "link": "http://bamboo/rest/admin/latest/globalVariable/1000", "name": "name", "value": "value" }
    DEL

    Delete admin latest globalVariables {variableId}

    Delete a global variable.

    Request

    Path parameters

    variableId

    string

    Required

    Responses

    Variable deleted successfully

    DEL/admin/latest/globalVariables/{variableId}
    1 2 curl --request DELETE \ --url 'http://{baseurl}/rest/admin/latest/globalVariables/{variableId}'
    GET

    Get admin latest scheduler jobs

    Gets the collection of jobs currently scheduled to run.

    Request

    This request has no parameters.

    Responses

    Collection of jobs successfully retrieved

    application/json

    array<RestScheduledJob>

    GET/admin/latest/scheduler/jobs
    1 2 3 curl --request GET \ --url 'http://{baseurl}/rest/admin/latest/scheduler/jobs' \ --header 'Accept: application/json'
    200Response
    1 2 3 4 5 6 7 8 [ { "groupName": "Plans", "name": "Plan Cleanup", "nextScheduledTime": "<string>", "self": "<string>" } ]
    POST

    Post admin latest scheduler jobs trigger

    Trigger background job execution.

    Request

    Request bodyapplication/json

    groupName

    string

    name

    string

    Responses

    Job is scheduled for execution

    application/json

    RestQuarantineConfig
    POST/admin/latest/scheduler/jobs/trigger
    1 2 3 4 5 6 7 8 curl --request POST \ --url 'http://{baseurl}/rest/admin/latest/scheduler/jobs/trigger' \ --header 'Accept: application/json' \ --header 'Content-Type: application/json' \ --data '{ "groupName": "Plans", "name": "Plan Cleanup" }'
    200Response
    1 2 3 4 { "quarantineTestsEnabled": true, "self": "<string>" }
    GET

    Get admin latest security groups

    Retrieve a list of groups in Bamboo. The list can be filtered by some attributes, e.g. name. Name is mandatory. Since name is unique, the result only contains 0 or 1 entry.

    Request

    Query parameters

    name

    string

    Required

    Responses

    list of groups

    application/json

    array<RestGroup>

    GET/admin/latest/security/groups
    1 2 3 curl --request GET \ --url 'http://{baseurl}/rest/admin/latest/security/groups?name={name}' \ --header 'Accept: application/json'
    200Response
    1 2 3 4 5 6 7 [ { "editable": false, "name": "bamboo-admin", "self": "<string>" } ]
    POST

    Post admin latest security groups

    Create a group.

    Request

    Request bodyapplication/json

    name

    string

    Responses

    Created group

    application/json

    RestGroup
    POST/admin/latest/security/groups
    1 2 3 4 5 6 7 curl --request POST \ --url 'http://{baseurl}/rest/admin/latest/security/groups' \ --header 'Accept: application/json' \ --header 'Content-Type: application/json' \ --data '{ "name": "bamboo-admin" }'
    201Response
    1 2 3 4 5 { "editable": false, "name": "bamboo-admin", "self": "<string>" }
    GET

    Get admin latest security settings

    Retrieve security settings.

    Request

    This request has no parameters.

    Responses

    Bamboo security settings

    application/json

    RestSecuritySettings
    GET/admin/latest/security/settings
    1 2 3 curl --request GET \ --url 'http://{baseurl}/rest/admin/latest/security/settings' \ --header 'Accept: application/json'
    200Response
    1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 { "agentAssignmentModificationByUsersAllowed": true, "bruteForceProtection": { "enabled": true, "loginAttempts": 2154 }, "displayContactDetailsEnabled": true, "manageAcceptedSshHostKeys": true, "manualEncryptionConfiguration": { "enabled": true, "limit": 2154, "limitUnit": "NANOSECONDS" }, "personalAccessTokensExpirationConfiguration": { "expirationRequired": true, "maxDaysUntilExpiry": 2154 }, "resolveArtifactsContentTypeByExtensionEnabled": true, "restrictedAdministratorRoleEnabled": true, "rssSecurityConfiguration": { "dockerImage": "atlassian/bamboo-specs-runner:9.0.0", "enabled": true, "executeSpecsInDocker": true, "localMavenDirectory": "<string>", "mountLocalMavenDirectory": true }, "showAuthorsDetailsToUsers": true, "signUp": { "enabled": true, "enabledCaptcha": true }, "soxComplianceModeEnabled": true, "unauthenticatedRemoteTriggerAllowed": true, "xsrfProtection": { "disableForHTTPGET": true, "enabled": true } }
    PUT

    Put admin latest security settings

    Update security settings. Partial update supported.

    Request

    Request bodyapplication/json

    agentAssignmentModificationByUsersAllowed

    boolean

    bruteForceProtection

    RestBruteForceProtection

    displayContactDetailsEnabled

    boolean

    manageAcceptedSshHostKeys

    boolean

    manualEncryptionConfiguration

    RestManualEncryptionConfiguration

    personalAccessTokensExpirationConfiguration

    RestPersonalAccessTokensExpirationConfiguration

    resolveArtifactsContentTypeByExtensionEnabled

    boolean

    restrictedAdministratorRoleEnabled

    boolean

    rssSecurityConfiguration

    RestRssSecurityConfiguration

    showAuthorsDetailsToUsers

    boolean

    Responses

    Link to the REST endpoint

    application/json

    SecuritySettingsLink
    PUT/admin/latest/security/settings
    1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 curl --request PUT \ --url 'http://{baseurl}/rest/admin/latest/security/settings' \ --header 'Accept: application/json' \ --header 'Content-Type: application/json' \ --data '{ "agentAssignmentModificationByUsersAllowed": true, "bruteForceProtection": { "enabled": true, "loginAttempts": 2154 }, "displayContactDetailsEnabled": true, "manageAcceptedSshHostKeys": true, "manualEncryptionConfiguration": { "enabled": true, "limit": 2154, "limitUnit": "NANOSECONDS" }, "personalAccessTokensExpirationConfiguration": { "expirationRequired": true, "maxDaysUntilExpiry": 2154 }, "resolveArtifactsContentTypeByExtensionEnabled": true, "restrictedAdministratorRoleEnabled": true, "rssSecurityConfiguration": { "dockerImage": "atlassian/bamboo-specs-runner:9.0.0", "enabled": true, "executeSpecsInDocker": true, "localMavenDirectory": "<string>", "mountLocalMavenDirectory": true }, "showAuthorsDetailsToUsers": true, "signUp": { "enabled": true, "enabledCaptcha": true }, "soxComplianceModeEnabled": true, "unauthenticatedRemoteTriggerAllowed": true, "xsrfProtection": { "disableForHTTPGET": true, "enabled": true } }'
    200Response
    1 2 3 { "link": "http://{baseurl}/rest/admin/latest/security/settings" }
    GET

    Get admin latest security trustedKey

    Get all trusted keys.

    Request

    This request has no parameters.

    Responses

    A list of trusted keys.

    application/json

    array<RestTrustedKey>

    GET/admin/latest/security/trustedKey
    1 2 3 curl --request GET \ --url 'http://{baseurl}/rest/admin/latest/security/trustedKey' \ --header 'Accept: application/json'
    200Response
    1 2 3 4 5 6 7 8 [ { "host": "bitbucket.com", "id": 2154, "key": "trusted_key", "self": "<string>" } ]
    POST

    Post admin latest security trustedKey

    Create new trusted key.

    Request

    Request bodyapplication/json

    Trusted key to add

    host

    string

    key

    string

    Responses

    Trusted key has been successfully added

    application/json

    RestTrustedKey
    POST/admin/latest/security/trustedKey
    1 2 3 4 5 6 7 8 curl --request POST \ --url 'http://{baseurl}/rest/admin/latest/security/trustedKey' \ --header 'Accept: application/json' \ --header 'Content-Type: application/json' \ --data '{ "host": "bitbucket.com", "key": "trusted_key" }'
    200Response
    1 2 3 4 5 6 { "host": "bitbucket.com", "id": 2154, "key": "trusted_key", "self": "<string>" }
    DEL

    Delete admin latest security trustedKey {id}

    Delete trusted key.

    Request

    Path parameters

    id

    string

    Required

    Responses

    Trusted key has been successfully deleted

    DEL/admin/latest/security/trustedKey/{id}
    1 2 curl --request DELETE \ --url 'http://{baseurl}/rest/admin/latest/security/trustedKey/{id}'
    DEL

    Delete admin latest session {name}

    Invalidate active sessions of the given user

    Request

    Path parameters

    name

    string

    Required
    user

    string

    Required

    Responses

    Requested user sessions have been invalidated

    DEL/admin/latest/session/{name}
    1 2 curl --request DELETE \ --url 'http://{baseurl}/rest/admin/latest/session/{name}'
    GET

    Get admin latest storageSettings

    Read storage configuration limits.

    Request

    This request has no parameters.

    Responses

    The storage limits

    application/json

    RestStorageConfiguration
    GET/admin/latest/storageSettings
    1 2 3 curl --request GET \ --url 'http://{baseurl}/rest/admin/latest/storageSettings' \ --header 'Accept: application/json'
    200Response
    1 2 3 4 { "hardLimit": 25, "softLimit": 20 }
    PUT

    Put admin latest storageSettings

    Set storage configuration limits.

    Request

    Request bodyapplication/json

    New storage configuration limits

    hardLimit

    integer

    softLimit

    integer

    Responses

    The storage limits

    application/json

    RestStorageConfiguration
    PUT/admin/latest/storageSettings
    1 2 3 4 5 6 7 8 curl --request PUT \ --url 'http://{baseurl}/rest/admin/latest/storageSettings' \ --header 'Accept: application/json' \ --header 'Content-Type: application/json' \ --data '{ "hardLimit": 25, "softLimit": 20 }'
    200Response
    1 2 3 4 { "hardLimit": 25, "softLimit": 20 }
    POST

    Post admin latest user

    Renames specified user.

    Request

    Query parameters

    externalRename

    string

    Request bodyapplication/json

    User rename request

    name

    string

    oldName

    string

    Responses

    User has been successfully renamed.

    POST/admin/latest/user
    1 2 3 4 5 6 7 curl --request POST \ --url 'http://{baseurl}/rest/admin/latest/user' \ --header 'Content-Type: application/json' \ --data '{ "name": "newUsername", "oldName": "oldUsername" }'
    PUT

    Put admin latest user {newUserName}

    Renames specified user.

    Request

    Path parameters

    newUserName

    string

    Required

    Query parameters

    externalRename

    string

    Request bodyapplication/json

    User rename request

    name

    string

    oldName

    string

    Responses

    User has been successfully renamed.

    PUT/admin/latest/user/{newUserName}
    1 2 3 4 5 6 7 curl --request PUT \ --url 'http://{baseurl}/rest/admin/latest/user/{newUserName}' \ --header 'Content-Type: application/json' \ --data '{ "name": "newUsername", "oldName": "oldUsername" }'

    Rate this page: