Compliance Audit

Compliance Audit

Compliance audit of resource

Request
URI
POST
https://{api_host}/v1/domains/{id}/compliance-audits
COPY
Path Parameters
string
id
Required

ID of the domain


Request Body
ComplianceAuditSpec of type(s) application/json
Required

Show optional properties

{
    "standardType": "One among: PCI",
    "standardVersion": "string",
    "complianceResourcesConfigurationSpec": [
        {
            "resources": [
                {
                    "resourceType": "One among: SDDC_MANAGER"
                }
            ]
        }
    ]
}
{
    "standardType": "One among: PCI",
    "standardVersion": "string",
    "complianceResourcesConfigurationSpec": [
        {
            "configurationId": "string",
            "resources": [
                {
                    "resourceType": "One among: SDDC_MANAGER",
                    "resourceName": "string"
                }
            ]
        }
    ]
}
string
standardType
Required

Compliance standard type

string
standardVersion
Required

Compliance standard version

array of object
complianceResourcesConfigurationSpec
Required

Compliance resource and configuration spec

Responses
202

Accepted

Returns ComplianceTask of type(s) application/json
"ComplianceTask Object"
string
id
Optional

Compliance task id

string
status
Optional

Compliance task status

string
complianceAuditId
Optional

Compliance audit id


400

Bad Request

Returns Error of type(s) application/json
"Error Object"
string
errorCode
Optional

The minor error code

string
errorType
Optional

The error type

array of string
arguments
Optional

The arguments used to localize the message, Can be used by scripts to automate the error processing.

object
context
Optional

The error context (e.g. the component where it occurred).

string
message
Optional

The localized error message

string
remediationMessage
Optional

The localized remediation error message

array of object
causes
Optional

The underlying cause exceptions.

array of Error
nestedErrors
Optional

The nested errors when the error is a composite one

string
referenceToken
Optional

A reference token correlating the error with the relevant detailed error logs. Should be sent to the service provider when reporting issues.


404

Not Found

Returns Error of type(s) application/json
"Error Object"
string
errorCode
Optional

The minor error code

string
errorType
Optional

The error type

array of string
arguments
Optional

The arguments used to localize the message, Can be used by scripts to automate the error processing.

object
context
Optional

The error context (e.g. the component where it occurred).

string
message
Optional

The localized error message

string
remediationMessage
Optional

The localized remediation error message

array of object
causes
Optional

The underlying cause exceptions.

array of Error
nestedErrors
Optional

The nested errors when the error is a composite one

string
referenceToken
Optional

A reference token correlating the error with the relevant detailed error logs. Should be sent to the service provider when reporting issues.


500

InternalServerError

Returns Error of type(s) application/json
"Error Object"
string
errorCode
Optional

The minor error code

string
errorType
Optional

The error type

array of string
arguments
Optional

The arguments used to localize the message, Can be used by scripts to automate the error processing.

object
context
Optional

The error context (e.g. the component where it occurred).

string
message
Optional

The localized error message

string
remediationMessage
Optional

The localized remediation error message

array of object
causes
Optional

The underlying cause exceptions.

array of Error
nestedErrors
Optional

The nested errors when the error is a composite one

string
referenceToken
Optional

A reference token correlating the error with the relevant detailed error logs. Should be sent to the service provider when reporting issues.


Code Samples
COPY
                    curl -X POST -H 'Authorization: <value>' -H 'Content-Type: application/json' -d '{"complianceResourcesConfigurationSpec":["object"],"standardType:"string","standardVersion:"string"}' https://{api_host}/v1/domains/{id}/compliance-audits