Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bhbrahma api sec fixes #2434

Merged
merged 2 commits into from
Feb 12, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -3680,11 +3680,18 @@
"properties": {
"id": {
"type": "string",
"description": "Gets or sets the id of the resource."
"readOnly": true,
"description": "Gets the id of the resource."
},
"name": {
"type": "string",
"description": "Gets or sets the name of the webhook."
"readOnly": true,
"description": "Gets the name of the webhook."
},
"type": {
"type": "string",
"readOnly": true,
"description": "Gets the type of the resource."
},
"properties": {
"$ref": "#/definitions/WebhookProperties",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
"body": {
"id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/webhooks/TestWebhook",
"name": "TestWebhook",
"type": "Microsoft.Automation/AutomationAccounts/Webhooks",
"properties": {
"isEnabled": true,
"expiryTime": "2018-03-29T22:18:13.7002872+00:00",
Expand All @@ -44,6 +45,7 @@
"body": {
"id": "/subscriptions/subid/resourceGroups/rg/providers/Microsoft.Automation/automationAccounts/myAutomationAccount33/webhooks/TestWebhook",
"name": "TestWebhook",
"type": "Microsoft.Automation/AutomationAccounts/Webhooks",
"properties": {
"isEnabled": true,
"expiryTime": "2018-03-29T22:18:13.7002872+00:00",
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"parameters": {
"subscriptionId": "subid",
"resourceGroupName": "rg",
"automationAccountName": "myAutomationAccount33",
"api-version": "2015-10-31"
},
"responses": {
"200": {
"headers": {},
"body": "https://s13events.azure-automation.net/webhooks?token=O6n03K%2b1%2bSLPH50m4x9%2fcbcqtAu2tJDTvr8QHnbJ1kw%3d"
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,11 @@
"externalDocs": {
"url": "http://aka.ms/azureautomationsdk/webhookoperations"
},
"x-ms-examples": {
"Generate webhook uri": {
"$ref": "./examples/webhookGenerateUri.json"
}
},
"parameters": [
{
"$ref": "./definitions.json#/parameters/ResourceGroupNameParameter"
Expand Down