Configuring the max_in_flight settings for A product's jobs

Configuring the max_in_flight settings for A product's jobs
Configuring the max_in_flight settings for a product's jobs

Configures max_in_flight settings for jobs on a product. This overrides product defaults.

Values can be a either a percentage, or an absolute count of configured instances. Example: In order to set max_in_flight to 2, given a job with 10 instances, set max_in_flight as 2 or "20%".

To reset the max_in_flight value for a job to its default, use the string "default" as the value.

Request
URI
PUT
https://{opsmanager-installation}/api/v0/staged/products/{product_guid}/max_in_flight
COPY
Path Parameters
string
product_guid
Required

The guid of the product


Request Body
MaxInFlight of type(s) application/json
Optional
{
    "max_in_flight": {}
}
object
max_in_flight
Optional

This collection maps from job guid to either a number, percentage or "default"

Responses
200

OK

Operation doesn't return any data structure

400

Setup is not completed

Returns RequireSetupCompleted of type(s) application/json
{
    "errors": {
        "errors": [
            "string"
        ]
    }
}
object
errors
Optional

errors


401

Unauthorized

Returns UnauthorizedResponse of type(s) application/json
{
    "errors": {
        "errors": [
            "string"
        ]
    }
}
object
errors
Optional

errors


403

Forbidden

Returns ForbiddenResponse of type(s) application/json
{
    "errors": {
        "errors": [
            "string"
        ]
    }
}
object
errors
Optional

errors


404

Product not found

Returns RequiresProduct of type(s) application/json
{
    "errors": {
        "errors": [
            "string"
        ]
    }
}
object
errors
Optional

errors


422

Unprocessable Content

Returns NestedErrorsResponseVariant of type(s) application/json
{
    "errors": {
        "errors": [
            "string"
        ]
    }
}
object
errors
Optional

errors


Code Samples
COPY
                    curl -X PUT -H 'Authorization: <value>' -H 'Content-Type: application/json' -d '[{}]' https://{api_host}/api/v0/staged/products/{product_guid}/max_in_flight