Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -247,6 +247,51 @@
},
"x-ms-long-running-operation": true
}
},
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/builders/{builderName}/builds/{buildName}/listAuthToken": {
"post": {
"tags": [
"Builds"
],
"operationId": "Builds_ListAuthToken",
"description": "Gets the token used to connect to the endpoint where source code can be uploaded for a build.",
"parameters": [
{
"$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ApiVersionParameter"
},
{
"$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/SubscriptionIdParameter"
},
{
"$ref": "../../../../../common-types/resource-management/v3/types.json#/parameters/ResourceGroupNameParameter"
},
{
"$ref": "./Builders.json#/parameters/BuilderNameParameter"
},
{
"$ref": "#/parameters/BuildNameParameter"
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/BuildToken"
}
},
"default": {
"description": "Common error response.",
"schema": {
"$ref": "./CommonDefinitions.json#/definitions/DefaultErrorResponse"
}
}
},
"x-ms-examples": {
"Get Build Auth Token": {
"$ref": "./examples/Builds_ListAuthToken.json"
}
}
}
}
},
"definitions": {
Expand Down Expand Up @@ -311,6 +356,16 @@
"type": "string",
"description": "Endpoint to which the source code should be uploaded.",
"readOnly": true
},
"logStreamEndpoint": {
"type": "string",
"description": "Endpoint from which the build logs can be streamed.",
"readOnly": true
},
"tokenEndpoint": {
"type": "string",
"description": "Endpoint to use to retrieve an authentication token for log streaming and uploading source code.",
"readOnly": true
}
},
"description": "The build properties."
Expand Down Expand Up @@ -388,6 +443,24 @@
"server"
]
},
"BuildToken": {
"description": "Build Auth Token.",
"type": "object",
"properties": {
"token": {
"type": "string",
"x-ms-secret": true,
"description": "Authentication token.",
"readOnly": true
},
"expires": {
"format": "date-time",
"description": "Token expiration date.",
"type": "string",
"readOnly": true
}
}
},
"EnvironmentVariable": {
"type": "object",
"properties": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,9 @@
}
]
},
"uploadEndpoint": "foo.azurecontainerapps.dev/upload"
"uploadEndpoint": "https://foo.azurecontainerapps.dev/upload",
"logStreamEndpoint": "https://foo.azurecontainerapps.dev/logstream",
"tokenEndpoint": "https://management.azure.com/subscriptions/{subscription-id}/resourcegroups/{rg-id}/Microsoft.App/builders/testBuilder/builds/testBuild/listAuthToken"
},
"systemData": {
"createdBy": "sample@microsoft.com",
Expand Down Expand Up @@ -194,7 +196,9 @@
}
]
},
"uploadEndpoint": "foo.azurecontainerapps.dev/upload"
"uploadEndpoint": "https://foo.azurecontainerapps.dev/upload",
"logStreamEndpoint": "https://foo.azurecontainerapps.dev/logstream",
"tokenEndpoint": "https://management.azure.com/subscriptions/{subscription-id}/resourcegroups/{rg-id}/Microsoft.App/builders/testBuilder/builds/testBuild/listAuthToken"
},
"systemData": {
"createdBy": "sample@microsoft.com",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,9 @@
"properties": {
"provisioningState": "Succeeded",
"buildStatus": "InProgress",
"uploadEndpoint": "https://testStorage.blob.core.windows.net/buildGUID/blobName"
"uploadEndpoint": "https://foo.azurecontainerapps.dev/upload",
"logStreamEndpoint": "https://foo.azurecontainerapps.dev/logstream",
"tokenEndpoint": "https://management.azure.com/subscriptions/{subscription-id}/resourcegroups/{rg-id}/Microsoft.App/builders/testBuilder/builds/testBuild/listAuthToken"
},
"systemData": {
"createdBy": "sample@microsoft.com",
Expand All @@ -41,7 +43,9 @@
"properties": {
"provisioningState": "Creating",
"buildStatus": "InProgress",
"uploadEndpoint": "https://testStorage.blob.core.windows.net/buildGUID/blobName"
"uploadEndpoint": "https://foo.azurecontainerapps.dev/upload",
"logStreamEndpoint": "https://foo.azurecontainerapps.dev/logstream",
"tokenEndpoint": "https://management.azure.com/subscriptions/{subscription-id}/resourcegroups/{rg-id}/Microsoft.App/builders/testBuilder/builds/testBuild/listAuthToken"
},
"systemData": {
"createdBy": "sample@microsoft.com",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,9 @@
}
]
},
"uploadEndpoint": "foo.azurecontainerapps.dev/upload"
"uploadEndpoint": "https://foo.azurecontainerapps.dev/upload",
"logStreamEndpoint": "https://foo.azurecontainerapps.dev/logstream",
"tokenEndpoint": "https://management.azure.com/subscriptions/{subscription-id}/resourcegroups/{rg-id}/Microsoft.App/builders/testBuilder/builds/testBuild/listAuthToken"
},
"systemData": {
"createdBy": "sample@microsoft.com",
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"operationId": "Builds_ListAuthToken",
"title": "Builds_ListAuthToken_0",
"parameters": {
"api-version": "2023-08-01-preview",
"subscriptionId": "00000000-0000-0000-0000-000000000000",
"resourceGroupName": "rg",
"builderName": "testBuilder",
"buildName": "testBuild"
},
"responses": {
"200": {
"headers": {},
"body": {
"token": "foobartoken",
"expires": "2022-07-14T19:22:50.3080223Z"
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,9 @@
}
]
},
"uploadEndpoint": "foo.azurecontainerapps.dev/upload"
"uploadEndpoint": "https://foo.azurecontainerapps.dev/upload",
"logStreamEndpoint": "https://foo.azurecontainerapps.dev/logstream",
"tokenEndpoint": "https://management.azure.com/subscriptions/{subscription-id}/resourcegroups/{rg-id}/Microsoft.App/builders/testBuilder/builds/testBuild/listAuthToken"
},
"systemData": {
"createdBy": "sample@microsoft.com",
Expand Down Expand Up @@ -137,7 +139,9 @@
}
]
},
"uploadEndpoint": "foo.azurecontainerapps.dev/upload"
"uploadEndpoint": "https://foo.azurecontainerapps.dev/upload",
"logStreamEndpoint": "https://foo.azurecontainerapps.dev/logstream",
"tokenEndpoint": "https://management.azure.com/subscriptions/{subscription-id}/resourcegroups/{rg-id}/Microsoft.App/builders/testBuilder/builds/testBuild/listAuthToken"
},
"systemData": {
"createdBy": "sample@microsoft.com",
Expand Down