List all hosted assets

GET /groups/{groupId}/apps/{appId}/hosting/assets

Path parameters

Responses

  • 200 application/json

    Successfully listed hosted files.

    Hide response attributes Show response attributes object
    • appId string

      The unique App ID of the Atlas App Services App that is hosting the file.

    • last_modified integer

      The time at which the hosted asset was last modified in Unix time (number of seconds since January 1, 1970 at 00:00 UTC).

    • url string

      The full URL of the hosted asset.

    • path string

      The resource path of the hosted asset

    • size integer

      The size of the hosted asset in bytes

    • attrs array[object]

      An array of documents that each describe a metadata attribute that applies to the asset.

      Hide attrs attributes Show attrs attributes object
    • hash string

      The MD5 checksum hash for the hosted asset

GET /groups/{groupId}/apps/{appId}/hosting/assets
curl \
 --request GET 'https://services.cloud.mongodb.com/api/admin/v3.0/groups/{groupId}/apps/{appId}/hosting/assets' \
 --header "Authorization: Bearer $ACCESS_TOKEN"
Response examples (200)
[
  {
    "appId": "string",
    "last_modified": 42,
    "url": "string",
    "path": "string",
    "size": 42,
    "attrs": [
      {
        "name": "string",
        "value": "string"
      }
    ],
    "hash": "string"
  }
]