PATCH
/
v1
/
tenant
/
asset-groups
/
{assetGroupId}
Update specific asset group in a tenant
curl --request PATCH \
  --url https://{region}.api.plerion.com/v1/tenant/asset-groups/{assetGroupId} \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "name": "string",
  "rules": [
    [
      {
        "type": "integration",
        "value": [
          "8f3be88c-0f3d-4ec0-a4ab-2699c993fbff"
        ]
      },
      {
        "type": "AWSResourceGroup",
        "value": [
          "f4e967fd-1475-4d11-901c-89e1df5e5784"
        ]
      },
      {
        "type": "region",
        "value": [
          "ap-south-1",
          "us-east-1"
        ]
      },
      {
        "type": "resourceType",
        "value": [
          "AWS::Lambda::Function",
          "AWS::S3::Bucket"
        ]
      },
      {
        "type": "tag",
        "key": "stage",
        "operator": "equals",
        "value": "dev"
      },
      {
        "type": "tag",
        "key": "stage",
        "operator": "contains",
        "value": "qa"
      },
      {
        "type": "resourceName",
        "value": "foundation",
        "operator": "endsWith"
      },
      {
        "type": "resourceName",
        "value": "dev",
        "operator": "startsWith"
      }
    ]
  ]
}'
This response does not have an example.

Authorizations

Authorization
string
header
required

Bearer API Key. For example, "Bearer {Tenant API Key}"

Headers

Authorization
string
required

Bearer API Key. For example, "Bearer {Tenant API Key}"

Content-Type
string

application/json

Path Parameters

assetGroupId
string
required

Body

application/json

Response

200

Success