Skip to main content

python2_packages

Creates, updates, deletes, gets or lists a python2_packages resource.

Overview

Namepython2_packages
TypeResource
Idazure.automation.python2_packages

Fields

NameDatatypeDescription
descriptiontextfield from the properties object
activity_counttextfield from the properties object
automationAccountNametextfield from the properties object
content_linktextfield from the properties object
creation_timetextfield from the properties object
errortextfield from the properties object
etagtextGets the etag of the resource.
is_compositetextfield from the properties object
is_globaltextfield from the properties object
last_modified_timetextfield from the properties object
locationtextThe geo-location where the resource lives
packageNametextfield from the properties object
provisioning_statetextfield from the properties object
resourceGroupNametextfield from the properties object
size_in_bytestextfield from the properties object
subscriptionIdtextfield from the properties object
tagstextResource tags.
versiontextfield from the properties object

Methods

NameAccessible byRequired ParamsDescription
getSELECTautomationAccountName, packageName, resourceGroupName, subscriptionIdRetrieve the python 2 package identified by package name.
list_by_automation_accountSELECTautomationAccountName, resourceGroupName, subscriptionIdRetrieve a list of python 2 packages.
create_or_updateINSERTautomationAccountName, packageName, resourceGroupName, subscriptionId, data__propertiesCreate or Update the python 2 package identified by package name.
deleteDELETEautomationAccountName, packageName, resourceGroupName, subscriptionIdDelete the python 2 package by name.
updateUPDATEautomationAccountName, packageName, resourceGroupName, subscriptionIdUpdate the python 2 package identified by package name.

SELECT examples

Retrieve a list of python 2 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 }}';

INSERT example

Use the following StackQL query and manifest file to create a new python2_packages resource.

/*+ create */
INSERT INTO azure.automation.python2_packages (
automationAccountName,
packageName,
resourceGroupName,
subscriptionId,
data__properties,
properties,
tags
)
SELECT
'{{ automationAccountName }}',
'{{ packageName }}',
'{{ resourceGroupName }}',
'{{ subscriptionId }}',
'{{ data__properties }}',
'{{ properties }}',
'{{ tags }}'
;

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 }}';