{
"webServices": [
{
"path": "api/analysis_reports",
"description": "Get details about Compute Engine tasks.",
"actions": [
{
"key": "is_queue_empty",
"description": "Check if the queue of Compute Engine is empty",
"since": "5.1",
"internal": true,
"post": false,
"hasResponseExample": true,
"changelog": []
}
]
},
{
"path": "api/authentication",
"description": "Handle authentication.",
"actions": [
{
"key": "login",
"description": "Authenticate a user.",
"since": "6.0",
"internal": false,
"post": true,
"hasResponseExample": false,
"changelog": [],
"params": [
{
"key": "login",
"description": "Login of the user",
"required": true,
"internal": false
},
{
"key": "password",
"description": "Password of the user",
"required": true,
"internal": false
}
]
},
{
"key": "logout",
"description": "Logout a user.",
"since": "6.3",
"internal": false,
"post": true,
"hasResponseExample": false,
"changelog": []
},
{
"key": "validate",
"description": "Check credentials.",
"since": "3.3",
"internal": false,
"post": false,
"hasResponseExample": true,
"changelog": []
}
]
},
{
"path": "api/ce",
"description": "Get information on Compute Engine tasks.",
"actions": [
{
"key": "activity",
"description": "Search for tasks.
Requires the system administration permission, or project administration permission if componentId is set.",
"since": "5.2",
"internal": false,
"post": false,
"hasResponseExample": true,
"changelog": [
{
"description": "fields \"branch\" and \"branchType\" added",
"version": "6.6"
},
{
"description": "field \"logs\" is deprecated and its value is always false",
"version": "6.1"
},
{
"description": "it's no more possible to specify the page parameter.",
"version": "5.5"
}
],
"params": [
{
"key": "componentId",
"description": "Id of the component (project) to filter on",
"required": false,
"internal": false,
"exampleValue": "AU-TpxcA-iU5OvuD2FL0"
},
{
"key": "componentQuery",
"description": "Limit search to:
filter=\"alert_status = ERROR and isFavorite and coverage >= 60 and coverage < 80\"
filter=\"reliability_rating>=2 and security_rating>=2 and sqale_rating>=2\"
filter=\"duplicated_lines_density = NO_DATA\"
filter='query = \"Sonar\"'
.tag = finance
tag in (offshore, java)
Each result contains:
api/qualityprofiles/search
",
"required": true,
"internal": false,
"exampleValue": "AU-Tpxb--iU5OvuD2FLy",
"deprecatedKey": "profile_key",
"deprecatedKeySince": "6.5"
},
{
"key": "params",
"description": "Parameters as semi-colon list of key=value
. Ignored if parameter reset is true.",
"required": false,
"internal": false,
"exampleValue": "params=key1=v1;key2=v2"
},
{
"key": "reset",
"description": "Reset severity and parameters of activated rule. Set the values defined on parent profile or from rule default values.",
"required": false,
"internal": false,
"possibleValues": [
"true",
"false",
"yes",
"no"
]
},
{
"key": "rule",
"description": "Rule key",
"required": true,
"internal": false,
"exampleValue": "squid:AvoidCycles",
"deprecatedKey": "rule_key",
"deprecatedKeySince": "6.5"
},
{
"key": "severity",
"description": "Severity. Ignored if parameter reset is true.",
"required": false,
"internal": false,
"possibleValues": [
"INFO",
"MINOR",
"MAJOR",
"CRITICAL",
"BLOCKER"
]
}
]
},
{
"key": "activate_rules",
"description": "Bulk-activate rules on one quality profile.api/qualityprofiles/search
",
"required": true,
"internal": false,
"exampleValue": "AU-TpxcA-iU5OvuD2FL0",
"deprecatedKey": "profile_key",
"deprecatedKeySince": "6.5"
},
{
"key": "targetSeverity",
"description": "Severity to set on the activated rules",
"required": false,
"internal": false,
"deprecatedKey": "activation_severity",
"deprecatedKeySince": "6.5",
"possibleValues": [
"INFO",
"MINOR",
"MAJOR",
"CRITICAL",
"BLOCKER"
]
},
{
"key": "template_key",
"description": "Key of the template rule to filter on. Used to search for the custom rules based on this template.",
"required": false,
"internal": false,
"exampleValue": "java:S001"
},
{
"key": "types",
"description": "Comma-separated list of types. Returned rules match any of the tags (OR operator)",
"since": "5.5",
"required": false,
"internal": false,
"exampleValue": "BUG",
"possibleValues": [
"CODE_SMELL",
"BUG",
"VULNERABILITY"
]
}
]
},
{
"key": "add_group",
"description": "Allow a group to edit a Quality Profile.api/qualityprofiles/search
",
"required": true,
"internal": false,
"exampleValue": "AU-Tpxb--iU5OvuD2FLy",
"deprecatedKey": "profile_key",
"deprecatedKeySince": "6.5"
},
{
"key": "rule",
"description": "Rule key",
"required": true,
"internal": false,
"exampleValue": "squid:AvoidCycles",
"deprecatedKey": "rule_key",
"deprecatedKeySince": "6.5"
}
]
},
{
"key": "deactivate_rules",
"description": "Bulk deactivate rules on Quality profiles.api/qualityprofiles/search
",
"required": true,
"internal": false,
"exampleValue": "AU-TpxcA-iU5OvuD2FL1",
"deprecatedKey": "profile_key",
"deprecatedKeySince": "6.5"
},
{
"key": "template_key",
"description": "Key of the template rule to filter on. Used to search for the custom rules based on this template.",
"required": false,
"internal": false,
"exampleValue": "java:S001"
},
{
"key": "types",
"description": "Comma-separated list of types. Returned rules match any of the tags (OR operator)",
"since": "5.5",
"required": false,
"internal": false,
"exampleValue": "BUG",
"possibleValues": [
"CODE_SMELL",
"BUG",
"VULNERABILITY"
]
}
]
},
{
"key": "delete",
"description": "Delete a quality profile and all its descendants. The default quality profile cannot be deleted.Require 'Administer System' permission or authentication with passcode
status: the running status