Disable Links Older...

Disable links that are older than a given period of time.

This Flow looks for all public links that were not updated since a given period of time, and delete them. It can be useful to make sure some public links are not left out in the wild.

How It Works

Worth noting here is the usage of the workspace "Scope": - "ADMIN" Scope: normal workspaces created via the Cells Administration Console - "ROOM" Scope: Cells created by users to share data internally - "LINK" Scope: hidden workspaces exposed via public links

Parameters

Name Type Default Mandatory Description
LastUpdated text >30d true Find links created within a range date. Use for example >30d for links older than 30 days.

Trigger Type

Manual

JSON Representation

{
  "Label": "Disable Links Older...",
  "Owner": "pydio.system.user",
  "Metadata": {
    "Description": "Disable links that are older than a given period of time",
    "Icon": "mdi mdi-share-variant",
    "TplCategory": "maintenance",
    "Usage": "This Flow looks for all public links that were not updated since a given period of time, and delete them. It can be useful to make sure some public links are not left out in the wild.\n\n### How It Works\n\nWorth noting here is the usage of the workspace \"Scope\": \n - \"ADMIN\" Scope: normal workspaces created via the Cells Administration Console\n - \"ROOM\" Scope: Cells created by users to share data internally\n - \"LINK\" Scope: hidden workspaces exposed via public links"
  },
  "Custom": true,
  "Actions": [
    {
      "ID": "actions.scheduler.log-input",
      "Label": "Select Links",
      "IdmSelector": {
        "Type": 2,
        "All": true,
        "Query": {
          "SubQueries": [
            {
              "type_url": "type.googleapis.com/idm.WorkspaceSingleQuery",
              "value": "KAM="
            },
            {
              "type_url": "type.googleapis.com/idm.WorkspaceSingleQuery",
              "value": "Oh57ey5Kb2JQYXJhbWV0ZXJzLkxhc3RVcGRhdGVkfX0="
            }
          ],
          "Operation": 1
        },
        "Collect": true,
        "Label": "Find Links"
      },
      "Parameters": {
        "fieldname/@value": "FileName",
        "internalLogger": "false",
        "taskLogger": "true"
      },
      "ChainedActions": [
        {
          "ID": "actions.idm.delete",
          "Label": "Delete",
          "Bypass": true,
          "Parameters": {
            "fieldname": "{\"@value\":\"LastUpdated\"}",
            "objectTypes": "Workspace"
          }
        }
      ]
    }
  ],
  "Parameters": [
    {
      "Name": "LastUpdated",
      "Description": "Find links created within a range date. Use for example \u003e30d for links older than 30 days.",
      "Value": "\u003e30d",
      "Mandatory": true,
      "Type": "text"
    }
  ]
}
Back to top