openapi-directory
Version:
Building & bundling https://github.com/APIs-guru/openapi-directory for easy use from JS
1 lines • 18.2 kB
JSON
{"openapi":"3.0.0","info":{"description":"API spec for Microsoft.Security (Azure Security Center) resource provider","title":"Security Center","version":"2017-08-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/2017-08-01-preview/informationProtectionPolicies.json","version":"2.0"}],"x-providerName":"azure.com","x-serviceName":"security-informationProtectionPolicies","x-tags":["Azure","Microsoft"]},"security":[{"azure_auth":["user_impersonation"]}],"paths":{"/{scope}/providers/Microsoft.Security/informationProtectionPolicies":{"get":{"description":"Information protection policies of a specific management group.","operationId":"InformationProtectionPolicies_List","parameters":[{"description":"API version for the operation","in":"query","name":"api-version","required":true,"schema":{"type":"string"},"examples":{"Get information protection policies":{"value":"2017-08-01-preview"}}},{"description":"Scope of the query, can be subscription (/subscriptions/0b06d9ea-afe6-4779-bd59-30e5c2d9d13f) or management group (/providers/Microsoft.Management/managementGroups/mgName).","in":"path","name":"scope","required":true,"x-ms-parameter-location":"method","schema":{"type":"string"},"examples":{"Get information protection policies":{"value":"providers/Microsoft.Management/managementGroups/148059f7-faf3-49a6-ba35-85122112291e"}}}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InformationProtectionPolicyList"},"examples":{"Get information protection policies":{"$ref":"#/components/examples/Get_information_protection_policies"}}}}},"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":["InformationProtectionPolicies"],"x-ms-pageable":{"nextLinkName":"nextLink"}}},"/{scope}/providers/Microsoft.Security/informationProtectionPolicies/{informationProtectionPolicyName}":{"get":{"description":"Details of the information protection policy.","operationId":"InformationProtectionPolicies_Get","parameters":[{"description":"API version for the operation","in":"query","name":"api-version","required":true,"schema":{"type":"string"},"examples":{"Get the customized information protection policy for a management group":{"value":"2017-08-01-preview"},"Get the effective information protection policy for a management group":{"value":"2017-08-01-preview"}}},{"description":"Scope of the query, can be subscription (/subscriptions/0b06d9ea-afe6-4779-bd59-30e5c2d9d13f) or management group (/providers/Microsoft.Management/managementGroups/mgName).","in":"path","name":"scope","required":true,"x-ms-parameter-location":"method","schema":{"type":"string"},"examples":{"Get the customized information protection policy for a management group":{"value":"providers/Microsoft.Management/managementGroups/148059f7-faf3-49a6-ba35-85122112291e"},"Get the effective information protection policy for a management group":{"value":"providers/Microsoft.Management/managementGroups/148059f7-faf3-49a6-ba35-85122112291e"}}},{"$ref":"#/components/parameters/InformationProtectionPolicyName"}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InformationProtectionPolicy"},"examples":{"Get the customized information protection policy for a management group":{"$ref":"#/components/examples/Get_the_customized_information_protection_policy_for_a_management_group"},"Get the effective information protection policy for a management group":{"$ref":"#/components/examples/Get_the_effective_information_protection_policy_for_a_management_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":["InformationProtectionPolicies"]},"put":{"description":"Details of the information protection policy.","operationId":"InformationProtectionPolicies_CreateOrUpdate","parameters":[{"description":"API version for the operation","in":"query","name":"api-version","required":true,"schema":{"type":"string"},"examples":{"Create or update an information protection policy for a management group":{"value":"2017-08-01-preview"}}},{"description":"Scope of the query, can be subscription (/subscriptions/0b06d9ea-afe6-4779-bd59-30e5c2d9d13f) or management group (/providers/Microsoft.Management/managementGroups/mgName).","in":"path","name":"scope","required":true,"x-ms-parameter-location":"method","schema":{"type":"string"},"examples":{"Create or update an information protection policy for a management group":{"value":"providers/Microsoft.Management/managementGroups/148059f7-faf3-49a6-ba35-85122112291e"}}},{"$ref":"#/components/parameters/InformationProtectionPolicyName"}],"responses":{"200":{"description":"OK","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InformationProtectionPolicy"},"examples":{"Create or update an information protection policy for a management group":{"$ref":"#/components/examples/Create_or_update_an_information_protection_policy_for_a_management_group"}}}}},"201":{"description":"Created","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InformationProtectionPolicy"},"examples":{"Create or update an information protection policy for a management group":{"$ref":"#/components/examples/Create_or_update_an_information_protection_policy_for_a_management_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":["InformationProtectionPolicies"]}}},"servers":[{"url":"https://management.azure.com"}],"components":{"examples":{"Get_information_protection_policies":{"value":{"value":[{"id":"/providers/Microsoft.Management/managementGroups/148059f7-faf3-49a6-ba35-85122112291e/providers/Microsoft.Security/informationProtectionPolicies/effective","name":"effective","properties":{"informationTypes":{"3bf35491-99b8-41f2-86d5-c1200a7df658":{"custom":true,"displayName":"Custom","enabled":true,"keywords":[{"canBeNumeric":false,"custom":true,"pattern":"%networking%"}],"order":1400,"recommendedLabelId":"7aa516c7-5a53-4857-bc6e-6808c6acd542"},"5856f35c-8e08-4d08-9bf7-87a146150569":{"custom":false,"displayName":"Contact Info","enabled":true,"keywords":[{"canBeNumeric":false,"custom":false,"pattern":"%email%"},{"canBeNumeric":false,"custom":false,"pattern":"%e-mail%"},{"canBeNumeric":false,"custom":false,"pattern":"%addr%"},{"canBeNumeric":true,"custom":false,"pattern":"%street%"},{"canBeNumeric":false,"custom":false,"pattern":"%city%"}],"order":200,"recommendedLabelId":"575739d2-3d53-4df0-9042-4c7772d5c7b1"},"7fb9419d-2473-4ad8-8e11-b25cc8cf6a07":{"custom":false,"displayName":"Networking","enabled":true,"keywords":[{"canBeNumeric":false,"custom":false,"pattern":"%ip%"},{"canBeNumeric":false,"custom":false,"pattern":"ip%address%"},{"canBeNumeric":false,"custom":false,"pattern":"%mac%address%"},{"canBeNumeric":true,"custom":true,"pattern":"%networking%"}],"order":100,"recommendedLabelId":"575739d2-3d53-4df0-9042-4c7772d5c7b1"}},"labels":{"1345da73-bc5a-4a8f-b7dd-3820eb713da8":{"displayName":"Public","enabled":true,"order":100},"575739d2-3d53-4df0-9042-4c7772d5c7b1":{"displayName":"Confidential","enabled":true,"order":300},"7aa516c7-5a53-4857-bc6e-6808c6acd542":{"displayName":"General","enabled":true,"order":200}}},"type":"Microsoft.Security/informationProtectionPolicies"},{"id":"/providers/Microsoft.Management/managementGroups/148059f7-faf3-49a6-ba35-85122112291e/providers/Microsoft.Security/informationProtectionPolicies/custom","name":"custom","properties":{"informationTypes":{"3bf35491-99b8-41f2-86d5-c1200a7df658":{"custom":true,"displayName":"Custom","enabled":true,"keywords":[{"canBeNumeric":true,"custom":true,"pattern":"%custom%"}],"order":1400,"recommendedLabelId":"7aa516c7-5a53-4857-bc6e-6808c6acd542"},"7fb9419d-2473-4ad8-8e11-b25cc8cf6a07":{"custom":false,"displayName":"Networking","enabled":true,"keywords":[{"canBeNumeric":false,"custom":true,"pattern":"%networking%"}],"order":100,"recommendedLabelId":"575739d2-3d53-4df0-9042-4c7772d5c7b1"}},"labels":{"1345da73-bc5a-4a8f-b7dd-3820eb713da8":{"displayName":"Public","enabled":true,"order":100},"575739d2-3d53-4df0-9042-4c7772d5c7b1":{"displayName":"Confidential","enabled":true,"order":300},"7aa516c7-5a53-4857-bc6e-6808c6acd542":{"displayName":"General","enabled":true,"order":200}}},"type":"Microsoft.Security/informationProtectionPolicies"}]}},"Get_the_customized_information_protection_policy_for_a_management_group":{"value":{"id":"/providers/Microsoft.Management/managementGroups/148059f7-faf3-49a6-ba35-85122112291e/providers/Microsoft.Security/informationProtectionPolicies/custom","name":"custom","properties":{"informationTypes":{"3bf35491-99b8-41f2-86d5-c1200a7df658":{"custom":true,"displayName":"Custom","enabled":true,"keywords":[{"canBeNumeric":true,"custom":true,"pattern":"%custom%"}],"order":1400,"recommendedLabelId":"7aa516c7-5a53-4857-bc6e-6808c6acd542"},"7fb9419d-2473-4ad8-8e11-b25cc8cf6a07":{"custom":false,"displayName":"Networking","enabled":true,"keywords":[{"canBeNumeric":false,"custom":true,"pattern":"%networking%"}],"order":100,"recommendedLabelId":"575739d2-3d53-4df0-9042-4c7772d5c7b1"}},"labels":{"1345da73-bc5a-4a8f-b7dd-3820eb713da8":{"displayName":"Public","enabled":true,"order":100},"575739d2-3d53-4df0-9042-4c7772d5c7b1":{"displayName":"Confidential","enabled":true,"order":300},"7aa516c7-5a53-4857-bc6e-6808c6acd542":{"displayName":"General","enabled":true,"order":200}}},"type":"Microsoft.Security/informationProtectionPolicies"}},"Get_the_effective_information_protection_policy_for_a_management_group":{"value":{"id":"/providers/Microsoft.Management/managementGroups/148059f7-faf3-49a6-ba35-85122112291e/providers/Microsoft.Security/informationProtectionPolicies/effective","name":"effective","properties":{"informationTypes":{"3bf35491-99b8-41f2-86d5-c1200a7df658":{"custom":true,"displayName":"Custom","enabled":true,"keywords":[{"canBeNumeric":false,"custom":true,"pattern":"%networking%"}],"order":1400,"recommendedLabelId":"7aa516c7-5a53-4857-bc6e-6808c6acd542"},"5856f35c-8e08-4d08-9bf7-87a146150569":{"custom":false,"displayName":"Contact Info","enabled":true,"keywords":[{"canBeNumeric":false,"custom":false,"pattern":"%email%"},{"canBeNumeric":false,"custom":false,"pattern":"%e-mail%"},{"canBeNumeric":false,"custom":false,"pattern":"%addr%"},{"canBeNumeric":true,"custom":false,"pattern":"%street%"},{"canBeNumeric":false,"custom":false,"pattern":"%city%"}],"order":200,"recommendedLabelId":"575739d2-3d53-4df0-9042-4c7772d5c7b1"},"7fb9419d-2473-4ad8-8e11-b25cc8cf6a07":{"custom":false,"displayName":"Networking","enabled":true,"keywords":[{"canBeNumeric":false,"custom":false,"pattern":"%ip%"},{"canBeNumeric":false,"custom":false,"pattern":"ip%address%"},{"canBeNumeric":false,"custom":false,"pattern":"%mac%address%"},{"canBeNumeric":true,"custom":true,"excluded":true,"pattern":"%networking%"}],"order":100,"recommendedLabelId":"575739d2-3d53-4df0-9042-4c7772d5c7b1"}},"labels":{"1345da73-bc5a-4a8f-b7dd-3820eb713da8":{"displayName":"Public","enabled":true,"order":100},"575739d2-3d53-4df0-9042-4c7772d5c7b1":{"displayName":"Confidential","enabled":true,"order":300},"7aa516c7-5a53-4857-bc6e-6808c6acd542":{"displayName":"General","enabled":true,"order":200}}},"type":"Microsoft.Security/informationProtectionPolicies"}},"Create_or_update_an_information_protection_policy_for_a_management_group":{"value":{"id":"/providers/Microsoft.Management/managementGroups/148059f7-faf3-49a6-ba35-85122112291e/providers/Microsoft.Security/informationProtectionPolicies/custom","name":"custom","properties":{"informationTypes":{"3bf35491-99b8-41f2-86d5-c1200a7df658":{"custom":true,"displayName":"Custom","enabled":true,"keywords":[{"canBeNumeric":true,"custom":true,"pattern":"%custom%"}],"order":1400,"recommendedLabelId":"7aa516c7-5a53-4857-bc6e-6808c6acd542"},"7fb9419d-2473-4ad8-8e11-b25cc8cf6a07":{"custom":false,"displayName":"Networking","enabled":true,"keywords":[{"canBeNumeric":false,"custom":true,"pattern":"%networking%"}],"order":100,"recommendedLabelId":"575739d2-3d53-4df0-9042-4c7772d5c7b1"}},"labels":{"1345da73-bc5a-4a8f-b7dd-3820eb713da8":{"displayName":"Public","enabled":true,"order":100},"575739d2-3d53-4df0-9042-4c7772d5c7b1":{"displayName":"Confidential","enabled":true,"order":300},"7aa516c7-5a53-4857-bc6e-6808c6acd542":{"displayName":"General","enabled":true,"order":200}}},"type":"Microsoft.Security/informationProtectionPolicies"}}},"parameters":{"InformationProtectionPolicyName":{"description":"Name of the information protection policy.","in":"path","name":"informationProtectionPolicyName","required":true,"x-ms-parameter-location":"method","schema":{"type":"string","enum":["effective","custom"]},"examples":{"Get the customized information protection policy for a management group":{"value":"custom"},"Get the effective information protection policy for a management group":{"value":"effective"},"Create or update an information protection policy for a management group":{"value":"custom"}}}},"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":{"InformationProtectionKeyword":{"description":"The information type keyword.","properties":{"canBeNumeric":{"description":"Indicates whether the keyword can be applied on numeric types or not.","type":"boolean"},"custom":{"description":"Indicates whether the keyword is custom or not.","type":"boolean"},"excluded":{"description":"Indicates whether the keyword is excluded or not.","type":"boolean"},"pattern":{"description":"The keyword pattern.","type":"string"}},"type":"object"},"InformationProtectionPolicy":{"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":"Information protection policy.","properties":{"properties":{"$ref":"#/components/schemas/InformationProtectionPolicyProperties"}},"type":"object"},"InformationProtectionPolicyList":{"description":"Information protection policies response.","properties":{"nextLink":{"description":"The URI to fetch the next page.","readOnly":true,"type":"string"},"value":{"description":"List of information protection policies.","items":{"$ref":"#/components/schemas/InformationProtectionPolicy"},"type":"array"}},"readOnly":true,"type":"object"},"InformationProtectionPolicyProperties":{"description":"describes properties of an information protection policy.","properties":{"informationTypes":{"additionalProperties":{"$ref":"#/components/schemas/InformationType"},"description":"The sensitivity information types.","type":"object"},"labels":{"additionalProperties":{"$ref":"#/components/schemas/SensitivityLabel"},"description":"Dictionary of sensitivity labels.","type":"object"},"lastModifiedUtc":{"description":"Describes the last UTC time the policy was modified.","format":"date-time","readOnly":true,"type":"string"}},"type":"object"},"InformationType":{"description":"The information type.","properties":{"custom":{"description":"Indicates whether the information type is custom or not.","type":"boolean"},"displayName":{"description":"The name of the information type.","type":"string"},"enabled":{"description":"Indicates whether the information type is enabled or not.","type":"boolean"},"keywords":{"description":"The information type keywords.","items":{"$ref":"#/components/schemas/InformationProtectionKeyword"},"type":"array"},"order":{"description":"The order of the information type.","type":"number"},"recommendedLabelId":{"description":"The recommended label id to be associated with this information type.","format":"uuid","type":"string"}},"type":"object"},"SensitivityLabel":{"description":"The sensitivity label.","properties":{"displayName":{"description":"The name of the sensitivity label.","type":"string"},"enabled":{"description":"Indicates whether the label is enabled or not.","type":"boolean"},"order":{"description":"The order of the sensitivity label.","type":"number"}},"type":"object"}}}}