UNPKG

openapi-directory

Version:

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

1 lines 35.2 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/jitNetworkAccessPolicies.json","version":"2.0"}],"x-providerName":"azure.com","x-serviceName":"security-jitNetworkAccessPolicies","x-tags":["Azure","Microsoft"]},"security":[{"azure_auth":["user_impersonation"]}],"paths":{"/subscriptions/{subscriptionId}/providers/Microsoft.Security/jitNetworkAccessPolicies":{"get":{"description":"Policies for protecting resources using Just-in-Time access control.","operationId":"JitNetworkAccessPolicies_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 JIT network access policies on a subscription":{"value":"20ff7fc3-e762-44dd-bd96-b71116dcdc23"}}},{"description":"API version for the operation","in":"query","name":"api-version","required":true,"schema":{"type":"string"},"examples":{"Get JIT network access policies on a subscription":{"value":"2015-06-01-preview"}}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JitNetworkAccessPoliciesList"},"examples":{"Get JIT network access policies on a subscription":{"$ref":"#/components/examples/Get_JIT_network_access_policies_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":["JitNetworkAccessPolicies"],"x-ms-pageable":{"nextLinkName":"nextLink"}}},"/subscriptions/{subscriptionId}/providers/Microsoft.Security/locations/{ascLocation}/jitNetworkAccessPolicies":{"get":{"description":"Policies for protecting resources using Just-in-Time access control for the subscription, location","operationId":"JitNetworkAccessPolicies_ListByRegion","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 JIT network access policies on a subscription from a security data location":{"value":"20ff7fc3-e762-44dd-bd96-b71116dcdc23"}}},{"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 JIT network access policies on a subscription from a security data location":{"value":"westeurope"}}},{"description":"API version for the operation","in":"query","name":"api-version","required":true,"schema":{"type":"string"},"examples":{"Get JIT network access policies on a subscription from a security data location":{"value":"2015-06-01-preview"}}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JitNetworkAccessPoliciesList"},"examples":{"Get JIT network access policies on a subscription from a security data location":{"$ref":"#/components/examples/Get_JIT_network_access_policies_on_a_subscription_from_a_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":["JitNetworkAccessPolicies"],"x-ms-pageable":{"nextLinkName":"nextLink"}}},"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/jitNetworkAccessPolicies":{"get":{"description":"Policies for protecting resources using Just-in-Time access control for the subscription, location","operationId":"JitNetworkAccessPolicies_ListByResourceGroup","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 JIT network access policies on a resource group":{"value":"20ff7fc3-e762-44dd-bd96-b71116dcdc23"}}},{"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 JIT network access policies on a resource group":{"value":"myRg1"}}},{"description":"API version for the operation","in":"query","name":"api-version","required":true,"schema":{"type":"string"},"examples":{"Get JIT network access policies on a resource group":{"value":"2015-06-01-preview"}}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JitNetworkAccessPoliciesList"},"examples":{"Get JIT network access policies on a resource group":{"$ref":"#/components/examples/Get_JIT_network_access_policies_on_a_resource_group"}}}}},"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":["JitNetworkAccessPolicies"],"x-ms-pageable":{"nextLinkName":"nextLink"}}},"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/locations/{ascLocation}/jitNetworkAccessPolicies":{"get":{"description":"Policies for protecting resources using Just-in-Time access control for the subscription, location","operationId":"JitNetworkAccessPolicies_ListByResourceGroupAndRegion","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 JIT network access policies on a resource group from a security data location":{"value":"20ff7fc3-e762-44dd-bd96-b71116dcdc23"}}},{"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 JIT network access policies on a resource group from a security data location":{"value":"myRg1"}}},{"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 JIT network access policies on a resource group from a security data location":{"value":"westeurope"}}},{"description":"API version for the operation","in":"query","name":"api-version","required":true,"schema":{"type":"string"},"examples":{"Get JIT network access policies on a resource group from a security data location":{"value":"2015-06-01-preview"}}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JitNetworkAccessPoliciesList"},"examples":{"Get JIT network access policies on a resource group from a security data location":{"$ref":"#/components/examples/Get_JIT_network_access_policies_on_a_resource_group_from_a_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":["JitNetworkAccessPolicies"],"x-ms-pageable":{"nextLinkName":"nextLink"}}},"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/locations/{ascLocation}/jitNetworkAccessPolicies/{jitNetworkAccessPolicyName}":{"delete":{"description":"Delete a Just-in-Time access control policy.","operationId":"JitNetworkAccessPolicies_Delete","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":{"Delete a JIT network access policy":{"value":"20ff7fc3-e762-44dd-bd96-b71116dcdc23"}}},{"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":{"Delete a JIT network access policy":{"value":"myRg1"}}},{"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":{"Delete a JIT network access policy":{"value":"westeurope"}}},{"$ref":"#/components/parameters/JitNetworkAccessPolicyName"},{"description":"API version for the operation","in":"query","name":"api-version","required":true,"schema":{"type":"string"},"examples":{"Delete a JIT network access policy":{"value":"2015-06-01-preview"}}}],"responses":{"200":{"description":"OK - Resource was deleted"},"204":{"description":"No Content - Resource does not exist"},"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":["JitNetworkAccessPolicies"]},"get":{"description":"Policies for protecting resources using Just-in-Time access control for the subscription, location","operationId":"JitNetworkAccessPolicies_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 JIT network access policy":{"value":"20ff7fc3-e762-44dd-bd96-b71116dcdc23"}}},{"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 JIT network access policy":{"value":"myRg1"}}},{"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 JIT network access policy":{"value":"westeurope"}}},{"$ref":"#/components/parameters/JitNetworkAccessPolicyName"},{"description":"API version for the operation","in":"query","name":"api-version","required":true,"schema":{"type":"string"},"examples":{"Get JIT network access policy":{"value":"2015-06-01-preview"}}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JitNetworkAccessPolicy"},"examples":{"Get JIT network access policy":{"$ref":"#/components/examples/Get_JIT_network_access_policy"}}}}},"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":["JitNetworkAccessPolicies"]},"put":{"description":"Create a policy for protecting resources using Just-in-Time access control","operationId":"JitNetworkAccessPolicies_CreateOrUpdate","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":{"Create JIT network access policy":{"value":"20ff7fc3-e762-44dd-bd96-b71116dcdc23"}}},{"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":{"Create JIT network access policy":{"value":"myRg1"}}},{"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":{"Create JIT network access policy":{"value":"westeurope"}}},{"$ref":"#/components/parameters/JitNetworkAccessPolicyName"},{"description":"API version for the operation","in":"query","name":"api-version","required":true,"schema":{"type":"string"},"examples":{"Create JIT network access policy":{"value":"2015-06-01-preview"}}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/JitNetworkAccessPolicy"}}},"required":true,"x-ms-parameter-location":"method"},"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JitNetworkAccessPolicy"},"examples":{"Create JIT network access policy":{"$ref":"#/components/examples/Create_JIT_network_access_policy"}}}}},"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":["JitNetworkAccessPolicies"]}},"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/locations/{ascLocation}/jitNetworkAccessPolicies/{jitNetworkAccessPolicyName}/{jitNetworkAccessPolicyInitiateType}":{"post":{"description":"Initiate a JIT access from a specific Just-in-Time policy configuration.","operationId":"JitNetworkAccessPolicies_Initiate","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":{"Initiate an action on a JIT network access policy":{"value":"20ff7fc3-e762-44dd-bd96-b71116dcdc23"}}},{"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":{"Initiate an action on a JIT network access policy":{"value":"myRg1"}}},{"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":{"Initiate an action on a JIT network access policy":{"value":"westeurope"}}},{"$ref":"#/components/parameters/JitNetworkAccessPolicyName"},{"$ref":"#/components/parameters/JitNetworkAccessPolicyInitiateType"},{"description":"API version for the operation","in":"query","name":"api-version","required":true,"schema":{"type":"string"},"examples":{"Initiate an action on a JIT network access policy":{"value":"2015-06-01-preview"}}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/JitNetworkAccessPolicyInitiateRequest"}}},"required":true,"x-ms-parameter-location":"method"},"responses":{"202":{"description":"Accepted","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JitNetworkAccessRequest"},"examples":{"Initiate an action on a JIT network access policy":{"$ref":"#/components/examples/Initiate_an_action_on_a_JIT_network_access_policy"}}}}},"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":["JitNetworkAccessPolicies"]}}},"servers":[{"url":"https://management.azure.com"}],"components":{"examples":{"Get_JIT_network_access_policies_on_a_subscription":{"value":{"value":[{"id":"/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/myRg1/providers/Microsoft.Security/locations/westeurope/jitNetworkAccessPolicies/default","kind":"Basic","location":"westeurope","name":"default","properties":{"provisioningState":"Succeeded","requests":[{"justification":"testing a new version of the product","requestor":"barbara@contoso.com","startTimeUtc":"2018-05-17T08:06:45.5691611Z","virtualMachines":[{"id":"/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/myRg1/providers/Microsoft.Compute/virtualMachines/vm1","ports":[{"allowedSourceAddressPrefix":"192.127.0.2","endTimeUtc":"2018-05-17T09:06:45.5691611Z","number":3389,"status":"Initiated","statusReason":"UserRequested"}]}]}],"virtualMachines":[{"id":"/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/myRg1/providers/Microsoft.Compute/virtualMachines/vm1","ports":[{"allowedSourceAddressPrefix":"*","maxRequestAccessDuration":"PT3H","number":22,"protocol":"*"},{"allowedSourceAddressPrefix":"*","maxRequestAccessDuration":"PT3H","number":3389,"protocol":"*"}]}]},"type":"Microsoft.Security/locations/jitNetworkAccessPolicies"}]}},"Get_JIT_network_access_policies_on_a_subscription_from_a_security_data_location":{"value":{"value":[{"id":"/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/myRg1/providers/Microsoft.Security/locations/westeurope/jitNetworkAccessPolicies/default","kind":"Basic","location":"westeurope","name":"default","properties":{"provisioningState":"Succeeded","requests":[{"justification":"testing a new version of the product","requestor":"barbara@contoso.com","startTimeUtc":"2018-05-17T08:06:45.5691611Z","virtualMachines":[{"id":"/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/myRg1/providers/Microsoft.Compute/virtualMachines/vm1","ports":[{"allowedSourceAddressPrefix":"192.127.0.2","endTimeUtc":"2018-05-17T09:06:45.5691611Z","number":3389,"status":"Initiated","statusReason":"UserRequested"}]}]}],"virtualMachines":[{"id":"/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/myRg1/providers/Microsoft.Compute/virtualMachines/vm1","ports":[{"allowedSourceAddressPrefix":"*","maxRequestAccessDuration":"PT3H","number":22,"protocol":"*"},{"allowedSourceAddressPrefix":"*","maxRequestAccessDuration":"PT3H","number":3389,"protocol":"*"}]}]},"type":"Microsoft.Security/locations/jitNetworkAccessPolicies"}]}},"Get_JIT_network_access_policies_on_a_resource_group":{"value":{"value":[{"id":"/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/myRg1/providers/Microsoft.Security/locations/westeurope/jitNetworkAccessPolicies/default","kind":"Basic","location":"westeurope","name":"default","properties":{"provisioningState":"Succeeded","requests":[{"justification":"testing a new version of the product","requestor":"barbara@contoso.com","startTimeUtc":"2018-05-17T08:06:45.5691611Z","virtualMachines":[{"id":"/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/myRg1/providers/Microsoft.Compute/virtualMachines/vm1","ports":[{"allowedSourceAddressPrefix":"192.127.0.2","endTimeUtc":"2018-05-17T09:06:45.5691611Z","number":3389,"status":"Initiated","statusReason":"UserRequested"}]}]}],"virtualMachines":[{"id":"/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/myRg1/providers/Microsoft.Compute/virtualMachines/vm1","ports":[{"allowedSourceAddressPrefix":"*","maxRequestAccessDuration":"PT3H","number":22,"protocol":"*"},{"allowedSourceAddressPrefix":"*","maxRequestAccessDuration":"PT3H","number":3389,"protocol":"*"}]}]},"type":"Microsoft.Security/locations/jitNetworkAccessPolicies"}]}},"Get_JIT_network_access_policies_on_a_resource_group_from_a_security_data_location":{"value":{"value":[{"id":"/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/myRg1/providers/Microsoft.Security/locations/westeurope/jitNetworkAccessPolicies/default","kind":"Basic","location":"westeurope","name":"default","properties":{"provisioningState":"Succeeded","requests":[{"justification":"testing a new version of the product","requestor":"barbara@contoso.com","startTimeUtc":"2018-05-17T08:06:45.5691611Z","virtualMachines":[{"id":"/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/myRg1/providers/Microsoft.Compute/virtualMachines/vm1","ports":[{"allowedSourceAddressPrefix":"192.127.0.2","endTimeUtc":"2018-05-17T09:06:45.5691611Z","number":3389,"status":"Initiated","statusReason":"UserRequested"}]}]}],"virtualMachines":[{"id":"/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/myRg1/providers/Microsoft.Compute/virtualMachines/vm1","ports":[{"allowedSourceAddressPrefix":"*","maxRequestAccessDuration":"PT3H","number":22,"protocol":"*"},{"allowedSourceAddressPrefix":"*","maxRequestAccessDuration":"PT3H","number":3389,"protocol":"*"}]}]},"type":"Microsoft.Security/locations/jitNetworkAccessPolicies"}]}},"Get_JIT_network_access_policy":{"value":{"id":"/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/myRg1/providers/Microsoft.Security/locations/westeurope/jitNetworkAccessPolicies/default","kind":"Basic","location":"westeurope","name":"default","properties":{"provisioningState":"Succeeded","requests":[{"justification":"testing a new version of the product","requestor":"barbara@contoso.com","startTimeUtc":"2018-05-17T08:06:45.5691611Z","virtualMachines":[{"id":"/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/myRg1/providers/Microsoft.Compute/virtualMachines/vm1","ports":[{"allowedSourceAddressPrefix":"192.127.0.2","endTimeUtc":"2018-05-17T09:06:45.5691611Z","number":3389,"status":"Initiated","statusReason":"UserRequested"}]}]}],"virtualMachines":[{"id":"/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/myRg1/providers/Microsoft.Compute/virtualMachines/vm1","ports":[{"allowedSourceAddressPrefix":"*","maxRequestAccessDuration":"PT3H","number":22,"protocol":"*"},{"allowedSourceAddressPrefix":"*","maxRequestAccessDuration":"PT3H","number":3389,"protocol":"*"}]}]},"type":"Microsoft.Security/locations/jitNetworkAccessPolicies"}},"Create_JIT_network_access_policy":{"value":{"id":"/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/myRg1/providers/Microsoft.Security/locations/westeurope/jitNetworkAccessPolicies/default","kind":"Basic","location":"westeurope","name":"default","properties":{"provisioningState":"Succeeded","requests":[{"requestor":"barbara@contoso.com","startTimeUtc":"2018-05-17T08:06:45.5691611Z","virtualMachines":[{"id":"/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/myRg1/providers/Microsoft.Compute/virtualMachines/vm1","ports":[{"allowedSourceAddressPrefix":"192.127.0.2","endTimeUtc":"2018-05-17T09:06:45.5691611Z","number":3389,"status":"Initiated","statusReason":"UserRequested"}]}]}],"virtualMachines":[{"id":"/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/myRg1/providers/Microsoft.Compute/virtualMachines/vm1","ports":[{"allowedSourceAddressPrefix":"*","maxRequestAccessDuration":"PT3H","number":22,"protocol":"*"},{"allowedSourceAddressPrefix":"*","maxRequestAccessDuration":"PT3H","number":3389,"protocol":"*"}]}]},"type":"Microsoft.Security/locations/jitNetworkAccessPolicies"}},"Initiate_an_action_on_a_JIT_network_access_policy":{"value":{"justification":"testing a new version of the product","requestor":"barbara@contoso.com","startTimeUtc":"2018-07-12T08:53:03.3658798Z","virtualMachines":[{"id":"/subscriptions/3eeab341-f466-499c-a8be-85427e154baf/resourceGroups/myRg1/providers/Microsoft.Compute/virtualMachines/vm1","ports":[{"allowedSourceAddressPrefix":"192.127.0.2","endTimeUtc":"2018-07-12T09:53:03.3658798Z","number":3389,"status":"Initiating","statusReason":"UserRequested"}]}]}}},"parameters":{"JitNetworkAccessPolicyInitiateType":{"description":"Type of the action to do on the Just-in-Time access policy.","in":"path","name":"jitNetworkAccessPolicyInitiateType","required":true,"x-ms-parameter-location":"method","schema":{"type":"string","enum":["initiate"]},"examples":{"Initiate an action on a JIT network access policy":{"value":"initiate"}}},"JitNetworkAccessPolicyName":{"description":"Name of a Just-in-Time access configuration policy.","in":"path","name":"jitNetworkAccessPolicyName","required":true,"x-ms-parameter-location":"method","schema":{"type":"string"},"examples":{"Delete a JIT network access policy":{"value":"default"},"Get JIT network access policy":{"value":"default"},"Create JIT network access policy":{"value":"default"},"Initiate an action on a JIT network access policy":{"value":"default"}}}},"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":{"JitNetworkAccessPoliciesList":{"properties":{"nextLink":{"description":"The URI to fetch the next page.","readOnly":true,"type":"string"},"value":{"items":{"$ref":"#/components/schemas/JitNetworkAccessPolicy"},"type":"array"}},"type":"object"},"JitNetworkAccessPolicy":{"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 kind","properties":{"kind":{"description":"Kind of the resource","type":"string"}},"type":"object"},{"description":"Describes an Azure resource with location","properties":{"location":{"description":"Location where the resource is stored","readOnly":true,"type":"string"}},"type":"object"}],"properties":{"properties":{"$ref":"#/components/schemas/JitNetworkAccessPolicyProperties"}},"required":["properties"],"type":"object"},"JitNetworkAccessPolicyInitiatePort":{"properties":{"allowedSourceAddressPrefix":{"description":"Source of the allowed traffic. If omitted, the request will be for the source IP address of the initiate request.","type":"string"},"endTimeUtc":{"description":"The time to close the request in UTC","format":"date-time","type":"string"},"number":{"$ref":"#/components/schemas/PortNumber"}},"required":["endTimeUtc","number"],"type":"object"},"JitNetworkAccessPolicyInitiateRequest":{"properties":{"justification":{"description":"The justification for making the initiate request","type":"string"},"virtualMachines":{"description":"A list of virtual machines & ports to open access for","items":{"$ref":"#/components/schemas/JitNetworkAccessPolicyInitiateVirtualMachine"},"type":"array"}},"required":["virtualMachines"],"type":"object"},"JitNetworkAccessPolicyInitiateVirtualMachine":{"properties":{"id":{"description":"Resource ID of the virtual machine that is linked to this policy","type":"string"},"ports":{"description":"The ports to open for the resource with the `id`","items":{"$ref":"#/components/schemas/JitNetworkAccessPolicyInitiatePort"},"type":"array"}},"required":["id","ports"],"type":"object"},"JitNetworkAccessPolicyProperties":{"properties":{"provisioningState":{"description":"Gets the provisioning state of the Just-in-Time policy.","readOnly":true,"type":"string"},"requests":{"items":{"$ref":"#/components/schemas/JitNetworkAccessRequest"},"type":"array"},"virtualMachines":{"description":"Configurations for Microsoft.Compute/virtualMachines resource type.","items":{"$ref":"#/components/schemas/JitNetworkAccessPolicyVirtualMachine"},"type":"array"}},"required":["virtualMachines"],"type":"object"},"JitNetworkAccessPolicyVirtualMachine":{"properties":{"id":{"description":"Resource ID of the virtual machine that is linked to this policy","type":"string"},"ports":{"description":"Port configurations for the virtual machine","items":{"$ref":"#/components/schemas/JitNetworkAccessPortRule"},"type":"array"},"publicIpAddress":{"description":"Public IP address of the Azure Firewall that is linked to this policy, if applicable","type":"string"}},"required":["id","ports"],"type":"object"},"JitNetworkAccessPortRule":{"properties":{"allowedSourceAddressPrefix":{"description":"Mutually exclusive with the \"allowedSourceAddressPrefixes\" parameter. Should be an IP address or CIDR, for example \"192.168.0.3\" or \"192.168.0.0/16\".","type":"string"},"allowedSourceAddressPrefixes":{"description":"Mutually exclusive with the \"allowedSourceAddressPrefix\" parameter.","items":{"description":"IP address or CIDR, for example \"192.168.0.3\" or \"192.168.0.0/16\".","type":"string"},"type":"array"},"maxRequestAccessDuration":{"description":"Maximum duration requests can be made for. In ISO 8601 duration format. Minimum 5 minutes, maximum 1 day","type":"string"},"number":{"$ref":"#/components/schemas/PortNumber"},"protocol":{"enum":["TCP","UDP","*"],"type":"string","x-ms-enum":{"modelAsString":true,"name":"protocol","values":[{"value":"TCP"},{"value":"UDP"},{"name":"All","value":"*"}]}}},"required":["maxRequestAccessDuration","number","protocol"],"type":"object"},"JitNetworkAccessRequest":{"properties":{"justification":{"description":"The justification for making the initiate request","type":"string"},"requestor":{"description":"The identity of the person who made the request","type":"string"},"startTimeUtc":{"description":"The start time of the request in UTC","format":"date-time","type":"string"},"virtualMachines":{"items":{"$ref":"#/components/schemas/JitNetworkAccessRequestVirtualMachine"},"type":"array"}},"required":["requestor","startTimeUtc","virtualMachines"],"type":"object"},"JitNetworkAccessRequestPort":{"properties":{"allowedSourceAddressPrefix":{"description":"Mutually exclusive with the \"allowedSourceAddressPrefixes\" parameter. Should be an IP address or CIDR, for example \"192.168.0.3\" or \"192.168.0.0/16\".","type":"string"},"allowedSourceAddressPrefixes":{"description":"Mutually exclusive with the \"allowedSourceAddressPrefix\" parameter.","items":{"description":"IP address or CIDR, for example \"192.168.0.3\" or \"192.168.0.0/16\".","type":"string"},"type":"array"},"endTimeUtc":{"description":"The date & time at which the request ends in UTC","format":"date-time","type":"string"},"mappedPort":{"description":"The port which is mapped to this port's `number` in the Azure Firewall, if applicable","type":"integer"},"number":{"$ref":"#/components/schemas/PortNumber"},"status":{"description":"The status of the port","enum":["Revoked","Initiated"],"type":"string","x-ms-enum":{"modelAsString":true,"name":"status","values":[{"value":"Revoked"},{"value":"Initiated"}]}},"statusReason":{"description":"A description of why the `status` has its value","enum":["Expired","UserRequested","NewerRequestInitiated"],"type":"string","x-ms-enum":{"modelAsString":true,"name":"statusReason","values":[{"value":"Expired"},{"value":"UserRequested"},{"value":"NewerRequestInitiated"}]}}},"required":["endTimeUtc","number","status","statusReason"],"type":"object"},"JitNetworkAccessRequestVirtualMachine":{"properties":{"id":{"description":"Resource ID of the virtual machine that is linked to this policy","type":"string"},"ports":{"description":"The ports that were opened for the virtual machine","items":{"$ref":"#/components/schemas/JitNetworkAccessRequestPort"},"type":"array"}},"required":["id","ports"],"type":"object"},"PortNumber":{"maximum":65535,"minimum":0,"type":"integer"}}}}