TeamCity REST API Reference 2024.07 Help

AuthorizedInfo

Contains information about agent authorization state. Send AuthorizedInfo objects to the /app/rest/agents/{agentLocator}/authorizedInfo endpoint via PUT requests to manually authorize and unauthorize agents.

Related Help article: Build Agent

Properties

status

Returns true if the current object state is enabled (for example, pinned for build PinInfo or authorized for agent AuthorizedInfo; otherwise, false.

comment

Contains detailed information about current status value: the time it was set, the user who did it, and their personal notes on the event.This timestamp and the user data are automatically generated and cannot be changed.

Schema

Below, you can find a full schema of this object, in XML and JSON formats. You can choose what fields to submit depending on your current needs. Different methods might expect different fields: the best approach is to request this entity via GET and use the response as a base for the following POST request.

A link to another object implies that you can substitute it with the schema of the linked object, if it is required for your call.

<authorizedInfo status="true"> <comment text="string" timestamp="string"> <user>[[[user...|user.html]]]</user> </comment> </authorizedInfo>
{ "comment" : { "text" : "text", "user" : "[[[user...|user.html]]]", "timestamp" : "timestamp" }, "status" : true }
Last modified: 21 August 2024