Oidctoken - Create

POST https://dev.azure.com/{organization}/{scopeIdentifier}/_apis/distributedtask/hubs/{hubName}/plans/{planId}/jobs/{jobId}/oidctoken?api-version=7.1-preview.1
POST https://dev.azure.com/{organization}/{scopeIdentifier}/_apis/distributedtask/hubs/{hubName}/plans/{planId}/jobs/{jobId}/oidctoken?serviceConnectionId={serviceConnectionId}&api-version=7.1-preview.1

URI Parameters

Name In Required Type Description
hubName
path True

string

The name of the server hub. Common examples: "build", "rm", "checks"

jobId
path True

string

uuid
organization
path True

string

The name of the Azure DevOps organization.

planId
path True

string

uuid
scopeIdentifier
path True

string

uuid

The project GUID to scope the request

api-version
query True

string

Version of the API to use. This should be set to '7.1-preview.1' to use this version of the api.

serviceConnectionId
query

string

uuid

Responses

Name Type Description
200 OK

TaskHubOidcToken

successful operation

Security

accessToken

Personal access token. Use any value for the user name and the token as the password.

Type: basic

Definitions

TaskHubOidcToken

Name Type Description
oidcToken

string