python2_packages
Creates, updates, deletes, gets or lists a python2_packages
resource.
Overview
Name | python2_packages |
Type | Resource |
Id | azure.automation.python2_packages |
Fields
- vw_python2_packages
- python2_packages
Name | Datatype | Description |
---|---|---|
description | text | field from the properties object |
activity_count | text | field from the properties object |
automationAccountName | text | field from the properties object |
content_link | text | field from the properties object |
creation_time | text | field from the properties object |
error | text | field from the properties object |
etag | text | Gets the etag of the resource. |
is_composite | text | field from the properties object |
is_global | text | field from the properties object |
last_modified_time | text | field from the properties object |
location | text | The geo-location where the resource lives |
packageName | text | field from the properties object |
provisioning_state | text | field from the properties object |
resourceGroupName | text | field from the properties object |
size_in_bytes | text | field from the properties object |
subscriptionId | text | field from the properties object |
tags | text | Resource tags. |
version | text | field from the properties object |
Name | Datatype | Description |
---|---|---|
etag | string | Gets the etag of the resource. |
location | string | The geo-location where the resource lives |
properties | object | Definition of the module property type. |
tags | object | Resource tags. |
Methods
Name | Accessible by | Required Params | Description |
---|---|---|---|
get | SELECT | automationAccountName, packageName, resourceGroupName, subscriptionId | Retrieve the python 2 package identified by package name. |
list_by_automation_account | SELECT | automationAccountName, resourceGroupName, subscriptionId | Retrieve a list of python 2 packages. |
create_or_update | INSERT | automationAccountName, packageName, resourceGroupName, subscriptionId, data__properties | Create or Update the python 2 package identified by package name. |
delete | DELETE | automationAccountName, packageName, resourceGroupName, subscriptionId | Delete the python 2 package by name. |
update | UPDATE | automationAccountName, packageName, resourceGroupName, subscriptionId | Update the python 2 package identified by package name. |
SELECT
examples
Retrieve a list of python 2 packages.
- vw_python2_packages
- python2_packages
SELECT
description,
activity_count,
automationAccountName,
content_link,
creation_time,
error,
etag,
is_composite,
is_global,
last_modified_time,
location,
packageName,
provisioning_state,
resourceGroupName,
size_in_bytes,
subscriptionId,
tags,
version
FROM azure.automation.vw_python2_packages
WHERE automationAccountName = '{{ automationAccountName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';
SELECT
etag,
location,
properties,
tags
FROM azure.automation.python2_packages
WHERE automationAccountName = '{{ automationAccountName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';
INSERT
example
Use the following StackQL query and manifest file to create a new python2_packages
resource.
- All Properties
- Manifest
/*+ create */
INSERT INTO azure.automation.python2_packages (
automationAccountName,
packageName,
resourceGroupName,
subscriptionId,
data__properties,
properties,
tags
)
SELECT
'{{ automationAccountName }}',
'{{ packageName }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ data__properties }}',
'{{ properties }}',
'{{ tags }}'
;
- name: your_resource_model_name
props:
- name: properties
value:
- name: contentLink
value:
- name: uri
value: string
- name: contentHash
value:
- name: algorithm
value: string
- name: value
value: string
- name: version
value: string
- name: tags
value: object
UPDATE
example
Updates a python2_packages
resource.
/*+ update */
UPDATE azure.automation.python2_packages
SET
tags = '{{ tags }}'
WHERE
automationAccountName = '{{ automationAccountName }}'
AND packageName = '{{ packageName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';
DELETE
example
Deletes the specified python2_packages
resource.
/*+ delete */
DELETE FROM azure.automation.python2_packages
WHERE automationAccountName = '{{ automationAccountName }}'
AND packageName = '{{ packageName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}';