Get default app CSP rules in Dynatrace with the AppEngine Registry API for configuring the standard content security policy.
| GET | SaaS | https://{your-environment-id}.apps.dynatrace.com/registry/v1/app.default.csp.json |
This operation has no parameters. It returns the default CSP rules for apps as JSON. The response is 200 OK.
The request doesn't provide any configurable parameters.
| Code | Type | Description |
|---|---|---|
| 200 | App | OK |
| 4XX | Error | Client side error. |
| 5XX | Error | Server side error. |
AppDefaultCsp objectDefault Content Security Policies for apps.
| Element | Type | Description |
|---|---|---|
| policyDirectives | object | The policy directives |
ErrorEnvelope objectError response for all 4xx and 5xx errors.
| Element | Type | Description |
|---|---|---|
| error | Error | Contains information for 4xx and 5xx errors. |
Error objectContains information for 4xx and 5xx errors.
| Element | Type | Description |
|---|---|---|
| code | integer | The HTTP status code |
| message | string | The error message |
| details | Error | Contains details for 4xx and 5xx errors. |
| help | string | Additional information related to the error |
| retryAfterSeconds | integer | Seconds to wait until the next retry |
ErrorDetails objectContains details for 4xx and 5xx errors.
| Element | Type | Description |
|---|---|---|
| errorRef | string | Generated unique value for 5xx errors. |
| traceId | string | OpenTelemetry trace id of the trace where error occurs. |
| errorCode | string | An optional error code that contains more detailed error information than the HTTP response code alone. Possible error codes:
The element can hold these values
|
| errorCodeProperties | object | Additional properties related to the provided error code |
| constraintViolations | Constraint | A list of constraint violations |
| missingScopes | string[] | The OAuth scopes the authorization token would need to carry for this request. |
| missingPermissions | string[] | The IAM permissions the authorization token would need to be granted for this request. |
ConstraintViolation objectContains information about a constraint violation caused by invalid input.
| Element | Type | Description |
|---|---|---|
| path | string | The path of the property that caused the constraint violation |
| message | string | The error message |
| errorCode | string | An optional error code that contains more detailed error information. Possible error codes:
The element can hold these values
|
| errorCodeProperties | object | Additional properties related to the provided error code. |
{"policyDirectives": {}}
{"error": {"code": 1,"message": "string","details": {"errorRef": "string","traceId": "string","errorCode": "MaxNumberOfInstalledAppsExceeded","errorCodeProperties": {"appLimit": "3"},"constraintViolations": [{"path": "string","message": "string","errorCode": "DependencyVersionIncompatible","errorCodeProperties": {"dependency": "/platform/storage/query/v1","availableVersion": "1.2.0","incompatibleVersion": "1.1.0"}}],"missingScopes": ["string"],"missingPermissions": ["string"]},"help": "string","retryAfterSeconds": 1}}