Restore Data Studio assets

POST /api/meta/entity/bulk#restoreDataStudioAssets

Restore one or more soft-deleted (archived) Google Data Studio assets.

The restoration relies on matches being found for the provided qualifiedNames. If the this does not exactly match (case-sensitive) a soft-deleted Google Data Studio asset's qualifiedName, the request will fail.

Note that the guid is also required to avoid accidentally creating a new Google Data Studio asset. If the qualifiedName does not match an existing Google Data Studio asset, and no guid is supplied in the request, then this endpoint will create a new Google Data Studio asset with the provided details.

Body Required

List of Google Data Studio assets to restore.

  • entities array[object] Required

    Instance of an Google Data Studio asset in Atlan, with its detailed information.

Responses

  • 200 object

    Google Data Studio assets that were successfully restored (undeleted).

    • mutatedEntities object | null

      Google Data Studio assets that were restored.

      • UPDATE array[object]

        Instance of an Google Data Studio asset in Atlan, with its detailed information.

        • typeName string

          Should always be DataStudioAsset.

        • attributes object | null

          Attributes that can exist in Google Data Studio assets in Atlan.

        • classifications array[object] | null

          Instance of a classification in Atlan, with its detailed information.

          • typeName string

            Name of the classification. Note that this is the static-hashed unique name of the classification, not the human-readable displayName.

          • Unique identifier of the entity to which this classification is attached.

          • propagate boolean | null

            Whether to propagate this classification to other entities related to the entity to which the classification is attached.

          • Whether to remove this classification from other entities to which it has been propagated when the classification is removed from this entity.

          • entityStatus string | null

            Status of the entity to which this classification is attached.

            Values are ACTIVE or DELETED.

        • displayText string | null

          Human-readable name of the entity.

        • guid string

          Unique identifier of the entity instance.

        • isIncomplete boolean | null

          Default value is false.

        • createdBy string | null

          Username of the user who created the object.

        • updatedBy string | null

          Username of the user who last updated the object.

        • createTime integer | null

          Time (epoch) at which this object was created, in milliseconds.

        • updateTime integer | null

          Time (epoch) at which this object was last updated, in milliseconds.

        • version integer | null

          Version of this object.

        • classificationNames array[string] | null

          List of classifications for this entity. Note that these are the internal hashed names used in Atlan, not the displayText of the classification.

        • labels array[string] | null

          Internal use only.

        • status string

          Status of the entity, either ACTIVE or DELETED.

          Values are ACTIVE or DELETED.

        • Map of the relationships to this asset.

          • readme object

            Details to use within an asset when referring to a readme.

            • typeName string

              Should always be Readme.

            • guid string | null

              Unique identifier of the related readme. If the uniqueAttributes are not provided, this must be provided.

            • uniqueAttributes object | null

              Attribute(s) that uniquely identify the related readme. If the guid is not provided, these must be provided.

          • meanings array[object] | null

            Details to use within an asset when referring to a term.

            • typeName string

              Should always be AtlasnGlossaryTerm.

            • guid string | null

              Unique identifier of the related term. If the uniqueAttributes are not provided, this must be provided.

            • uniqueAttributes object | null

              Attribute(s) that uniquely identify the related term. If the guid is not provided, these must be provided.

              • Unique name of the related term. Note that in Atlan this unique name is a hashed value, not the name you see in the UI.

    • Map of assigned unique identifiers for any created Google Data Studio assets (should be empty for restored Google Data Studio assets).

  • 404 object

    Google Data Studio asset could not be found by the qualifiedName or guid provided.

    • Unique code for the type of error that occurred.

    • Human-readable description of the error that occurred.

    • GUID that could not be found

POST /api/meta/entity/bulk#restoreDataStudioAssets
curl \
 -X POST https://tenant.atlan.com/api/meta/entity/bulk#restoreDataStudioAssets \
 -H "Authorization: Bearer $ACCESS_TOKEN" \
 -H "Content-Type: application/json" \
 -d '{"entities":[{"typeName":"DataStudioAsset","attributes":{"name":"my-gds-report","connectorName":"datastudio","connectionQualifiedName":"default/datastudio/production","qualifiedName":"default/datastudio/production/X2AlnZN-lHnO32axmM6IPn0TY0b2lXHXe","dataStudioAssetType":"REPORT","sourceURL":"https://datastudio.google.com/u/0/reporting/X2AlnZN-lHnO32axmM6IPn0TY0b2lXHXe/page/iOEF"},"guid":"f00071f4-7eb2-47c1-b638-848fd4dc4339","status":"ACTIVE"}]}'
Request example
{
  "entities": [
    {
      "typeName": "DataStudioAsset",
      "attributes": {
        "name": "my-gds-report",
        "connectorName": "datastudio",
        "connectionQualifiedName": "default/datastudio/production",
        "qualifiedName": "default/datastudio/production/X2AlnZN-lHnO32axmM6IPn0TY0b2lXHXe",
        "dataStudioAssetType": "REPORT",
        "sourceURL": "https://datastudio.google.com/u/0/reporting/X2AlnZN-lHnO32axmM6IPn0TY0b2lXHXe/page/iOEF"
      },
      "guid": "f00071f4-7eb2-47c1-b638-848fd4dc4339",
      "status": "ACTIVE"
    }
  ]
}
Response example (200)
{
  "mutatedEntities": {
    "UPDATE": [
      {
        "typeName": "DataStudioAsset",
        "attributes": {
          "popularityScore": 1.17549435e-38,
          "sourceCreatedAt": 0,
          "viewerUsers": [],
          "viewScore": 1.17549435e-38,
          "lastSyncRunAt": 0,
          "connectionQualifiedName": "default/datastudio/production",
          "adminRoles": [],
          "adminGroups": [],
          "qualifiedName": "default/datastudio/production/X2AlnZN-lHnO32axmM6IPn0TY0b2lXHXe",
          "__hasLineage": false,
          "adminUsers": [],
          "ownerGroups": [],
          "dataStudioAssetType": "REPORT",
          "sourceURL": "https://datastudio.google.com/u/0/reporting/X2AlnZN-lHnO32axmM6IPn0TY0b2lXHXe/page/iOEF",
          "isEditable": true,
          "sourceUpdatedAt": 0,
          "googleProjectNumber": 0,
          "isTrashedDataStudioAsset": false,
          "announcementUpdatedAt": 0,
          "name": "my-gds-report",
          "certificateUpdatedAt": 0,
          "connectorName": "datastudio",
          "isDiscoverable": true,
          "viewerGroups": [],
          "ownerUsers": []
        },
        "guid": "f00071f4-7eb2-47c1-b638-848fd4dc4339",
        "status": "ACTIVE",
        "displayText": "my-gds-report",
        "classificationNames": [],
        "classifications": [],
        "meaningNames": [],
        "meanings": [],
        "isIncomplete": false,
        "labels": [],
        "createdBy": "service-account-apikey-e8d1f0bd-600e-4a8a-9248-b7c9aa1ef8c3",
        "updatedBy": "service-account-apikey-e8d1f0bd-600e-4a8a-9248-b7c9aa1ef8c3",
        "createTime": 1654866232473,
        "updateTime": 1654866232473
      }
    ]
  },
  "guidAssignments": {}
}
Response example (404)
{
  "errorCode": "ATLAS-404-00-00A",
  "errorMessage": "Referenced entity f00071f4-7eb2-47c1-b638-848fd4dc4339 is not found",
  "entityGuid": "f00071f4-7eb2-47c1-b638-848fd4dc4339"
}