createOrUpdateTestDistributionAgentPool

@PUT(value = "api/test-distribution/agent-pools/{poolId}")
abstract suspend fun createOrUpdateTestDistributionAgentPool(@Path(value = "poolId") poolId: String, @Body testDistributionAgentPoolConfiguration: TestDistributionAgentPoolConfiguration): TestDistributionAgentPoolConfigurationWithId

Create or update an Agent Pool. Create a new Agent Pool in Develocity or update the configuration of an existing one. The orderIndex element is optional and can be used to specify the priority order in which the Agent Pool is considered. When not specified, the Agent Pool will be either added last on creation, or will not change position on update. When specified, the Agent Pool will be added at/moved to the specified index and all other Agent Pools will be moved down. If the specified index is out of bounds, the Agent Pool will be added last with the orderIndex adjusted accordingly. Responses:

  • 200: The Agent Pool was created or its configuration was updated successfully.

  • 400: The request body is malformed or contains invalid values for at least one of the properties.

  • 403: The authenticated user has insufficient permissions.

  • 404: No API key was specified in the request, the key has been revoked, or the user bearing the key lacks permissions for this operation.

Return

TestDistributionAgentPoolConfigurationWithId

Parameters

poolId

The ID of the pool to view.

testDistributionAgentPoolConfiguration