Adds an AWS account to the allowlist of AWS PrivateLink.
The request consumes and produces an application/json payload.
| PUT | ManagedDynatrace for Government | https://{your-domain}/e/{your-environment-id}/api/config/v1/aws/privateLink/allowlistedAccounts/{id} |
| Environment ActiveGate | https://{your-activegate-domain}/e/{your-environment-id}/api/config/v1/aws/privateLink/allowlistedAccounts/{id} |
To execute this request, you need an access token with WriteConfig scope.
To learn how to obtain and use it, see Tokens and authentication.
| Parameter | Type | Description | In | Required |
|---|---|---|---|---|
| id | string | The AWS account id to be updated in the AWS PrivateLink allowlist, has to match the id in the provided payload. | path | Required |
| body | Allowlisted | The AWS account id to be updated in the AWS PrivateLink allowlist, has to match the id in the path. | body | Required |
AllowlistedAwsAccount object| Element | Type | Description | Required |
|---|---|---|---|
| id | string | The AWS account id to allowlist | Required |
This is a model of the request body, showing the possible elements. It has to be adjusted for usage in an actual request.
{"id": "string"}
| Code | Type | Description |
|---|---|---|
| 201 | Allowlisted | Success. The account id has been added to the PrivateLink allowlist. |
| 204 | - | Success. The account id already exists in the PrivateLink allowlist. |
| 400 | Error | Error. Wrong format of the provided AWS account id (length = 12 characters, only digits). |
AllowlistedAwsAccount object| Element | Type | Description |
|---|---|---|
| id | string | The AWS account id to allowlist |
ErrorEnvelope object| Element | Type | Description |
|---|---|---|
| error | Error | - |
Error object| Element | Type | Description |
|---|---|---|
| code | integer | The HTTP status code |
| constraintViolations | Constraint | A list of constraint violations |
| message | string | The error message |
ConstraintViolation objectA list of constraint violations
| Element | Type | Description |
|---|---|---|
| location | string | - |
| message | string | - |
| parameterLocation | string | -The element can hold these values
|
| path | string | - |
{"id": "string"}
{"error": {"code": 1,"constraintViolations": [{"location": "string","message": "string","parameterLocation": "HEADER","path": "string"}],"message": "string"}}