Security Standards - Create Or Update
Crée ou met à jour une norme de sécurité sur une étendue donnée
PUT https://management.azure.com/{scope}/providers/Microsoft.Security/securityStandards/{standardId}?api-version=2024-08-01
Paramètres URI
Nom | Dans | Obligatoire | Type | Description |
---|---|---|---|---|
scope
|
path | True |
string |
Étendue de la norme de sécurité. Les étendues valides sont les suivantes : groupe d’administration (format : « providers/Microsoft.Management/managementGroups/{managementGroup} »), abonnement (format : « subscriptions/{subscriptionId} ») ou connecteur de sécurité (format : « subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/securityConnectors/{securityConnectorName}) » |
standard
|
path | True |
string |
Clé Standard de sécurité : clé unique pour le type standard Modèle d’expression régulière: |
api-version
|
query | True |
string |
Version de l’API à utiliser pour cette opération. |
Corps de la demande
Nom | Type | Description |
---|---|---|
properties.assessments |
Liste des clés d’évaluation à appliquer à l’étendue standard. |
|
properties.cloudProviders |
Liste de tous les clouds pris en charge standard. |
|
properties.description |
string |
Description de la norme |
properties.displayName |
string |
Nom complet de la norme, équivalent au standardId |
properties.metadata |
Métadonnées standard de sécurité. |
|
properties.policySetDefinitionId |
string |
ID de définition du jeu de stratégies associé à la norme. |
Réponses
Nom | Type | Description |
---|---|---|
200 OK |
Standard de sécurité correctement mis à jour |
|
201 Created |
Créé |
|
Other Status Codes |
Réponse d’erreur décrivant pourquoi l’opération a échoué |
Sécurité
azure_auth
Flux OAuth2 Azure Active Directory
Type:
oauth2
Flux:
implicit
URL d’autorisation:
https://login.microsoftonline.com/common/oauth2/authorize
Étendues
Nom | Description |
---|---|
user_impersonation | emprunter l’identité de votre compte d’utilisateur |
Exemples
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
Exemple de requête
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"
}
}
Exemple de réponse
{
"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
Exemple de requête
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"
]
}
}
Exemple de réponse
{
"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
Exemple de requête
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"
}
}
Exemple de réponse
{
"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"
}
}
}
Définitions
Nom | Description |
---|---|
Error |
Informations supplémentaires sur l’erreur de gestion des ressources. |
Error |
Détail de l’erreur. |
Error |
Réponse d’erreur |
Partial |
Décrit les propriétés d’une évaluation en lien avec la norme |
Security |
Norme de sécurité sur une ressource |
Standard |
Métadonnées standard |
Standard |
Le cloud sur lequel la norme est prise en charge. |
standard |
Type standard (Personnalisé ou Par défaut ou Conformité uniquement actuellement) |
ErrorAdditionalInfo
Informations supplémentaires sur l’erreur de gestion des ressources.
Nom | Type | Description |
---|---|---|
info |
object |
Informations supplémentaires. |
type |
string |
Type d’informations supplémentaire. |
ErrorDetail
Détail de l’erreur.
Nom | Type | Description |
---|---|---|
additionalInfo |
Informations supplémentaires sur l’erreur. |
|
code |
string |
Code d’erreur. |
details |
Détails de l’erreur. |
|
message |
string |
Message d’erreur. |
target |
string |
Cible d’erreur. |
ErrorResponse
Réponse d’erreur
Nom | Type | Description |
---|---|---|
error |
Objet d’erreur. |
PartialAssessmentProperties
Décrit les propriétés d’une évaluation en lien avec la norme
Nom | Type | Description |
---|---|---|
assessmentKey |
string |
Clé d’évaluation |
SecurityStandard
Norme de sécurité sur une ressource
Nom | Type | Description |
---|---|---|
id |
string |
ID de ressource |
name |
string |
Nom de la ressource |
properties.assessments |
Liste des clés d’évaluation à appliquer à l’étendue standard. |
|
properties.cloudProviders |
Liste de tous les clouds pris en charge standard. |
|
properties.description |
string |
Description de la norme |
properties.displayName |
string |
Nom complet de la norme, équivalent au standardId |
properties.metadata |
Métadonnées standard de sécurité. |
|
properties.policySetDefinitionId |
string |
ID de définition du jeu de stratégies associé à la norme. |
properties.standardType |
Type standard (Personnalisé ou Par défaut ou Conformité uniquement actuellement) |
|
type |
string |
Type de ressource |
StandardMetadata
Métadonnées standard
Nom | Type | Description |
---|---|---|
createdBy |
string |
Standard Créé par ID d’objet (GUID) |
createdOn |
string |
Date de création standard |
lastUpdatedBy |
string |
Dernière mise à jour standard par ID d’objet (GUID) |
lastUpdatedOn |
string |
Date de la dernière mise à jour standard |
StandardSupportedCloud
Le cloud sur lequel la norme est prise en charge.
Nom | Type | Description |
---|---|---|
AWS |
string |
|
Azure |
string |
|
GCP |
string |
standardType
Type standard (Personnalisé ou Par défaut ou Conformité uniquement actuellement)
Nom | Type | Description |
---|---|---|
Compliance |
string |
|
Custom |
string |
|
Default |
string |