builds
Creates, updates, deletes, gets or lists a builds
resource.
Overview
Name | builds |
Type | Resource |
Id | azure.container_apps.builds |
Fields
- vw_builds
- builds
Name | Datatype | Description |
---|---|---|
buildName | text | field from the properties object |
build_status | text | field from the properties object |
builderName | text | field from the properties object |
configuration | text | field from the properties object |
destination_container_registry | text | field from the properties object |
log_stream_endpoint | text | field from the properties object |
provisioning_state | text | field from the properties object |
resourceGroupName | text | field from the properties object |
subscriptionId | text | field from the properties object |
token_endpoint | text | field from the properties object |
upload_endpoint | text | field from the properties object |
Name | Datatype | Description |
---|---|---|
properties | object | The build properties. |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
get | SELECT | buildName, builderName, resourceGroupName, subscriptionId | Get a BuildResource |
create_or_update | INSERT | buildName, builderName, resourceGroupName, subscriptionId | Create a BuildResource |
delete | DELETE | buildName, builderName, resourceGroupName, subscriptionId | Delete a BuildResource |
SELECT
examples
Get a BuildResource
- vw_builds
- builds
SELECT
buildName,
build_status,
builderName,
configuration,
destination_container_registry,
log_stream_endpoint,
provisioning_state,
resourceGroupName,
subscriptionId,
token_endpoint,
upload_endpoint
FROM azure.container_apps.vw_builds
WHERE buildName = '{{ buildName }}'
AND builderName = '{{ builderName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';
SELECT
properties
FROM azure.container_apps.builds
WHERE buildName = '{{ buildName }}'
AND builderName = '{{ builderName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';
INSERT
example
Use the following StackQL query and manifest file to create a new builds
resource.
- All Properties
- Manifest
/*+ create */
INSERT INTO azure.container_apps.builds (
buildName,
builderName,
resourceGroupName,
subscriptionId,
properties
)
SELECT
'{{ buildName }}',
'{{ builderName }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ properties }}'
;
- name: your_resource_model_name
props:
- name: properties
value:
- name: provisioningState
value: []
- name: buildStatus
value: []
- name: destinationContainerRegistry
value:
- name: server
value: string
- name: image
value: string
- name: configuration
value:
- name: baseOs
value: string
- name: platform
value: string
- name: platformVersion
value: string
- name: environmentVariables
value:
- - name: name
value: string
- name: value
value: string
- name: preBuildSteps
value:
- - name: description
value: string
- name: scripts
value:
- string
- name: httpGet
value:
- name: url
value: string
- name: fileName
value: string
- name: headers
value:
- string
- name: uploadEndpoint
value: string
- name: logStreamEndpoint
value: string
- name: tokenEndpoint
value: string
DELETE
example
Deletes the specified builds
resource.
/*+ delete */
DELETE FROM azure.container_apps.builds
WHERE buildName = '{{ buildName }}'
AND builderName = '{{ builderName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';