Security Standards - Create Or Update
Een beveiligingsstandaard voor een bepaald bereik maken of bijwerken
PUT https://management.azure.com/{scope}/providers/Microsoft.Security/securityStandards/{standardId}?api-version=2024-08-01
URI-parameters
Name | In | Vereist | Type | Description |
---|---|---|---|---|
scope
|
path | True |
string |
Het bereik van de beveiligingsstandaard. Geldige bereiken zijn: beheergroep (indeling: providers/Microsoft.Management/managementGroups/{managementGroup}), abonnement (indeling: 'subscriptions/{subscriptionId}'), of beveiligingsconnector (indeling: 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Security/securityConnectors/{securityConnectorName})' |
standard
|
path | True |
string |
De sleutel Security Standard - unieke sleutel voor het standaardtype Regex-patroon: |
api-version
|
query | True |
string |
De API-versie die voor deze bewerking moet worden gebruikt. |
Aanvraagbody
Name | Type | Description |
---|---|---|
properties.assessments |
Lijst met evaluatiesleutels die moeten worden toegepast op standaardbereik. |
|
properties.cloudProviders |
Lijst met alle standaard ondersteunde clouds. |
|
properties.description |
string |
Beschrijving van de standaard |
properties.displayName |
string |
Weergavenaam van de standaard, gelijk aan de standardId |
properties.metadata |
De metagegevens van de beveiligingsstandaard. |
|
properties.policySetDefinitionId |
string |
De definitie-id van de beleidsset die aan de standaard is gekoppeld. |
Antwoorden
Name | Type | Description |
---|---|---|
200 OK |
Beveiligingsstandaard is bijgewerkt |
|
201 Created |
Geschapen |
|
Other Status Codes |
Foutbericht waarin wordt beschreven waarom de bewerking is mislukt |
Beveiliging
azure_auth
Azure Active Directory OAuth2-stroom
Type:
oauth2
Stroom:
implicit
Autorisatie-URL:
https://login.microsoftonline.com/common/oauth2/authorize
Bereiken
Name | Description |
---|---|
user_impersonation | Uw gebruikersaccount imiteren |
Voorbeelden
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
Voorbeeldaanvraag
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"
}
}
Voorbeeldrespons
{
"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
Voorbeeldaanvraag
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"
]
}
}
Voorbeeldrespons
{
"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
Voorbeeldaanvraag
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"
}
}
Voorbeeldrespons
{
"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"
}
}
}
Definities
Name | Description |
---|---|
Error |
Aanvullende informatie over de resourcebeheerfout. |
Error |
De foutdetails. |
Error |
Foutreactie |
Partial |
Beschrijft eigenschappen van een evaluatie als gerelateerd aan de standaard |
Security |
Beveiligingsstandaard voor een resource |
Standard |
De standaardmetagegevens |
Standard |
De cloud waarop de standaard wordt ondersteund. |
standard |
Standaardtype (momenteel alleen aangepast of standaard of naleving) |
ErrorAdditionalInfo
Aanvullende informatie over de resourcebeheerfout.
Name | Type | Description |
---|---|---|
info |
object |
De aanvullende informatie. |
type |
string |
Het extra informatietype. |
ErrorDetail
De foutdetails.
Name | Type | Description |
---|---|---|
additionalInfo |
De fout bevat aanvullende informatie. |
|
code |
string |
De foutcode. |
details |
De foutdetails. |
|
message |
string |
Het foutbericht. |
target |
string |
Het foutdoel. |
ErrorResponse
Foutreactie
Name | Type | Description |
---|---|---|
error |
Het foutobject. |
PartialAssessmentProperties
Beschrijft eigenschappen van een evaluatie als gerelateerd aan de standaard
Name | Type | Description |
---|---|---|
assessmentKey |
string |
De evaluatiesleutel |
SecurityStandard
Beveiligingsstandaard voor een resource
Name | Type | Description |
---|---|---|
id |
string |
Resource-id |
name |
string |
Resourcenaam |
properties.assessments |
Lijst met evaluatiesleutels die moeten worden toegepast op standaardbereik. |
|
properties.cloudProviders |
Lijst met alle standaard ondersteunde clouds. |
|
properties.description |
string |
Beschrijving van de standaard |
properties.displayName |
string |
Weergavenaam van de standaard, gelijk aan de standardId |
properties.metadata |
De metagegevens van de beveiligingsstandaard. |
|
properties.policySetDefinitionId |
string |
De definitie-id van de beleidsset die aan de standaard is gekoppeld. |
properties.standardType |
Standaardtype (momenteel alleen aangepast of standaard of naleving) |
|
type |
string |
Resourcetype |
StandardMetadata
De standaardmetagegevens
Name | Type | Description |
---|---|---|
createdBy |
string |
Standaard gemaakt door object-id (GUID) |
createdOn |
string |
Standaard aanmaakdatum |
lastUpdatedBy |
string |
Standard laatst bijgewerkt op object-id (GUID) |
lastUpdatedOn |
string |
Standaarddatum van laatste update |
StandardSupportedCloud
De cloud waarop de standaard wordt ondersteund.
Name | Type | Description |
---|---|---|
AWS |
string |
|
Azure |
string |
|
GCP |
string |
standardType
Standaardtype (momenteel alleen aangepast of standaard of naleving)
Name | Type | Description |
---|---|---|
Compliance |
string |
|
Custom |
string |
|
Default |
string |