Skip to content

Commit f1d673c

Browse files
authored
Merge pull request #191501 from IngridAtMicrosoft/jobpython2
Jobs with Python 2
2 parents ac30f72 + 6fcf38d commit f1d673c

15 files changed

+128
-18
lines changed
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
---
2+
author: IngridAtMicrosoft
3+
ms.service: media-services
4+
ms.topic: include
5+
ms.date: 03/10/2022
6+
ms.author: inhenkel
7+
---
8+
9+
### Cancel a job with Python
10+
11+
Set up imports, environment variables, authentication and create the client.
12+
13+
:::code language="python" source="~/media-services-v3-python/all/jobs.py" id="JobSetup":::
14+
15+
Cancel the job.
16+
17+
:::code language="python" source="~/media-services-v3-python/all/jobs.py" id="JobCancel":::

articles/media-services/latest/includes/task-delete-job-cli.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ ms.date: 03/10/2022
66
ms.author: inhenkel
77
---
88

9-
## Delete a job with the CLI
9+
### Delete a job with the CLI
1010

1111
:::code language="azurecli" source="~/media-services-v3-python/cli/code-snippets.sh" id="AmsJobDelete" interactive="azurecli-interactive":::
1212

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
---
2+
author: IngridAtMicrosoft
3+
ms.service: media-services
4+
ms.topic: include
5+
ms.date: 03/11/2022
6+
ms.author: inhenkel
7+
---
8+
9+
### Delete a job with Python
10+
11+
:::code language="python" source="~/media-services-v3-python/all/jobs.py" id="JobSetup":::
12+
13+
:::code language="python" source="~/media-services-v3-python/all/jobs.py" id="JobDelete":::

articles/media-services/latest/includes/task-delete-job-rest.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,6 @@ ms.date: 03/10/2022
66
ms.author: inhenkel
77
---
88

9-
## Delete a job with REST
9+
### Delete a job with REST
1010

1111
See the Media Services [REST API](/rest/api/media/jobs/delete)
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
---
2+
author: IngridAtMicrosoft
3+
ms.service: media-services
4+
ms.topic: include
5+
ms.date: 03/10/2022
6+
ms.author: inhenkel
7+
---
8+
9+
### Show the details of a job with Python
10+
11+
Set up imports, environment variables, authentication and create the client.
12+
13+
:::code language="python" source="~/media-services-v3-python/all/jobs.py" id="JobSetup":::
14+
15+
Show the details of a job.
16+
17+
:::code language="python" source="~/media-services-v3-python/all/jobs.py" id="JobGet" :::

articles/media-services/latest/includes/task-get-job-rest.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,6 @@ ms.date: 03/10/2022
66
ms.author: inhenkel
77
---
88

9-
## Get a job with REST
9+
### Get a job with REST
1010

1111
See the Media Services [REST API](/rest/api/media/jobs/get)

articles/media-services/latest/includes/task-list-job-cli.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ ms.date: 03/10/2022
66
ms.author: inhenkel
77
---
88

9-
## List jobs with the CLI
9+
### List jobs with the CLI
1010

1111
:::code language="azurecli" source="~/media-services-v3-python/cli/code-snippets.sh" id="AmsJobList" interactive="azurecli-interactive":::
1212

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
---
2+
author: IngridAtMicrosoft
3+
ms.service: media-services
4+
ms.topic: include
5+
ms.date: 03/10/2022
6+
ms.author: inhenkel
7+
---
8+
9+
### List jobs with Python
10+
11+
Set up imports, environment variables, authentication and create the client.
12+
13+
:::code language="python" source="~/media-services-v3-python/all/jobs.py" id="JobSetup":::
14+
15+
List the jobs for a transform.
16+
17+
:::code language="python" source="~/media-services-v3-python/all/jobs.py" id="JobList" :::
18+

articles/media-services/latest/includes/task-list-job-rest.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,6 @@ ms.date: 03/10/2022
66
ms.author: inhenkel
77
---
88

9-
## List jobs with REST
9+
### List jobs with REST
1010

1111
See the Media Services [REST API](/rest/api/media/jobs/list)
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
---
2+
author: IngridAtMicrosoft
3+
ms.service: media-services
4+
ms.topic: include
5+
ms.date: 03/11/2022
6+
ms.author: inhenkel
7+
---
8+
9+
## Update a job with Python
10+
11+
Set up imports, environment variables, authentication and create the client.
12+
13+
:::code language="python" source="~/media-services-v3-python/all/jobs.py" id="JobSetup":::
14+
15+
Update the job.
16+
17+
:::code language="python" source="~/media-services-v3-python/all/jobs.py" id="JobUpdate" :::

0 commit comments

Comments
 (0)