{
"data": {
"integrationId": "9b2e4f61-7c3a-4d8e-b015-2a6f8c9d0e47",
"accountId": "123456789012",
"name": "Production",
"roleArn": "arn:aws:iam::123456789012:role/PlerionAccessRole",
"environmentId": "3f6c2a91-8d4b-4e7f-a512-6b9e0c1d2f38",
"instanceProfileArn": "arn:aws:iam::123456789012:instance-profile/PlerionInstanceProfile",
"kmsKeyAccessMode": "ALL_KEYS",
"serviceAccountId": "210987654321",
"serviceAccountAccessRoleArn": "arn:aws:iam::123456789012:role/PlerionServiceAccountAccessRole",
"serviceAccountType": "CUSTOMER_MANAGED",
"status": "active",
"createdAt": "2026-12-01T04:12:33.120Z",
"updatedAt": "2026-12-02T22:40:05.981Z"
}
}{
"errors": [
{
"code": "AccountMismatch",
"message": "roleArn must be a role in account 123456789012. An integration cannot move to another AWS account."
}
]
}{
"errors": [
{
"code": "ActionNotGranted",
"message": "Setting environmentId also needs AssetGroup:Modify, because it changes the environment's asset group."
}
]
}{
"errors": [
{
"code": "NotFound",
"message": "Integration not found"
}
]
}{
"errors": [
{
"code": "IntegrationManagedByCloudFormation",
"message": "Integration 9b2e4f61-7c3a-4d8e-b015-2a6f8c9d0e47 is registered by CloudFormation stack arn:aws:cloudformation:ap-southeast-2:123456789012:stack/plerion-aws-integration/1a2b3c4d. Update that stack to change its role, workload scanning or KMS key access. Only the name and environment can be changed here."
}
]
}{
"errors": [
{
"code": "RoleNotAssumable",
"message": "Plerion could not assume arn:aws:iam::123456789012:role/PlerionAccessRole with this tenant's external id. A new role can take a minute or two before it can be assumed. If this persists, check the role's trust policy."
}
]
}{
"message": "Internal server error"
}Change an AWS integration
Changes the fields you send and leaves the rest as they are. Send null to clear an optional field. A new roleArn must be in the same AWS account, and Plerion assumes it before saving anything. If a CloudFormation stack registered the integration, only name and environmentId can change here; change the rest through the stack.
Requires Integration:Modify. Sending environmentId, including null, also requires AssetGroup:Modify.
{
"data": {
"integrationId": "9b2e4f61-7c3a-4d8e-b015-2a6f8c9d0e47",
"accountId": "123456789012",
"name": "Production",
"roleArn": "arn:aws:iam::123456789012:role/PlerionAccessRole",
"environmentId": "3f6c2a91-8d4b-4e7f-a512-6b9e0c1d2f38",
"instanceProfileArn": "arn:aws:iam::123456789012:instance-profile/PlerionInstanceProfile",
"kmsKeyAccessMode": "ALL_KEYS",
"serviceAccountId": "210987654321",
"serviceAccountAccessRoleArn": "arn:aws:iam::123456789012:role/PlerionServiceAccountAccessRole",
"serviceAccountType": "CUSTOMER_MANAGED",
"status": "active",
"createdAt": "2026-12-01T04:12:33.120Z",
"updatedAt": "2026-12-02T22:40:05.981Z"
}
}{
"errors": [
{
"code": "AccountMismatch",
"message": "roleArn must be a role in account 123456789012. An integration cannot move to another AWS account."
}
]
}{
"errors": [
{
"code": "ActionNotGranted",
"message": "Setting environmentId also needs AssetGroup:Modify, because it changes the environment's asset group."
}
]
}{
"errors": [
{
"code": "NotFound",
"message": "Integration not found"
}
]
}{
"errors": [
{
"code": "IntegrationManagedByCloudFormation",
"message": "Integration 9b2e4f61-7c3a-4d8e-b015-2a6f8c9d0e47 is registered by CloudFormation stack arn:aws:cloudformation:ap-southeast-2:123456789012:stack/plerion-aws-integration/1a2b3c4d. Update that stack to change its role, workload scanning or KMS key access. Only the name and environment can be changed here."
}
]
}{
"errors": [
{
"code": "RoleNotAssumable",
"message": "Plerion could not assume arn:aws:iam::123456789012:role/PlerionAccessRole with this tenant's external id. A new role can take a minute or two before it can be assumed. If this persists, check the role's trust policy."
}
]
}{
"message": "Internal server error"
}Authorizations
Headers
Path Parameters
Body
An instance profile in the integration's account for scanning its workloads. With no service account set, sending one turns workload scanning on, and null turns it off. Cannot be used on a Plerion-managed integration.
^arn:aws:iam::\d{12}:instance-profile/[a-zA-Z0-9_-]{1,128}$"arn:aws:iam::123456789012:instance-profile/PlerionInstanceProfile"
Which KMS keys Plerion may use to decrypt volumes, images and Lambda code when it scans workloads. ALL_KEYS allows every key except those tagged PlerionAccess Denied. SELECTED_KEYS allows only keys tagged PlerionAccess Granted.
ALL_KEYS, SELECTED_KEYS "ALL_KEYS"
Was this page helpful?