-
Notifications
You must be signed in to change notification settings - Fork 5.1k
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
Add Allowed Connections REST API #4106
Conversation
Automation for azure-sdk-for-jsA PR has been created for you based on this PR content. Once this PR will be merged, content will be added to your service PR: |
Automation for azure-sdk-for-pythonA PR has been created for you based on this PR content. Once this PR will be merged, content will be added to your service PR: |
Automation for azure-sdk-for-rubyNothing to generate for azure-sdk-for-ruby |
Automation for azure-sdk-for-nodeA PR has been created for you based on this PR content. Once this PR will be merged, content will be added to your service PR: |
Can one of the admins verify this patch? |
Automation for azure-sdk-for-javaNothing to generate for azure-sdk-for-java |
...cation/security/resource-manager/Microsoft.Security/preview/2015-06-01-preview/security.json
Outdated
Show resolved
Hide resolved
} | ||
} | ||
}, | ||
"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/locations/{ascLocation}/allowedConnections/{connectionsType}": { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please change connectionsType parameter name to connectionType
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
...cation/security/resource-manager/Microsoft.Security/preview/2015-06-01-preview/security.json
Show resolved
Hide resolved
} | ||
} | ||
} | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
missing "list by resource group" path and "list by resource group and home region" path
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Chen, list by RG is implicitly defined when we have list by Susbcription, ins't ? We do not have in other API's list by RG (although supported)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@yanivn3 if it's not defined in the swagger it will not be documented and will not be available to any generated client. if the path is supported then it should be available in the swagger.
...cation/security/resource-manager/Microsoft.Security/preview/2015-06-01-preview/security.json
Show resolved
Hide resolved
"inboundConnectedResources": { | ||
"type": "array", | ||
"readOnly": true, | ||
"description": "The list of azure resources that the resource has inbound allowed connection from", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please replace "azure" with "Azure" in all occurrences
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@snhaphil reminder
"name": "connectionsType", | ||
"type": "string", | ||
"in": "path", | ||
"description": "The type of allowed connections.", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please add allowed values in the description as well since it is not visible in the documentation yet
"in": "path", | ||
"description": "The type of allowed connections.", | ||
"required": true, | ||
"enum": [ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
add the "x-ms-enum" properties like the other enums in this file
...ty/preview/2015-06-01-preview/examples/AllowedConnections/GetAllowedConnections_example.json
Outdated
Show resolved
Hide resolved
"responses": { | ||
"200": { | ||
"body": { | ||
"value": [ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
value field should not be present - this is a get single
Automation for azure-sdk-for-goA PR has been created for you based on this PR content. Once this PR will be merged, content will be added to your service PR: |
@@ -1437,6 +1437,132 @@ | |||
} | |||
} | |||
} | |||
}, | |||
"/subscriptions/{subscriptionId}/providers/Microsoft.Security/allowedConnections": { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wouldn't it make sense to allow a $filter property to filter the results at this scope?
@@ -1437,6 +1437,132 @@ | |||
} | |||
} | |||
} | |||
}, | |||
"/subscriptions/{subscriptionId}/providers/Microsoft.Security/allowedConnections": { | |||
"get": { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are these resources system-generated? The user can't update/delete them?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Correct. It is a read only collection. User get only see the outcome of the computation we perform.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@KrisBash , This API was reviewed by Gaurav more than 6m ago and it is already deployed. We issued the PR here in order to add it to ASC SDK and to update documentation.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Signing off, but please review comments. In the future, please schedule a review with the ARM API review alias for new resource types.
@chlahav , Can you approve the PR as well and remove the DoNoMerge ? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please address the comments
* Revert "Add maximum chunk size to data lake store docs. (#4464)" This reverts commit ab9c6ff. * Revert "Add latest authorization tag to java config (#4406)" This reverts commit 7f0fd16. * Revert "Mdb 20181029 statepropdescriptions (#4452)" This reverts commit 90db24c. * Revert "fixing invalid location in examples (#4415)" This reverts commit ffaf595. * Revert "/identity endpoint added (#4460)" This reverts commit 4f93dee. * Revert "Added missing PATCH operation to Api Issue resource (#4440)" This reverts commit 7df0ce5. * Revert "Adds storage account quick failover API (#4457)" This reverts commit 10ec74f. * Revert "DataFactory: add table name in dataset (#4424)" This reverts commit f8465de. * Revert "Update README.md (#4421)" This reverts commit fa6a584. * Revert "Move Ruby SDK config to its own config file (#4451)" This reverts commit 2ca50c8. * Revert "[CognitiveServices] enable Bing Search/CustomSearch products to specify Endpoint (#4401)" This reverts commit dc782b3. * Revert "Add GeoRegion property to DeletedSite model (#4448)" This reverts commit a079367. * Revert " Azure Container Instance: Add start container group API (#4423)" This reverts commit 2ea3e9e. * Revert "add guidance for example names (#4432)" This reverts commit 6780e8a. * Revert "Remove security contact phone field mandatory fields (#4417)" This reverts commit eaf464e. * Revert "Add Allowed Connections REST API (#4106)" This reverts commit 2389da3. * Revert "Make NIC VM readOnly (#4444)" This reverts commit 2d83450. * Revert "Remove readonly attribute from identities collection in users (#4442)" This reverts commit 7577df9. * Revert "Add spec for alert repair/remediate (#4084)" This reverts commit 3f568b4. * Revert "Py conf in its own file (#4439)" This reverts commit 3373760. * Revert "Split Python conf in it's own file (#4438)" This reverts commit 77cf607. * Revert "Adding ManagedInstanceVulnerabilityAssessments and ServerVulnerabilityAssessments (#4416)" This reverts commit dec7549. * Revert "WebApps: Snapshots API for DR stamps (#4291)" This reverts commit 916ff2e. * Revert "Swagger closure for Azure Migration Hub Operations (#4330)" This reverts commit badd1de.
Reopening the previously closed PR:
#3626
Adding allowed connections Rest API for Azure Security Center.
TFS item: https://msazure.visualstudio.com/One/_workitems/edit/2745880