Skip to content

[Hub Generated] Publish private branch 'security/dahandaniel/seurityOperators' #23323

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

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
@@ -0,0 +1,12 @@
{
"parameters": {
"api-version": "2023-01-01-preview",
"subscriptionId": "20ff7fc3-e762-44dd-bd96-b71116dcdc23",
"pricingName": "CloudPosture",
"securityOperatorName": "DefenderCSPMSecurityOperator"
},
"responses": {
"200": {},
"204": {}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
"parameters": {
"api-version": "2023-01-01-preview",
"subscriptionId": "20ff7fc3-e762-44dd-bd96-b71116dcdc23",
"pricingName": "CloudPosture",
"securityOperatorName": "DefenderCSPMSecurityOperator"
},
"responses": {
"200": {
"body": {
"id": "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/providers/Microsoft.Security/pricings/CloudPosture/securityOperators/DefenderCSPMSecurityOperator",
"name": "DefenderCSPMSecurityOperator",
"type": "Microsoft.Security/pricings/securityOperator",
"identity": {
"type": "SystemAssigned",
"principalId": "44ee8e7e-7f52-4750-b937-27490fbf7663",
"tenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47"
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
{
"parameters": {
"api-version": "2023-01-01-preview",
"subscriptionId": "20ff7fc3-e762-44dd-bd96-b71116dcdc23",
"pricingName": "CloudPosture"
},
"responses": {
"200": {
"body": {
"value": [
{
"id": "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/providers/Microsoft.Security/pricings/CloudPosture/securityOperators/DefenderCSPMSecurityOperator",
"name": "DefenderCSPMSecurityOperator",
"type": "Microsoft.Security/pricings/securityOperator",
"identity": {
"type": "SystemAssigned",
"principalId": "44ee8e7e-7f52-4750-b937-27490fbf7663",
"tenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47"
}
}
]
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
"parameters": {
"api-version": "2023-01-01-preview",
"subscriptionId": "20ff7fc3-e762-44dd-bd96-b71116dcdc23",
"pricingName": "CloudPosture",
"securityOperatorName": "DefenderCSPMSecurityOperator"
},
"responses": {
"200": {
"body": {
"id": "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/providers/Microsoft.Security/pricings/CloudPosture/securityOperators/DefenderCSPMSecurityOperator",
"name": "DefenderCSPMSecurityOperator",
"type": "Microsoft.Security/pricings/securityOperator",
"identity": {
"type": "SystemAssigned",
"principalId": "44ee8e7e-7f52-4750-b937-27490fbf7663",
"tenantId": "72f988bf-86f1-41af-91ab-2d7cd011db47"
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,265 @@
{
"swagger": "2.0",
"info": {
"title": "Microsoft Defender for Cloud",
"description": "API spec for Microsoft.Security (Microsoft Defender for Cloud) resource provider",
"version": "2023-01-01-preview"
},
"host": "management.azure.com",
"schemes": [
"https"
],
"consumes": [
"application/json"
],
"produces": [
"application/json"
],
"security": [
{
"azure_auth": [
"user_impersonation"
]
}
],
"securityDefinitions": {
"azure_auth": {
"type": "oauth2",
"authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize",
"flow": "implicit",
"description": "Azure Active Directory OAuth2 Flow",
"scopes": {
"user_impersonation": "impersonate your user account"
}
}
},
"paths": {
"/subscriptions/{subscriptionId}/providers/Microsoft.Security/pricings/{pricingName}/securityOperators": {
"get": {
"x-ms-examples": {
"List SecurityOperators": {
"$ref": "./examples/SecurityOperators/ListSecurityOperators_example.json"
}
},
"tags": [
"SecurityOperators"
],
"description": "Lists Microsoft Defender for Cloud securityOperators in the subscription.",
"operationId": "SecurityOperators_List",
"parameters": [
{
"$ref": "../../../common/v1/types.json#/parameters/ApiVersion"
},
{
"$ref": "../../../common/v1/types.json#/parameters/SubscriptionId"
},
{
"$ref": "#/parameters/PricingName"
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/SecurityOperatorList"
}
},
"default": {
"description": "Error response describing why the operation failed.",
"schema": {
"$ref": "../../../common/v1/types.json#/definitions/CloudError"
}
}
}
}
},
"/subscriptions/{subscriptionId}/providers/Microsoft.Security/pricings/{pricingName}/securityOperators/{securityOperatorName}": {
"get": {
"x-ms-examples": {
"Get a specific security operator by scope and securityOperatorName": {
"$ref": "./examples/SecurityOperators/GetSecurityOperatorByName_example.json"
}
},
"tags": [
"SecurityOperators"
],
"description": "Get a specific security operator for the requested scope.",
"operationId": "SecurityOperators_Get",
"parameters": [
{
"$ref": "../../../common/v1/types.json#/parameters/ApiVersion"
},
{
"$ref": "../../../common/v1/types.json#/parameters/SubscriptionId"
},
{
"$ref": "#/parameters/PricingName"
},
{
"$ref": "#/parameters/SecurityOperatorName"
}
],
"responses": {
"200": {
"description": "OK",
"schema": {
"$ref": "#/definitions/SecurityOperator"
}
},
"default": {
"description": "Error response describing why the operation failed.",
"schema": {
"$ref": "../../../common/v1/types.json#/definitions/CloudError"
}
}
}
},
"put": {
"x-ms-examples": {
"Create a security operator on the given scope": {
"$ref": "./examples/SecurityOperators/PutSecurityOperatorByName_example.json"
}
},
"tags": [
"SecurityOperators"
],
"description": "Creates Microsoft Defender for Cloud security operator on the given scope.",
"operationId": "SecurityOperators_CreateOrUpdate",
"parameters": [
{
"$ref": "../../../common/v1/types.json#/parameters/ApiVersion"
},
{
"$ref": "../../../common/v1/types.json#/parameters/SubscriptionId"
},
{
"$ref": "#/parameters/PricingName"
},
{
"$ref": "#/parameters/SecurityOperatorName"
}
],
"responses": {
"200": {
"description": "Successful request to put Security Operator.",
"schema": {
"$ref": "#/definitions/SecurityOperator"
}
},
"default": {
"description": "Error response describing why the operation failed.",
"schema": {
"$ref": "../../../common/v1/types.json#/definitions/CloudError"
}
}
}
},
"delete": {
"x-ms-examples": {
"Delete SecurityOperator on subscription": {
"$ref": "./examples/SecurityOperators/DeleteSecurityOperatorByName_example.json"
}
},
"tags": [
"SecurityOperators"
],
"description": "Delete Microsoft Defender for Cloud securityOperator in the subscription.",
"operationId": "SecurityOperators_Delete",
"parameters": [
{
"$ref": "../../../common/v1/types.json#/parameters/ApiVersion"
},
{
"$ref": "../../../common/v1/types.json#/parameters/SubscriptionId"
},
{
"$ref": "#/parameters/PricingName"
},
{
"$ref": "#/parameters/SecurityOperatorName"
}
],
"responses": {
"200": {
"description": "OK - Security Operator was deleted"
},
"204": {
"description": "No Content - Security Operator does not exist"
},
"default": {
"description": "Error response describing why the operation failed.",
"schema": {
"$ref": "../../../common/v1/types.json#/definitions/CloudError"
}
}
}
}
}
},
"definitions": {
"SecurityOperatorList": {
"type": "object",
"description": "List of SecurityOperator response.",
"required": [
"value"
],
"properties": {
"value": {
"type": "array",
"description": "List of SecurityOperator configurations",
"items": {
"$ref": "#/definitions/SecurityOperator"
}
}
}
},
"SecurityOperator": {
"type": "object",
"description": "Security operator under a given subscription and pricing",
"properties": {
"identity": {
"$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/Identity"
}
},
"allOf": [
{
"$ref": "../../../common/v1/types.json#/definitions/Resource"
}
]
}
},
"parameters": {
"PricingName": {
"name": "pricingName",
"in": "path",
"required": true,
"type": "string",
"description": "name of the pricing configuration",
"pattern": "^[a-zA-Z][a-zA-Z0-9_]+$",
"minLength": 3,
"maxLength": 63,
"x-ms-parameter-location": "method"
},
"SecurityOperatorName": {
"name": "securityOperatorName",
"in": "path",
"required": true,
"type": "string",
"description": "name of the securityOperator",
"pattern": "^[a-zA-Z][a-zA-Z0-9_]+$",
"minLength": 3,
"maxLength": 63,
"x-ms-parameter-location": "method"
},
"SecurityOperator": {
"name": "SecurityOperator",
"in": "body",
"required": true,
"description": "SecurityOperator object",
"schema": {
"$ref": "#/definitions/SecurityOperator"
},
"x-ms-parameter-location": "method"
}
}
}
3 changes: 2 additions & 1 deletion specification/security/resource-manager/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -85,14 +85,14 @@ tag: package-composite-v3

The following packages may be composed from multiple api-versions.


### Tag: package-preview-2023-03

These settings apply only when `--tag=package-preview-2023-03` is specified on the command line.

```yaml $(tag) == 'package-preview-2023-03'
input-file:
- Microsoft.Security/preview/2023-03-01-preview/securityConnectors.json
- Microsoft.Security/preview/2023-01-01-preview/securityOperators.json
```
### Tag: package-preview-2023-02

Expand Down Expand Up @@ -342,6 +342,7 @@ input-file:
- Microsoft.Security/preview/2023-02-01-preview/sqlVulnerabilityAssessmentsScanResultsOperations.json
- Microsoft.Security/preview/2023-02-01-preview/sqlVulnerabilityAssessmentsBaselineRuleOperations.json
- Microsoft.Security/preview/2023-03-01-preview/securityConnectors.json
- Microsoft.Security/preview/2023-01-01-preview/securityOperators.json


# Needed when there is more than one input file
Expand Down