Hierarchy (View Summary)

Implements

Constructors

Properties

Methods

addAgent addAgentCloud addAgentPool addAgentQueue addDeploymentGroup addDeploymentMachine addDeploymentMachineGroup addDeploymentTarget addEnvironment addKubernetesResource addTaskGroup addVariableGroup addVirtualMachineGroup createAadOAuthRequest createAcceptHeader createAgentPoolMaintenanceDefinition createAgentSession createRequestOptions createTeamProject deleteAgent deleteAgentCloud deleteAgentPool deleteAgentPoolMaintenanceDefinition deleteAgentPoolMaintenanceJob deleteAgentQueue deleteAgentRequest deleteAgentSession deleteDeploymentGroup deleteDeploymentMachine deleteDeploymentMachineGroup deleteDeploymentTarget deleteEnvironment deleteKubernetesResource deleteMessage deleteSecureFile deleteTaskDefinition deleteTaskGroup deleteVariableGroup deleteVirtualMachineGroup downloadSecureFile formatResponse generateDeploymentGroupAccessToken generateDeploymentMachineGroupAccessToken generateDeploymentPoolAccessToken getAgent getAgentCloud getAgentCloudRequests getAgentClouds getAgentCloudTypes getAgentPool getAgentPoolMaintenanceDefinition getAgentPoolMaintenanceDefinitions getAgentPoolMaintenanceJob getAgentPoolMaintenanceJobLogs getAgentPoolMaintenanceJobs getAgentPoolMetadata getAgentPools getAgentPoolsByIds getAgentQueue getAgentQueues getAgentQueuesByIds getAgentQueuesByNames getAgentQueuesForPools getAgentRequest getAgentRequests getAgentRequestsForAgent getAgentRequestsForAgents getAgentRequestsForDeploymentMachine getAgentRequestsForDeploymentMachines getAgentRequestsForDeploymentTarget getAgentRequestsForDeploymentTargets getAgentRequestsForPlan getAgentRequestsForQueue getAgents getAzureManagementGroups getAzureSubscriptions getDeploymentGroup getDeploymentGroups getDeploymentGroupsMetrics getDeploymentMachine getDeploymentMachineGroup getDeploymentMachineGroupMachines getDeploymentMachineGroups getDeploymentMachines getDeploymentPoolsSummary getDeploymentTarget getDeploymentTargets getEnvironmentById getEnvironmentDeploymentExecutionRecords getEnvironments getKubernetesResource getMessage getPackage getPackages getResourceLimits getResourceUsage getSecureFile getSecureFiles getSecureFilesByIds getSecureFilesByNames getTaskContentZip getTaskDefinition getTaskDefinitions getTaskGroup getTaskGroupHistory getTaskGroupRevision getTaskGroups getTaskHubLicenseDetails getVariableGroup getVariableGroups getVariableGroupsById getVirtualMachineGroup getVirtualMachines getVstsAadTenantId getYamlSchema hasPoolPermissions publishTaskGroup queryEndpoint querySecureFilesByProperties queueAgentPoolMaintenanceJob queueAgentRequest queueAgentRequestByPool refreshAgent refreshAgents refreshDeploymentMachines refreshDeploymentTargets replaceAgent replaceDeploymentMachine replaceDeploymentTarget sendMessage setAgentPoolMetadata shareVariableGroup undeleteTaskGroup updateAgent updateAgentCloud updateAgentPool updateAgentPoolMaintenanceDefinition updateAgentPoolMaintenanceJob updateAgentRequest updateAgentUpdateState updateAgentUserCapabilities updateDeploymentGroup updateDeploymentMachine updateDeploymentMachineGroup updateDeploymentMachineGroupMachines updateDeploymentMachines updateDeploymentTarget updateDeploymentTargets updateEnvironment updateSecureFile updateSecureFiles updateTaskGroup updateTaskGroupProperties updateTaskHubLicenseDetails updateVariableGroup updateVirtualMachineGroup updateVirtualMachines uploadSecureFile uploadTaskDefinition validateInputs

Constructors

Properties

baseUrl: string
http: HttpClient
rest: RestClient
userAgent: string
vsoClient: VsoClient
RESOURCE_AREA_ID: "a85b8835-c1a1-4aac-ae97-1c3d0ba72dbd"

Methods

  • Download a secure file by Id

    Parameters

    • project: string

      Project ID or project name

    • secureFileId: string

      The unique secure file Id

    • ticket: string

      A valid download ticket

    • Optionaldownload: boolean

      If download is true, the file is sent as attachement in the response body. If download is false, the response body contains the file stream.

    Returns Promise<ReadableStream>

  • Get information about an agent.

    Parameters

    • poolId: number

      The agent pool containing the agent

    • agentId: number

      The agent ID to get information about

    • OptionalincludeCapabilities: boolean

      Whether to include the agent's capabilities in the response

    • OptionalincludeAssignedRequest: boolean

      Whether to include details about the agent's current work

    • OptionalincludeLastCompletedRequest: boolean

      Whether to include details about the agents' most recent completed work

    • OptionalpropertyFilters: string[]

      Filter which custom properties will be returned

    Returns Promise<TaskAgent>

  • Get agent requests for a list deployment targets.

    Parameters

    • project: string

      Project ID or project name

    • deploymentGroupId: number

      ID of the deployment group to which the targets belong.

    • OptionaltargetIds: number[]

      Comma separated list of IDs of the deployment targets.

    • OptionalownerId: number

      Id of owner of agent job request.

    • OptionalcompletedOn: Date

      Datetime to return request after this time.

    • OptionalcompletedRequestCount: number

      Maximum number of completed requests to return for each target. Default is 50

    Returns Promise<TaskAgentJobRequest[]>

  • Get a list of agents.

    Parameters

    • poolId: number

      The agent pool containing the agents

    • OptionalagentName: string

      Filter on agent name

    • OptionalincludeCapabilities: boolean

      Whether to include the agents' capabilities in the response

    • OptionalincludeAssignedRequest: boolean

      Whether to include details about the agents' current work

    • OptionalincludeLastCompletedRequest: boolean

      Whether to include details about the agents' most recent completed work

    • OptionalpropertyFilters: string[]

      Filter which custom properties will be returned

    • Optionaldemands: string[]

      Filter by demands the agents can satisfy

    Returns Promise<TaskAgent[]>

  • Get a list of deployment targets in a deployment group.

    Parameters

    • project: string

      Project ID or project name

    • deploymentGroupId: number

      ID of the deployment group.

    • Optionaltags: string[]

      Get only the deployment targets that contain all these comma separted list of tags.

    • Optionalname: string

      Name pattern of the deployment targets to return.

    • OptionalpartialNameMatch: boolean

      When set to true, treats name as pattern. Else treats it as absolute match. Default is false.

    • Optionalexpand: DeploymentTargetExpands

      Include these additional details in the returned objects.

    • OptionalagentStatus: TaskAgentStatusFilter

      Get only deployment targets that have this status.

    • OptionalagentJobResult: TaskAgentJobResultFilter

      Get only deployment targets that have this last job result.

    • OptionalcontinuationToken: string

      Get deployment targets with names greater than this continuationToken lexicographically.

    • Optionaltop: number

      Maximum number of deployment targets to return. Default is 1000.

    • Optionalenabled: boolean

      Get only deployment targets that are enabled or disabled. Default is 'null' which returns all the targets.

    • OptionalpropertyFilters: string[]

    Returns Promise<PagedList<DeploymentMachine>>

  • List task groups.

    Parameters

    • project: string

      Project ID or project name

    • OptionaltaskGroupId: string

      Id of the task group.

    • Optionalexpanded: boolean

      'true' to recursively expand task groups. Default is 'false'.

    • OptionaltaskIdFilter: string

      Guid of the taskId to filter.

    • Optionaldeleted: boolean

      'true'to include deleted task groups. Default is 'false'.

    • Optionaltop: number

      Number of task groups to get.

    • OptionalcontinuationToken: Date

      Gets the task groups after the continuation token provided.

    • OptionalqueryOrder: TaskGroupQueryOrder

      Gets the results in the defined order. Default is 'CreatedOnDescending'.

    Returns Promise<TaskGroup[]>

  • Query secure files using a name pattern and a condition on file properties.

    Parameters

    • condition: string

      The main condition syntax is described here. Use the property('property-name') function to access the value of the specified property of a secure file. It returns null if the property is not set. E.g. and( eq( property('devices'), '2' ), in( property('provisioning profile type'), 'ad hoc', 'development' ) )

    • project: string

      Project ID or project name

    • OptionalnamePattern: string

      Name of the secure file to match. Can include wildcards to match multiple files.

    Returns Promise<SecureFile[]>

  • Upload a secure file, include the file stream in the request body

    Parameters

    • customHeaders: any
    • contentStream: ReadableStream

      Content to upload

    • project: string

      Project ID or project name

    • name: string

      Name of the file to upload

    • OptionalauthorizePipelines: boolean

      If authorizePipelines is true, then the secure file is authorized for use by all pipelines in the project.

    Returns Promise<SecureFile>