共用方式為


GetAuditStorageDetails Action

Retrieves Audit log storage details which provides an overview of which Dataverse tables consume how much log space.

Return type

Type Nullable Description
GetAuditStorageDetailsResponse False Contains the response of the GetAuditStorageDetails action.

Remarks

The following example shows what you can expect when using the GetAuditStorageDetails action. Send the request like this:

Request

POST [Organization Uri]/api/data/v9.2/GetAuditStorageDetails
Accept: application/json
Content-Type: application/json; charset=utf-8
OData-MaxVersion: 4.0
OData-Version: 4.0

When the operation is still pending, you can expect a response like this:

Response

HTTP/1.1 200 OK
Content-Type: application/json; odata.metadata=minimal
OData-Version: 4.0

{
    "@odata.context":  [Organization Uri]/api/data/v9.1/$metadata#Microsoft.Dynamics.CRM.GetAuditStorageDetailsResponse,
    "Result": {
        "Status": "Pending",
        "AuditStorageDetails": null
 }
}

When the response is completed, you can expect a response like this:

Response

HTTP/1.1 200 OK
Content-Type: application/json; odata.metadata=minimal
OData-Version: 4.0

{
    "@odata.context":  [Organization Uri]/api/data/v9.1/$metadata#Microsoft.Dynamics.CRM.GetAuditStorageDetailsResponse,
    "Result": {
        "Status": "Completed",
        "AuditStorageDetails": {
            "Count": 3,
            "Keys": [
                "organization",
                "deletedentity_10928",
                "new_entity_02272411082222785"
            ],
            "Values": [
                {
                    "SizeInBytes": 3835,
                    "ObjectTypeCode": 1019
                },
                {
                    "SizeInBytes": 3113,
                    "ObjectTypeCode": 10928
                },
                {
                    "SizeInBytes": 2012,
                    "ObjectTypeCode": 10990
                }
            ]
        }
    }
}

See also