# CredentialSchemaPost

## object

### specobjectRequired

The specification of the credential.

Discriminated by `type`. Select one variant:

### Microsoft.Storageobject [AzureCredentialSpecCreate](https://docs.mediakind.com/api-reference/media-api/schemas/azurecredentialspeccreate)

- **credential**object [AzureCredentialCreate](https://docs.mediakind.com/api-reference/media-api/schemas/azurecredentialcreate) **Required**

The credential for the Azure Storage Account

- **sasToken**string **Required**  
    pattern: ^\?(\[a-z\]+=\[^&\]+)(&\[a-z\]+=\[^&\]+)+$  
    SAS Token for Azure Storage Account, including leading ?

- **type**enum or null **Required**  
    The type of the credential.  
    Allowed values: Microsoft.Storage, AWS.S3, Google.Storage

### AWS.S3object [AWSCredentialSpec](https://docs.mediakind.com/api-reference/media-api/schemas/awscredentialspec)

- **credential**object [AWSCredential](https://docs.mediakind.com/api-reference/media-api/schemas/awscredential) **Required**

The credential for the AWS S3 bucket.

- **accessKeyId**string **Required**  
    pattern: ^A\[KS\]IA\[0-9A-Z\]{16}$  
    The access key ID for the bucket.

- **secretAccessKey**string **Required**  
    pattern: ^\[A-Za-z0-9+/=\]{40}$  
    The secret access key for the bucket.

- **type**enum or null **Required**  
    The type of the credential.  
    Allowed values: Microsoft.Storage, AWS.S3, Google.Storage

### Google.Storageobject [GoogleCredentialSpec](https://docs.mediakind.com/api-reference/media-api/schemas/googlecredentialspec)

- **credential**object [GoogleCredential](https://docs.mediakind.com/api-reference/media-api/schemas/googlecredential) **Required**

The credential for the Google Storage bucket.

- **gacmap** from strings to string **Required**  
    Google Application Credentials in JSON format.  
    You can generate this from the command line with `gcloud iam service-accounts keys create key.json --iam-account=<service_account>@<project>.iam.gserviceaccount.com`
    Or download it from the GCP console.

- **type**enum or null **Required**  
    The type of the credential.  
    Allowed values: Microsoft.Storage, AWS.S3, Google.Storage
