UNPKG

openapi-directory

Version:

Building & bundling https://github.com/APIs-guru/openapi-directory for easy use from JS

1 lines 16.8 kB
{"openapi":"3.0.0","info":{"description":"API spec for Microsoft.Security (Azure Security Center) resource provider","title":"Security Center","version":"2015-06-01-preview","x-apisguru-categories":["cloud"],"x-logo":{"url":"https://assets.onestore.ms/cdnfiles/onestorerolling-1606-01000/shell/v3/images/logo/microsoft.png"},"x-origin":[{"format":"swagger","url":"https://raw.githubusercontent.com/Azure/azure-rest-api-specs/master/specification/security/resource-manager/Microsoft.Security/preview/2015-06-01-preview/allowedConnections.json","version":"2.0"}],"x-providerName":"azure.com","x-serviceName":"security-allowedConnections","x-tags":["Azure","Microsoft"]},"security":[{"azure_auth":["user_impersonation"]}],"paths":{"/subscriptions/{subscriptionId}/providers/Microsoft.Security/allowedConnections":{"get":{"description":"Gets the list of all possible traffic between resources for the subscription","operationId":"AllowedConnections_List","parameters":[{"description":"Azure subscription ID","in":"path","name":"subscriptionId","required":true,"schema":{"type":"string","pattern":"^[0-9A-Fa-f]{8}-([0-9A-Fa-f]{4}-){3}[0-9A-Fa-f]{12}$"},"examples":{"Get allowed connections on a subscription":{"value":"3eeab341-f466-499c-a8be-85427e154bad"}}},{"description":"API version for the operation","in":"query","name":"api-version","required":true,"schema":{"type":"string"},"examples":{"Get allowed connections on a subscription":{"value":"2015-06-01-preview"}}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AllowedConnectionsList"},"examples":{"Get allowed connections on a subscription":{"$ref":"#/components/examples/Get_allowed_connections_on_a_subscription"}}}}},"default":{"description":"Error response describing why the operation failed.","content":{"application/json":{"schema":{"description":"Error response structure.","properties":{"error":{"description":"Error details.","properties":{"code":{"description":"An identifier for the error. Codes are invariant and are intended to be consumed programmatically.","readOnly":true,"type":"string"},"message":{"description":"A message describing the error, intended to be suitable for display in a user interface.","readOnly":true,"type":"string"}},"type":"object","x-ms-external":true}},"type":"object","x-ms-external":true}}}}},"tags":["AllowedConnections"],"x-ms-pageable":{"nextLinkName":"nextLink"}}},"/subscriptions/{subscriptionId}/providers/Microsoft.Security/locations/{ascLocation}/allowedConnections":{"get":{"description":"Gets the list of all possible traffic between resources for the subscription and location.","operationId":"AllowedConnections_ListByHomeRegion","parameters":[{"description":"Azure subscription ID","in":"path","name":"subscriptionId","required":true,"schema":{"type":"string","pattern":"^[0-9A-Fa-f]{8}-([0-9A-Fa-f]{4}-){3}[0-9A-Fa-f]{12}$"},"examples":{"Get allowed connections on a subscription from security data location":{"value":"3eeab341-f466-499c-a8be-85427e154bad"}}},{"description":"The location where ASC stores the data of the subscription. can be retrieved from Get locations","in":"path","name":"ascLocation","required":true,"x-ms-parameter-location":"client","schema":{"type":"string"},"examples":{"Get allowed connections on a subscription from security data location":{"value":"centralus"}}},{"description":"API version for the operation","in":"query","name":"api-version","required":true,"schema":{"type":"string"},"examples":{"Get allowed connections on a subscription from security data location":{"value":"2015-06-01-preview"}}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AllowedConnectionsList"},"examples":{"Get allowed connections on a subscription from security data location":{"$ref":"#/components/examples/Get_allowed_connections_on_a_subscription_from_security_data_location"}}}}},"default":{"description":"Error response describing why the operation failed.","content":{"application/json":{"schema":{"description":"Error response structure.","properties":{"error":{"description":"Error details.","properties":{"code":{"description":"An identifier for the error. Codes are invariant and are intended to be consumed programmatically.","readOnly":true,"type":"string"},"message":{"description":"A message describing the error, intended to be suitable for display in a user interface.","readOnly":true,"type":"string"}},"type":"object","x-ms-external":true}},"type":"object","x-ms-external":true}}}}},"tags":["AllowedConnections"],"x-ms-pageable":{"nextLinkName":"nextLink"}}},"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/locations/{ascLocation}/allowedConnections/{connectionType}":{"get":{"description":"Gets the list of all possible traffic between resources for the subscription and location, based on connection type.","operationId":"AllowedConnections_Get","parameters":[{"description":"Azure subscription ID","in":"path","name":"subscriptionId","required":true,"schema":{"type":"string","pattern":"^[0-9A-Fa-f]{8}-([0-9A-Fa-f]{4}-){3}[0-9A-Fa-f]{12}$"},"examples":{"Get allowed connections":{"value":"3eeab341-f466-499c-a8be-85427e154bad"}}},{"description":"The name of the resource group within the user's subscription. The name is case insensitive.","in":"path","name":"resourceGroupName","required":true,"x-ms-parameter-location":"method","schema":{"type":"string","minLength":1,"maxLength":90,"pattern":"^[-\\w\\._\\(\\)]+$"},"examples":{"Get allowed connections":{"value":"myResourceGroup"}}},{"description":"The location where ASC stores the data of the subscription. can be retrieved from Get locations","in":"path","name":"ascLocation","required":true,"x-ms-parameter-location":"client","schema":{"type":"string"},"examples":{"Get allowed connections":{"value":"centralus"}}},{"$ref":"#/components/parameters/ConnectionType"},{"description":"API version for the operation","in":"query","name":"api-version","required":true,"schema":{"type":"string"},"examples":{"Get allowed connections":{"value":"2015-06-01-preview"}}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AllowedConnectionsResource"},"examples":{"Get allowed connections":{"$ref":"#/components/examples/Get_allowed_connections"}}}}},"default":{"description":"Error response describing why the operation failed.","content":{"application/json":{"schema":{"description":"Error response structure.","properties":{"error":{"description":"Error details.","properties":{"code":{"description":"An identifier for the error. Codes are invariant and are intended to be consumed programmatically.","readOnly":true,"type":"string"},"message":{"description":"A message describing the error, intended to be suitable for display in a user interface.","readOnly":true,"type":"string"}},"type":"object","x-ms-external":true}},"type":"object","x-ms-external":true}}}}},"tags":["AllowedConnections"]}}},"servers":[{"url":"https://management.azure.com"}],"components":{"examples":{"Get_allowed_connections_on_a_subscription":{"value":{"value":[{"id":"/subscriptions/3eeab341-f466-499c-a8be-85427e154baf/resourceGroups/myResourceGroup/providers/Microsoft.Security/locations/centralus/allowedConnections/Internal","location":"centralus","name":"Internal","properties":{"calculatedDateTime":"2018-08-06T14:55:32.3518545Z","connectableResources":[{"id":"/subscriptions/3eeab341-f466-499c-a8be-85427e154baf/resourceGroups/myResourceGroup/providers/Microsoft.Compute/virtualMachines/virtaulMachine1","inboundConnectedResources":[{"connectedResourceId":"/subscriptions/3eeab341-f466-499c-a8be-85427e154baf/resourceGroups/myResourceGroup/providers/Microsoft.Compute/virtualMachines/virtaulMachine2","tcpPorts":"[0-21,23-3388,3390-5984,5987-65535]","udpPorts":"[0-21,23-3388,3390-5984,5987-65535]"}],"outboundConnectedResources":[{"connectedResourceId":"/subscriptions/3eeab341-f466-499c-a8be-85427e154baf/resourceGroups/myResourceGroup/providers/Microsoft.Compute/virtualMachines/virtaulMachine2","tcpPorts":"[0-21,23-3388,3390-5984,5987-65535]","udpPorts":"[0-21,23-3388,3390-5984,5987-65535]"}]},{"id":"/subscriptions/3eeab341-f466-499c-a8be-85427e154baf/resourceGroups/myResourceGroup/providers/Microsoft.Compute/virtualMachines/virtaulMachine2","inboundConnectedResources":[{"connectedResourceId":"/subscriptions/3eeab341-f466-499c-a8be-85427e154baf/resourceGroups/myResourceGroup/providers/Microsoft.Compute/virtualMachines/virtaulMachine1","tcpPorts":"[0-21,23-3388,3390-5984,5987-65535]","udpPorts":"[0-21,23-3388,3390-5984,5987-65535]"}],"outboundConnectedResources":[{"connectedResourceId":"/subscriptions/3eeab341-f466-499c-a8be-85427e154baf/resourceGroups/myResourceGroup/providers/Microsoft.Compute/virtualMachines/virtaulMachine1","tcpPorts":"[0-21,23-3388,3390-5984,5987-65535]","udpPorts":"[0-21,23-3388,3390-5984,5987-65535]"}]},{"id":"/subscriptions/3eeab341-f466-499c-a8be-85427e154baf/resourceGroups/myResourceGroup/providers/Microsoft.Compute/virtualMachines/virtaulMachine3","inboundConnectedResources":[],"outboundConnectedResources":[]}]},"type":"Microsoft.Security/locations/allowedConnections"}]}},"Get_allowed_connections_on_a_subscription_from_security_data_location":{"value":{"value":[{"id":"/subscriptions/3eeab341-f466-499c-a8be-85427e154baf/resourceGroups/myResourceGroup/providers/Microsoft.Security/locations/centralus/allowedConnections/Internal","location":"centralus","name":"Internal","properties":{"calculatedDateTime":"2018-08-06T14:55:32.3518545Z","connectableResources":[{"id":"/subscriptions/3eeab341-f466-499c-a8be-85427e154baf/resourceGroups/myResourceGroup/providers/Microsoft.Compute/virtualMachines/virtaulMachine1","inboundConnectedResources":[{"connectedResourceId":"/subscriptions/3eeab341-f466-499c-a8be-85427e154baf/resourceGroups/myResourceGroup/providers/Microsoft.Compute/virtualMachines/virtaulMachine2","tcpPorts":"[0-21,23-3388,3390-5984,5987-65535]","udpPorts":"[0-21,23-3388,3390-5984,5987-65535]"}],"outboundConnectedResources":[{"connectedResourceId":"/subscriptions/3eeab341-f466-499c-a8be-85427e154baf/resourceGroups/myResourceGroup/providers/Microsoft.Compute/virtualMachines/virtaulMachine2","tcpPorts":"[0-21,23-3388,3390-5984,5987-65535]","udpPorts":"[0-21,23-3388,3390-5984,5987-65535]"}]},{"id":"/subscriptions/3eeab341-f466-499c-a8be-85427e154baf/resourceGroups/myResourceGroup/providers/Microsoft.Compute/virtualMachines/virtaulMachine2","inboundConnectedResources":[{"connectedResourceId":"/subscriptions/3eeab341-f466-499c-a8be-85427e154baf/resourceGroups/myResourceGroup/providers/Microsoft.Compute/virtualMachines/virtaulMachine1","tcpPorts":"[0-21,23-3388,3390-5984,5987-65535]","udpPorts":"[0-21,23-3388,3390-5984,5987-65535]"}],"outboundConnectedResources":[{"connectedResourceId":"/subscriptions/3eeab341-f466-499c-a8be-85427e154baf/resourceGroups/myResourceGroup/providers/Microsoft.Compute/virtualMachines/virtaulMachine1","tcpPorts":"[0-21,23-3388,3390-5984,5987-65535]","udpPorts":"[0-21,23-3388,3390-5984,5987-65535]"}]},{"id":"/subscriptions/3eeab341-f466-499c-a8be-85427e154baf/resourceGroups/myResourceGroup/providers/Microsoft.Compute/virtualMachines/virtaulMachine3","inboundConnectedResources":[],"outboundConnectedResources":[]}]},"type":"Microsoft.Security/locations/allowedConnections"}]}},"Get_allowed_connections":{"value":{"id":"/subscriptions/3eeab341-f466-499c-a8be-85427e154baf/resourceGroups/myResourceGroup/providers/Microsoft.Security/locations/centralus/allowedConnections/Internal","location":"centralus","name":"Internal","properties":{"calculatedDateTime":"2018-08-06T14:55:32.3518545Z","connectableResources":[{"id":"/subscriptions/3eeab341-f466-499c-a8be-85427e154baf/resourceGroups/myResourceGroup/providers/Microsoft.Compute/virtualMachines/virtaulMachine1","inboundConnectedResources":[{"connectedResourceId":"/subscriptions/3eeab341-f466-499c-a8be-85427e154baf/resourceGroups/myResourceGroup/providers/Microsoft.Compute/virtualMachines/virtaulMachine2","tcpPorts":"[0-21,23-3388,3390-5984,5987-65535]","udpPorts":"[0-21,23-3388,3390-5984,5987-65535]"}],"outboundConnectedResources":[{"connectedResourceId":"/subscriptions/3eeab341-f466-499c-a8be-85427e154baf/resourceGroups/myResourceGroup/providers/Microsoft.Compute/virtualMachines/virtaulMachine2","tcpPorts":"[0-21,23-3388,3390-5984,5987-65535]","udpPorts":"[0-21,23-3388,3390-5984,5987-65535]"}]},{"id":"/subscriptions/3eeab341-f466-499c-a8be-85427e154baf/resourceGroups/myResourceGroup/providers/Microsoft.Compute/virtualMachines/virtaulMachine2","inboundConnectedResources":[{"connectedResourceId":"/subscriptions/3eeab341-f466-499c-a8be-85427e154baf/resourceGroups/myResourceGroup/providers/Microsoft.Compute/virtualMachines/virtaulMachine1","tcpPorts":"[0-21,23-3388,3390-5984,5987-65535]","udpPorts":"[0-21,23-3388,3390-5984,5987-65535]"}],"outboundConnectedResources":[{"connectedResourceId":"/subscriptions/3eeab341-f466-499c-a8be-85427e154baf/resourceGroups/myResourceGroup/providers/Microsoft.Compute/virtualMachines/virtaulMachine1","tcpPorts":"[0-21,23-3388,3390-5984,5987-65535]","udpPorts":"[0-21,23-3388,3390-5984,5987-65535]"}]},{"id":"/subscriptions/3eeab341-f466-499c-a8be-85427e154baf/resourceGroups/myResourceGroup/providers/Microsoft.Compute/virtualMachines/virtaulMachine3","inboundConnectedResources":[],"outboundConnectedResources":[]}]},"type":"Microsoft.Security/locations/allowedConnections"}}},"parameters":{"ConnectionType":{"description":"The type of allowed connections (Internal, External)","in":"path","name":"connectionType","required":true,"x-ms-enum":{"modelAsString":true,"name":"connectionType","values":[{"value":"Internal"},{"value":"External"}]},"x-ms-parameter-location":"method","schema":{"type":"string","enum":["Internal","External"]},"examples":{"Get allowed connections":{"value":"Internal"}}}},"securitySchemes":{"azure_auth":{"description":"Azure Active Directory OAuth2 Flow","type":"oauth2","flows":{"implicit":{"authorizationUrl":"https://login.microsoftonline.com/common/oauth2/authorize","scopes":{"user_impersonation":"impersonate your user account"}}}}},"schemas":{"AllowedConnectionsList":{"description":"List of all possible traffic between Azure resources","properties":{"nextLink":{"description":"The URI to fetch the next page.","readOnly":true,"type":"string"},"value":{"items":{"$ref":"#/components/schemas/AllowedConnectionsResource"},"readOnly":true,"type":"array"}},"type":"object"},"AllowedConnectionsResource":{"allOf":[{"description":"Describes an Azure resource.","properties":{"id":{"description":"Resource Id","readOnly":true,"type":"string"},"name":{"description":"Resource name","readOnly":true,"type":"string"},"type":{"description":"Resource type","readOnly":true,"type":"string"}},"type":"object","x-ms-azure-resource":true},{"description":"Describes an Azure resource with location","properties":{"location":{"description":"Location where the resource is stored","readOnly":true,"type":"string"}},"type":"object"}],"description":"The resource whose properties describes the allowed traffic between Azure resources","properties":{"properties":{"$ref":"#/components/schemas/AllowedConnectionsResourceProperties"}},"type":"object"},"AllowedConnectionsResourceProperties":{"description":"Describes the allowed traffic between Azure resources","properties":{"calculatedDateTime":{"description":"The UTC time on which the allowed connections resource was calculated","format":"date-time","readOnly":true,"type":"string"},"connectableResources":{"description":"List of connectable resources","items":{"$ref":"#/components/schemas/ConnectableResource"},"readOnly":true,"type":"array"}},"type":"object"},"ConnectableResource":{"description":"Describes the allowed inbound and outbound traffic of an Azure resource","properties":{"id":{"description":"The Azure resource id","readOnly":true,"type":"string"},"inboundConnectedResources":{"description":"The list of Azure resources that the resource has inbound allowed connection from","items":{"$ref":"#/components/schemas/ConnectedResource"},"readOnly":true,"type":"array"},"outboundConnectedResources":{"description":"The list of Azure resources that the resource has outbound allowed connection to","items":{"$ref":"#/components/schemas/ConnectedResource"},"readOnly":true,"type":"array"}},"type":"object"},"ConnectedResource":{"description":"Describes properties of a connected resource","properties":{"connectedResourceId":{"description":"The Azure resource id of the connected resource","readOnly":true,"type":"string"},"tcpPorts":{"description":"The allowed tcp ports","readOnly":true,"type":"string"},"udpPorts":{"description":"The allowed udp ports","readOnly":true,"type":"string"}},"type":"object"}}}}