# StorageListSchema_v1

## Object

- **@odata.nextLink**: string (Optional) - URL if the page length and number of items match.

### Supplemental
- **count**: integer (Required) - Number of items returned.
- **kind**: string (Required) - Type of items in the list.
- **operation**: string (Required) - Operation type. Should always say 'list'.
- **pagination**: object [PaginationInfoSchema](https://docs.mediakind.com/api-reference/media-api/schemas/paginationinfoschema) (Required) - Pagination info.
  - **end**: integer (Required) - Position of the last item in the list.
  - **records**: integer (Required) - Total number of items returned in the list.
  - **start**: integer (Required) - Position of the first item in the list.
  - **total**: integer (Required) - Total number of items in the project.

### Subscription (Optional)
- **id**: string (Required) - Project ID.
- **name**: string (Required) - Project name.

### Value (Required)
- **list of objects** [StorageSchemaGet](https://docs.mediakind.com/api-reference/media-api/schemas/storageschemaget) - List of storage instances.
  - **kind**: string (Optional) - The kind of record.
  - **metadata**: object [BlobStorageMetadataSchema](https://docs.mediakind.com/api-reference/media-api/schemas/blobstoragemetadataschema) (Required) - Metadata about the storage instance.
    - **created**: string (Optional) - The time when the resource was created.
    - **createdBy**: string (Optional) - ID of the user who created the resource.
    - **createdByEmail**: string (Optional) - Email of the user who created the resource.
    - **id**: string (Required) - The ID of the resource.
    - **name**: string (Optional) - The name of the resource.
    - **updated**: string (Optional) - The time when the resource was last updated.
    - **updatedBy**: string (Optional) - ID of the user who last updated the resource.
    - **updatedByEmail**: string (Optional) - Email of the user who last updated the resource.
    - **spec**: object (Required) - The specification of the storage instance.
      - **Microsoft.Storage**: object [AzureStorageSpecRead](https://docs.mediakind.com/api-reference/media-api/schemas/azurestoragespecread)
        - **credential**: object [AzureCredentialRead](https://docs.mediakind.com/api-reference/media-api/schemas/azurecredentialread) (Optional) - The credential for the Azure Storage Account.
          - **sasToken**: string (Required) - SAS Token for Azure Storage Account, including leading ?.
          - **signedExpiry**: string (Required) - The expiry time of the token.
          - **signedStart**: string (Required or null) - The start time of the token.
          - **description**: string (Required or null) - Description of the storage.
          - **privateLinkServiceConnection**: object or null [PrivateLinkServiceConnectionNullable](https://docs.mediakind.com/api-reference/media-api/schemas/privatelinkserviceconnectionnullable) (Optional) - Optional settings for a Private Link.
            - **requestMessage**: string (Required) - A message passed to the owner of the remote resource.
            - **resourceGroupName**: string (Required) - The name of the resource group containing the storage account.
            - **storageAccountName**: string (Required) - The name of the storage account.
            - **subscriptionId**: string (Required) - The ID of the Azure subscription containing the storage account.
            - **region**: string (Required or null) - Storage region.
            - **type**: enum (Required) - The type of storage.
            - **url**: string (Required) - URL for access to the storage.
      - **AWS.S3**: object [AWSStorageSpecRead](https://docs.mediakind.com/api-reference/media-api/schemas/awsstoragespecread)
        - **bucketName**: string (Required) - The name of the AWS S3 bucket.
        - **credential**: object [AWSCredential](https://docs.mediakind.com/api-reference/media-api/schemas/awscredential) (Optional) - The credential for the AWS S3 bucket.
          - **accessKeyId**: string (Required) - The access key ID for the bucket.
          - **secretAccessKey**: string (Required) - The secret access key for the bucket.
        - **description**: string (Required or null) - Description of the storage.
        - **region**: string (Required or null) - Storage region.
        - **type**: enum (Required) - The type of storage.
        - **url**: string (Required) - The URL of the S3 bucket.
      - **Google.Storage**: object [GoogleStorageSpecRead](https://docs.mediakind.com/api-reference/media-api/schemas/googlestoragespecread)
        - **bucketName**: string (Required) - The name of the Google Storage bucket.
        - **credential**: object [GoogleCredential](https://docs.mediakind.com/api-reference/media-api/schemas/googlecredential) (Optional) - The credential for the Google Storage bucket.
          - **gac**: map from strings to string (Required) - Google Application Credentials in JSON format.
        - **description**: string (Required or null) - Description of the storage.
        - **region**: string (Required or null) - Storage region.
        - **type**: enum (Required) - The type of storage.

### Status (Optional)
- **activeCredentialId**: string (Required or null) - The ID of the active credential for this storage.
- **privateLinkServiceConnectionStatus**: enum (Optional) - The state of the Azure Private Connection, if enabled.
