Security Operators - Create Or Update
Creates Microsoft Defender for Cloud security operator on the given scope.
PUT https://management.azure.com/subscriptions/{subscriptionId}/providers/Microsoft.Security/pricings/{pricingName}/securityOperators/{securityOperatorName}?api-version=2023-01-01-preview
URI Parameters
| Name | In | Required | Type | Description |
|---|---|---|---|---|
|
pricing
|
path | True |
string minLength: 3maxLength: 63 pattern: ^[a-zA-Z][a-zA-Z0-9_]+$ |
name of the pricing configuration |
|
security
|
path | True |
string minLength: 3maxLength: 63 pattern: ^[a-zA-Z][a-zA-Z0-9_]+$ |
name of the securityOperator |
|
subscription
|
path | True |
string pattern: ^[0-9A-Fa-f]{8}-([0-9A-Fa-f]{4}-){3}[0-9A-Fa-f]{12}$ |
Azure subscription ID |
|
api-version
|
query | True |
string |
API version for the operation |
Responses
| Name | Type | Description |
|---|---|---|
| 200 OK |
Successful request to put Security Operator. |
|
| Other Status Codes |
Error response describing why the operation failed. |
Security
azure_auth
Azure Active Directory OAuth2 Flow
Type:
oauth2
Flow:
implicit
Authorization URL:
https://login.microsoftonline.com/common/oauth2/authorize
Scopes
| Name | Description |
|---|---|
| user_impersonation | impersonate your user account |
Examples
Create a security operator on the given scope
Sample request
Sample response
{
"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"
}
}
Definitions
| Name | Description |
|---|---|
|
Cloud |
Common error response for all Azure Resource Manager APIs to return error details for failed operations. (This also follows the OData error response format.). |
|
Cloud |
The error detail. |
|
Error |
The resource management error additional info. |
| Identity |
Identity for the resource. |
|
Resource |
The identity type. |
|
Security |
Security operator under a given subscription and pricing |
CloudError
Common error response for all Azure Resource Manager APIs to return error details for failed operations. (This also follows the OData error response format.).
| Name | Type | Description |
|---|---|---|
| error.additionalInfo |
The error additional info. |
|
| error.code |
string |
The error code. |
| error.details |
The error details. |
|
| error.message |
string |
The error message. |
| error.target |
string |
The error target. |
CloudErrorBody
The error detail.
| Name | Type | Description |
|---|---|---|
| additionalInfo |
The error additional info. |
|
| code |
string |
The error code. |
| details |
The error details. |
|
| message |
string |
The error message. |
| target |
string |
The error target. |
ErrorAdditionalInfo
The resource management error additional info.
| Name | Type | Description |
|---|---|---|
| info |
object |
The additional info. |
| type |
string |
The additional info type. |
Identity
Identity for the resource.
| Name | Type | Description |
|---|---|---|
| principalId |
string |
The principal ID of resource identity. |
| tenantId |
string |
The tenant ID of resource. |
| type |
The identity type. |
ResourceIdentityType
The identity type.
| Value | Description |
|---|---|
| SystemAssigned |
SecurityOperator
Security operator under a given subscription and pricing
| Name | Type | Description |
|---|---|---|
| id |
string |
Resource Id |
| identity |
Identity for the resource. |
|
| name |
string |
Resource name |
| type |
string |
Resource type |