-
Notifications
You must be signed in to change notification settings - Fork 5.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Added jobs.json and examples * Add jobs to readme * Fixed incorrect job schedule examples
- Loading branch information
1 parent
e759c73
commit 171c913
Showing
41 changed files
with
4,367 additions
and
0 deletions.
There are no files selected for viewing
14 changes: 14 additions & 0 deletions
14
...esource-manager/Microsoft.Sql/preview/2017-03-01-preview/examples/CancelJobExecution.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
{ | ||
"parameters":{ | ||
"subscriptionId":"00000000-1111-2222-3333-444444444444", | ||
"resourceGroupName":"group1", | ||
"serverName":"server1", | ||
"jobAgentName":"agent1", | ||
"jobName":"job1", | ||
"jobExecutionId":"5555-6666-7777-8888-999999999999", | ||
"api-version":"2017-03-01-preview" | ||
}, | ||
"responses":{ | ||
"200":{ } | ||
} | ||
} |
29 changes: 29 additions & 0 deletions
29
...esource-manager/Microsoft.Sql/preview/2017-03-01-preview/examples/CreateJobExecution.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
{ | ||
"parameters": { | ||
"subscriptionId": "00000000-1111-2222-3333-444444444444", | ||
"resourceGroupName": "group1", | ||
"serverName": "server1", | ||
"jobAgentName": "agent1", | ||
"jobName": "job1", | ||
"api-version": "2017-03-01-preview" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"properties": { | ||
"jobVersion": 1, | ||
"jobExecutionId": "5555-6666-7777-8888-999999999999", | ||
"lifecycle": "Created", | ||
"provisioningState": "Created", | ||
"createTime": "2016-09-23T01:00:00.0000000Z", | ||
"currentAttempts": 0, | ||
"lastMessage": "Job execution created." | ||
}, | ||
"id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/group1/providers/Microsoft.Sql/servers/server1/jobAgents/agent1/jobs/job1/executions/5555-6666-7777-8888-999999999999", | ||
"name": "5555-6666-7777-8888-999999999999", | ||
"type": "Microsoft.Sql/servers/jobAgents/executions" | ||
} | ||
}, | ||
"202": {} | ||
} | ||
} |
40 changes: 40 additions & 0 deletions
40
...rce-manager/Microsoft.Sql/preview/2017-03-01-preview/examples/CreateOrUpdateJobAgent.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
{ | ||
"parameters":{ | ||
"subscriptionId":"00000000-1111-2222-3333-444444444444", | ||
"resourceGroupName":"group1", | ||
"serverName":"server1", | ||
"jobAgentName":"agent1", | ||
"api-version":"2017-03-01-preview", | ||
"parameters":{ | ||
"location":"southeastasia", | ||
"properties":{ | ||
"databaseId":"/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/group1/providers/Microsoft.Sql/servers/server1/databases/db1" | ||
} | ||
} | ||
}, | ||
"responses":{ | ||
"200":{ | ||
"body":{ | ||
"id":"/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/group1/providers/Microsoft.Sql/servers/server1/jobAgents/agent1", | ||
"name":"agent1", | ||
"type":"Microsoft.Sql/servers/jobAgents", | ||
"location":"southeastasia", | ||
"properties":{ | ||
"databaseId":"/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/group1/providers/Microsoft.Sql/servers/server1/databases/db1" | ||
} | ||
} | ||
}, | ||
"201":{ | ||
"body":{ | ||
"id":"/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/group1/providers/Microsoft.Sql/servers/server1/jobAgents/agent1", | ||
"name":"agent1", | ||
"type":"Microsoft.Sql/servers/jobAgents", | ||
"location":"southeastasia", | ||
"properties":{ | ||
"databaseId":"/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/group1/providers/Microsoft.Sql/servers/server1/databases/db1" | ||
} | ||
} | ||
}, | ||
"202":{ } | ||
} | ||
} |
38 changes: 38 additions & 0 deletions
38
...anager/Microsoft.Sql/preview/2017-03-01-preview/examples/CreateOrUpdateJobCredential.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
{ | ||
"parameters":{ | ||
"subscriptionId":"00000000-1111-2222-3333-444444444444", | ||
"resourceGroupName":"group1", | ||
"serverName":"server1", | ||
"jobAgentName":"agent1", | ||
"credentialName":"cred1", | ||
"api-version":"2017-03-01-preview", | ||
"parameters":{ | ||
"properties":{ | ||
"username":"myuser", | ||
"password":"<password>" | ||
} | ||
} | ||
}, | ||
"responses":{ | ||
"200":{ | ||
"body":{ | ||
"id":"/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/group1/providers/Microsoft.Sql/servers/server1/jobAgents/agent1/credentials/cred1", | ||
"name":"cred1", | ||
"type":"Microsoft.Sql/servers/jobAccounts/credentials", | ||
"properties":{ | ||
"username":"myuser" | ||
} | ||
} | ||
}, | ||
"201":{ | ||
"body":{ | ||
"id":"/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/group1/providers/Microsoft.Sql/servers/server1/jobAgents/agent1/credentials/cred1", | ||
"name":"cred1", | ||
"type":"Microsoft.Sql/servers/jobAccounts/credentials", | ||
"properties":{ | ||
"username":"myuser" | ||
} | ||
} | ||
} | ||
} | ||
} |
46 changes: 46 additions & 0 deletions
46
...manager/Microsoft.Sql/preview/2017-03-01-preview/examples/CreateOrUpdateJobExecution.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
{ | ||
"parameters": { | ||
"subscriptionId": "00000000-1111-2222-3333-444444444444", | ||
"resourceGroupName": "group1", | ||
"serverName": "server1", | ||
"jobAgentName": "agent1", | ||
"jobName": "job1", | ||
"jobExecutionId": "5555-6666-7777-8888-999999999999", | ||
"api-version": "2017-03-01-preview" | ||
}, | ||
"responses": { | ||
"200": { | ||
"body": { | ||
"properties": { | ||
"jobVersion": 1, | ||
"jobExecutionId": "5555-6666-7777-8888-999999999999", | ||
"lifecycle": "Created", | ||
"provisioningState": "Created", | ||
"createTime": "2017-12-18T19:02:00.8707045Z", | ||
"currentAttempts": 0, | ||
"lastMessage": "Job execution created." | ||
}, | ||
"id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/group1/providers/Microsoft.Sql/servers/server1/jobAgents/agent1/jobs/job1/executions/5555-6666-7777-8888-999999999999", | ||
"name": "5555-6666-7777-8888-999999999999", | ||
"type": "Microsoft.Sql/servers/jobAgents/executions" | ||
} | ||
}, | ||
"201": { | ||
"body": { | ||
"properties": { | ||
"jobVersion": 1, | ||
"jobExecutionId": "5555-6666-7777-8888-999999999999", | ||
"lifecycle": "Created", | ||
"provisioningState": "Created", | ||
"createTime": "2017-05-04T19:02:00.8707045Z", | ||
"currentAttempts": 0, | ||
"lastMessage": "Job execution created." | ||
}, | ||
"id": "/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/group1/providers/Microsoft.Sql/servers/server1/jobAgents/agent1/jobs/job1/executions/5555-6666-7777-8888-999999999999", | ||
"name": "5555-6666-7777-8888-999999999999", | ||
"type": "Microsoft.Sql/servers/jobAgents/executions" | ||
} | ||
}, | ||
"202": {} | ||
} | ||
} |
60 changes: 60 additions & 0 deletions
60
...ource-manager/Microsoft.Sql/preview/2017-03-01-preview/examples/CreateOrUpdateJobMax.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
{ | ||
"parameters":{ | ||
"subscriptionId":"00000000-1111-2222-3333-444444444444", | ||
"resourceGroupName":"group1", | ||
"serverName":"server1", | ||
"jobAgentName":"agent1", | ||
"jobName":"job1", | ||
"api-version":"2017-03-01-preview", | ||
"parameters":{ | ||
"properties":{ | ||
"description":"my favourite job", | ||
"schedule":{ | ||
"startTime":"2015-09-24T18:30:01Z", | ||
"endTime":"2015-09-24T23:59:59Z", | ||
"type":"Recurring", | ||
"interval":"PT5M", | ||
"enabled":true | ||
} | ||
} | ||
} | ||
}, | ||
"responses":{ | ||
"200":{ | ||
"body":{ | ||
"id":"/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/group1/providers/Microsoft.Sql/servers/server1/jobAgents/agent1/jobs/job1", | ||
"name":"job1", | ||
"type":"Microsoft.Sql/servers/jobAccounts/jobs", | ||
"properties":{ | ||
"description":"my favourite job", | ||
"version":0, | ||
"schedule":{ | ||
"startTime":"2015-09-24T18:30:01Z", | ||
"endTime":"2015-09-24T23:59:59Z", | ||
"type":"Recurring", | ||
"interval":"PT5M", | ||
"enabled":true | ||
} | ||
} | ||
} | ||
}, | ||
"201":{ | ||
"body":{ | ||
"id":"/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/group1/providers/Microsoft.Sql/servers/server1/jobAgents/agent1/jobs/job1", | ||
"name":"job1", | ||
"type":"Microsoft.Sql/servers/jobAccounts/jobs", | ||
"properties":{ | ||
"description":"my favourite job", | ||
"version":0, | ||
"schedule":{ | ||
"startTime":"2015-09-24T18:30:01Z", | ||
"endTime":"2015-09-24T23:59:59Z", | ||
"type":"Recurring", | ||
"interval":"PT5M", | ||
"enabled":true | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} |
47 changes: 47 additions & 0 deletions
47
...ource-manager/Microsoft.Sql/preview/2017-03-01-preview/examples/CreateOrUpdateJobMin.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
{ | ||
"parameters":{ | ||
"subscriptionId":"00000000-1111-2222-3333-444444444444", | ||
"resourceGroupName":"group1", | ||
"serverName":"server1", | ||
"jobAgentName":"agent1", | ||
"jobName":"job1", | ||
"api-version":"2017-03-01-preview", | ||
"parameters":{ } | ||
}, | ||
"responses":{ | ||
"200":{ | ||
"body":{ | ||
"id":"/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/group1/providers/Microsoft.Sql/servers/server1/jobAgents/agent1/jobs/job1", | ||
"name":"job1", | ||
"type":"Microsoft.Sql/servers/jobAccounts/jobs", | ||
"properties":{ | ||
"description":"", | ||
"version":0, | ||
"schedule":{ | ||
"startTime":"0001-01-01T00:00:00Z", | ||
"endTime":"9999-12-31T11:59:59Z", | ||
"type":"Once", | ||
"enabled":false | ||
} | ||
} | ||
} | ||
}, | ||
"201":{ | ||
"body":{ | ||
"id":"/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/group1/providers/Microsoft.Sql/servers/server1/jobAgents/agent1/jobs/job1", | ||
"name":"job1", | ||
"type":"Microsoft.Sql/servers/jobAccounts/jobs", | ||
"properties":{ | ||
"description":"", | ||
"version":0, | ||
"schedule":{ | ||
"startTime":"0001-01-01T00:00:00Z", | ||
"endTime":"9999-12-31T11:59:59Z", | ||
"type":"Once", | ||
"enabled":false | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} |
110 changes: 110 additions & 0 deletions
110
...e-manager/Microsoft.Sql/preview/2017-03-01-preview/examples/CreateOrUpdateJobStepMax.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,110 @@ | ||
{ | ||
"parameters":{ | ||
"subscriptionId":"00000000-1111-2222-3333-444444444444", | ||
"resourceGroupName":"group1", | ||
"serverName":"server1", | ||
"jobAgentName":"agent1", | ||
"jobName":"job1", | ||
"stepName":"step1", | ||
"api-version":"2017-03-01-preview", | ||
"parameters":{ | ||
"properties":{ | ||
"stepId":1, | ||
"targetGroup":"/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/group1/providers/Microsoft.Sql/servers/server1/jobAgents/agent1/targetGroups/targetGroup1", | ||
"credential":"/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/group1/providers/Microsoft.Sql/servers/server1/jobAgents/agent1/credentials/cred1", | ||
"action":{ | ||
"type":"TSql", | ||
"source":"Inline", | ||
"value":"select 2" | ||
}, | ||
"output":{ | ||
"type":"SqlDatabase", | ||
"subscriptionId":"3501b905-a848-4b5d-96e8-b253f62d735a", | ||
"resourceGroup":"group3", | ||
"server":"server3", | ||
"database":"database3", | ||
"schema":"myschema1234", | ||
"table":"mytable5678", | ||
"credential":"/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/group1/providers/Microsoft.Sql/servers/server1/jobAgents/agent1/credentials/cred0" | ||
}, | ||
"executionOptions":{ | ||
"timeoutSeconds":1234, | ||
"retryAttempts":42, | ||
"initialRetryIntervalSeconds":11, | ||
"maximumRetryIntervalSeconds":222, | ||
"retryIntervalBackoffMultiplier":3.0 | ||
} | ||
} | ||
} | ||
}, | ||
"responses":{ | ||
"200":{ | ||
"body":{ | ||
"properties":{ | ||
"stepId":1, | ||
"targetGroup":"/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/group1/providers/Microsoft.Sql/servers/server1/jobAgents/agent1/targetGroups/targetGroup1", | ||
"credential":"/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/group1/providers/Microsoft.Sql/servers/server1/jobAgents/agent1/credentials/cred1", | ||
"action":{ | ||
"type":"TSql", | ||
"source":"Inline", | ||
"value":"select 2" | ||
}, | ||
"output":{ | ||
"type":"SqlDatabase", | ||
"subscriptionId":"3501b905-a848-4b5d-96e8-b253f62d735a", | ||
"resourceGroup":"group3", | ||
"server":"server3", | ||
"database":"database3", | ||
"schema":"myschema1234", | ||
"table":"mytable5678", | ||
"credential":"/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/group1/providers/Microsoft.Sql/servers/server1/jobAgents/agent1/credentials/cred0" | ||
}, | ||
"executionOptions":{ | ||
"timeoutSeconds":1234, | ||
"retryAttempts":42, | ||
"initialRetryIntervalSeconds":11, | ||
"maximumRetryIntervalSeconds":222, | ||
"retryIntervalBackoffMultiplier":3.0 | ||
} | ||
}, | ||
"id":"/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/group1/providers/Microsoft.Sql/servers/server1/jobAgents/agent1/jobs/job1/steps/step1", | ||
"name":"step1", | ||
"type":"Microsoft.Sql/servers/jobAgents/jobs/steps" | ||
} | ||
}, | ||
"201":{ | ||
"body":{ | ||
"properties":{ | ||
"stepId":1, | ||
"targetGroup":"/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/group1/providers/Microsoft.Sql/servers/server1/jobAgents/agent1/targetGroups/targetGroup1", | ||
"credential":"/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/group1/providers/Microsoft.Sql/servers/server1/jobAgents/agent1/credentials/cred1", | ||
"action":{ | ||
"type":"TSql", | ||
"source":"Inline", | ||
"value":"select 2" | ||
}, | ||
"output":{ | ||
"type":"SqlDatabase", | ||
"subscriptionId":"3501b905-a848-4b5d-96e8-b253f62d735a", | ||
"resourceGroup":"group3", | ||
"server":"server3", | ||
"database":"database3", | ||
"schema":"myschema1234", | ||
"table":"mytable5678", | ||
"credential":"/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/group1/providers/Microsoft.Sql/servers/server1/jobAgents/agent1/credentials/cred0" | ||
}, | ||
"executionOptions":{ | ||
"timeoutSeconds":1234, | ||
"retryAttempts":42, | ||
"initialRetryIntervalSeconds":11, | ||
"maximumRetryIntervalSeconds":222, | ||
"retryIntervalBackoffMultiplier":3.0 | ||
} | ||
}, | ||
"id":"/subscriptions/00000000-1111-2222-3333-444444444444/resourceGroups/group1/providers/Microsoft.Sql/servers/server1/jobAgents/agent1/jobs/job1/steps/step1", | ||
"name":"step1", | ||
"type":"Microsoft.Sql/servers/jobAgents/jobs/steps" | ||
} | ||
} | ||
} | ||
} |
Oops, something went wrong.