Security Standards - Create Or Update
Skapar eller uppdaterar en säkerhetsstandard över ett visst omfång
PUT https://management.azure.com/{scope}/providers/Microsoft.Security/securityStandards/{standardId}?api-version=2024-08-01
URI-parametrar
Name | I | Obligatorisk | Typ | Description |
---|---|---|---|---|
scope
|
path | True |
string |
Säkerhetsstandardens omfattning. Giltiga omfång är: hanteringsgrupp (format: "providers/Microsoft.Management/managementGroups/{managementGroup}", prenumeration (format: "subscriptions/{subscriptionId}") eller säkerhetsanslutningsprogram (format: "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/securityConnectors/{securityConnectorName})" |
standard
|
path | True |
string |
Säkerhetsstandardnyckeln – unik nyckel för standardtypen Reguljärt uttrycksmönster: |
api-version
|
query | True |
string |
DEN API-version som ska användas för den här åtgärden. |
Begärandetext
Name | Typ | Description |
---|---|---|
properties.assessments |
Lista över utvärderingsnycklar som ska tillämpas på standardomfånget. |
|
properties.cloudProviders |
Lista över alla standardmoln som stöds. |
|
properties.description |
string |
Beskrivning av standarden |
properties.displayName |
string |
Visningsnamn för standarden, motsvarande standardId |
properties.metadata |
Säkerhetsstandardmetadata. |
|
properties.policySetDefinitionId |
string |
Det principuppsättningsdefinitions-ID som är associerat med standarden. |
Svar
Name | Typ | Description |
---|---|---|
200 OK |
Säkerhetsstandarden har uppdaterats |
|
201 Created |
Skapad |
|
Other Status Codes |
Felsvar som beskriver varför åtgärden misslyckades |
Säkerhet
azure_auth
Azure Active Directory OAuth2 Flow
Typ:
oauth2
Flow:
implicit
Auktoriseringswebbadress:
https://login.microsoftonline.com/common/oauth2/authorize
Omfattningar
Name | Description |
---|---|
user_impersonation | personifiera ditt användarkonto |
Exempel
Create or update security standard over management group scope |
Create or update security standard over security connector scope |
Create or update security standard over subscription scope |
Create or update security standard over management group scope
Exempelbegäran
PUT https://management.azure.com/providers/Microsoft.Management/managementGroups/contoso/providers/Microsoft.Security/securityStandards/8bb8be0a-6010-4789-812f-e4d661c4ed0e?api-version=2024-08-01
{
"properties": {
"displayName": "Azure Test Security Standard 1",
"description": "description of Azure Test Security Standard 1",
"assessments": [
{
"assessmentKey": "1195afff-c881-495e-9bc5-1486211ae03f"
},
{
"assessmentKey": "dbd0cb49-b563-45e7-9724-889e799fa648"
}
],
"cloudProviders": [
"GCP"
],
"policySetDefinitionId": "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/providers/Microsoft.Authorization/policySetDefinitions/patchorchestration-applicationversions"
}
}
Exempelsvar
{
"id": "/providers/Microsoft.Management/managementGroups/contoso/resourceGroups/myResourceGroup/provider/Microsoft.Security/securityStandards/8bb8be0a-6010-4789-812f-e4d661c4ed0e",
"name": "8bb8be0a-6010-4789-812f-e4d661c4ed0e",
"type": "Microsoft.Security/securityStandards",
"properties": {
"displayName": "Azure Test Security Standard 1",
"standardType": "Custom",
"description": "description of Azure Test Security Standard 1",
"assessments": [
{
"assessmentKey": "1195afff-c881-495e-9bc5-1486211ae03f"
},
{
"assessmentKey": "dbd0cb49-b563-45e7-9724-889e799fa648"
}
],
"cloudProviders": [
"GCP"
],
"policySetDefinitionId": "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/providers/Microsoft.Authorization/policySetDefinitions/patchorchestration-applicationversions",
"metadata": {
"createdBy": "c23b5354-ff0a-4b2a-9f92-6f144effd936",
"createdOn": "2022-11-10T08:31:26.7993124Z",
"lastUpdatedBy": "c23b5354-ff0a-4b2a-9f92-6f144effd936",
"lastUpdatedOn": "2022-11-10T08:31:26.7993124Z"
}
}
}
{
"id": "/providers/Microsoft.Management/managementGroups/contoso/resourceGroups/myResourceGroup/provider/Microsoft.Security/securityStandards/8bb8be0a-6010-4789-812f-e4d661c4ed0e",
"name": "8bb8be0a-6010-4789-812f-e4d661c4ed0e",
"type": "Microsoft.Security/securityStandards",
"properties": {
"displayName": "Azure Test Security Standard 1",
"standardType": "Custom",
"description": "description of Azure Test Security Standard 1",
"assessments": [
{
"assessmentKey": "1195afff-c881-495e-9bc5-1486211ae03f"
},
{
"assessmentKey": "dbd0cb49-b563-45e7-9724-889e799fa648"
}
],
"cloudProviders": [
"GCP"
],
"policySetDefinitionId": "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/providers/Microsoft.Authorization/policySetDefinitions/patchorchestration-applicationversions",
"metadata": {
"createdBy": "c23b5354-ff0a-4b2a-9f92-6f144effd936",
"createdOn": "2022-11-10T08:31:26.7993124Z",
"lastUpdatedBy": "c23b5354-ff0a-4b2a-9f92-6f144effd936",
"lastUpdatedOn": "2022-11-10T08:31:26.7993124Z"
}
}
}
Create or update security standard over security connector scope
Exempelbegäran
PUT https://management.azure.com/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/gcpResourceGroup/providers/Microsoft.Security/securityConnectors/gcpconnector/providers/Microsoft.Security/securityStandards/8bb8be0a-6010-4789-812f-e4d661c4ed0e?api-version=2024-08-01
{
"properties": {
"displayName": "Azure Test Security Standard 1",
"description": "description of Azure Test Security Standard 1",
"assessments": [
{
"assessmentKey": "1195afff-c881-495e-9bc5-1486211ae03f"
},
{
"assessmentKey": "dbd0cb49-b563-45e7-9724-889e799fa648"
}
],
"cloudProviders": [
"GCP"
]
}
}
Exempelsvar
{
"id": "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/gcpResourceGroup/providers/Microsoft.Security/securityConnectors/gcpconnector/resourceGroups/myResourceGroup/provider/Microsoft.Security/securityStandards/8bb8be0a-6010-4789-812f-e4d661c4ed0e",
"name": "8bb8be0a-6010-4789-812f-e4d661c4ed0e",
"type": "Microsoft.Security/securityStandards",
"properties": {
"displayName": "Azure Test Security Standard 1",
"standardType": "Custom",
"description": "description of Azure Test Security Standard 1",
"assessments": [
{
"assessmentKey": "1195afff-c881-495e-9bc5-1486211ae03f"
},
{
"assessmentKey": "dbd0cb49-b563-45e7-9724-889e799fa648"
}
],
"cloudProviders": [
"GCP"
],
"metadata": {
"createdBy": "c23b5354-ff0a-4b2a-9f92-6f144effd936",
"createdOn": "2022-11-10T08:31:26.7993124Z",
"lastUpdatedBy": "c23b5354-ff0a-4b2a-9f92-6f144effd936",
"lastUpdatedOn": "2022-11-10T08:31:26.7993124Z"
}
}
}
{
"id": "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/gcpResourceGroup/providers/Microsoft.Security/securityConnectors/gcpconnector/resourceGroups/myResourceGroup/provider/Microsoft.Security/securityStandards/8bb8be0a-6010-4789-812f-e4d661c4ed0e",
"name": "8bb8be0a-6010-4789-812f-e4d661c4ed0e",
"type": "Microsoft.Security/securityStandards",
"properties": {
"displayName": "Azure Test Security Standard 1",
"description": "description of Azure Test Security Standard 1",
"assessments": [
{
"assessmentKey": "1195afff-c881-495e-9bc5-1486211ae03f"
},
{
"assessmentKey": "dbd0cb49-b563-45e7-9724-889e799fa648"
}
],
"cloudProviders": [
"GCP"
],
"metadata": {
"createdBy": "c23b5354-ff0a-4b2a-9f92-6f144effd936",
"createdOn": "2022-11-10T08:31:26.7993124Z",
"lastUpdatedBy": "c23b5354-ff0a-4b2a-9f92-6f144effd936",
"lastUpdatedOn": "2022-11-10T08:31:26.7993124Z"
}
}
}
Create or update security standard over subscription scope
Exempelbegäran
PUT https://management.azure.com/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/providers/Microsoft.Security/securityStandards/8bb8be0a-6010-4789-812f-e4d661c4ed0e?api-version=2024-08-01
{
"properties": {
"displayName": "Azure Test Security Standard 1",
"description": "description of Azure Test Security Standard 1",
"assessments": [
{
"assessmentKey": "1195afff-c881-495e-9bc5-1486211ae03f"
},
{
"assessmentKey": "dbd0cb49-b563-45e7-9724-889e799fa648"
}
],
"cloudProviders": [
"GCP"
],
"policySetDefinitionId": "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/providers/Microsoft.Authorization/policySetDefinitions/patchorchestration-applicationversions"
}
}
Exempelsvar
{
"id": "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/myResourceGroup/provider/Microsoft.Security/securityStandards/8bb8be0a-6010-4789-812f-e4d661c4ed0e",
"name": "8bb8be0a-6010-4789-812f-e4d661c4ed0e",
"type": "Microsoft.Security/securityStandards",
"properties": {
"displayName": "Azure Test Security Standard 1",
"standardType": "Custom",
"description": "description of Azure Test Security Standard 1",
"assessments": [
{
"assessmentKey": "1195afff-c881-495e-9bc5-1486211ae03f"
},
{
"assessmentKey": "dbd0cb49-b563-45e7-9724-889e799fa648"
}
],
"cloudProviders": [
"GCP"
],
"policySetDefinitionId": "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/providers/Microsoft.Authorization/policySetDefinitions/patchorchestration-applicationversions",
"metadata": {
"createdBy": "c23b5354-ff0a-4b2a-9f92-6f144effd936",
"createdOn": "2022-11-10T08:31:26.7993124Z",
"lastUpdatedBy": "c23b5354-ff0a-4b2a-9f92-6f144effd936",
"lastUpdatedOn": "2022-11-10T08:31:26.7993124Z"
}
}
}
{
"id": "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/resourceGroups/myResourceGroup/provider/Microsoft.Security/securityStandards/8bb8be0a-6010-4789-812f-e4d661c4ed0e",
"name": "8bb8be0a-6010-4789-812f-e4d661c4ed0e",
"type": "Microsoft.Security/securityStandards",
"properties": {
"displayName": "Azure Test Security Standard 1",
"standardType": "Custom",
"description": "description of Azure Test Security Standard 1",
"assessments": [
{
"assessmentKey": "1195afff-c881-495e-9bc5-1486211ae03f"
},
{
"assessmentKey": "dbd0cb49-b563-45e7-9724-889e799fa648"
}
],
"cloudProviders": [
"GCP"
],
"policySetDefinitionId": "/subscriptions/20ff7fc3-e762-44dd-bd96-b71116dcdc23/providers/Microsoft.Authorization/policySetDefinitions/patchorchestration-applicationversions",
"metadata": {
"createdBy": "c23b5354-ff0a-4b2a-9f92-6f144effd936",
"createdOn": "2022-11-10T08:31:26.7993124Z",
"lastUpdatedBy": "c23b5354-ff0a-4b2a-9f92-6f144effd936",
"lastUpdatedOn": "2022-11-10T08:31:26.7993124Z"
}
}
}
Definitioner
Name | Description |
---|---|
Error |
Ytterligare information om resurshanteringsfelet. |
Error |
Felinformationen. |
Error |
Felsvar |
Partial |
Beskriver egenskaperna för en utvärdering som relaterade till standarden |
Security |
Security Standard på en resurs |
Standard |
Standardmetadata |
Standard |
Molnet som standarden stöds på. |
standard |
Standardtyp (anpassad eller standard eller efterlevnad endast för närvarande) |
ErrorAdditionalInfo
Ytterligare information om resurshanteringsfelet.
Name | Typ | Description |
---|---|---|
info |
object |
Ytterligare information. |
type |
string |
Ytterligare informationstyp. |
ErrorDetail
Felinformationen.
Name | Typ | Description |
---|---|---|
additionalInfo |
Ytterligare information om felet. |
|
code |
string |
Felkoden. |
details |
Felinformationen. |
|
message |
string |
Felmeddelandet. |
target |
string |
Felmålet. |
ErrorResponse
Felsvar
Name | Typ | Description |
---|---|---|
error |
Felobjektet. |
PartialAssessmentProperties
Beskriver egenskaperna för en utvärdering som relaterade till standarden
Name | Typ | Description |
---|---|---|
assessmentKey |
string |
Utvärderingsnyckeln |
SecurityStandard
Security Standard på en resurs
Name | Typ | Description |
---|---|---|
id |
string |
Resurs-ID |
name |
string |
Resursnamn |
properties.assessments |
Lista över utvärderingsnycklar som ska tillämpas på standardomfånget. |
|
properties.cloudProviders |
Lista över alla standardmoln som stöds. |
|
properties.description |
string |
Beskrivning av standarden |
properties.displayName |
string |
Visningsnamn för standarden, motsvarande standardId |
properties.metadata |
Säkerhetsstandardmetadata. |
|
properties.policySetDefinitionId |
string |
Det principuppsättningsdefinitions-ID som är associerat med standarden. |
properties.standardType |
Standardtyp (anpassad eller standard eller efterlevnad endast för närvarande) |
|
type |
string |
Resurstyp |
StandardMetadata
Standardmetadata
Name | Typ | Description |
---|---|---|
createdBy |
string |
Standard skapad av objekt-ID (GUID) |
createdOn |
string |
Standarddatum för skapande |
lastUpdatedBy |
string |
Standard senast uppdaterad av objekt-ID (GUID) |
lastUpdatedOn |
string |
Standarddatum för senaste uppdatering |
StandardSupportedCloud
Molnet som standarden stöds på.
Name | Typ | Description |
---|---|---|
AWS |
string |
|
Azure |
string |
|
GCP |
string |
standardType
Standardtyp (anpassad eller standard eller efterlevnad endast för närvarande)
Name | Typ | Description |
---|---|---|
Compliance |
string |
|
Custom |
string |
|
Default |
string |