Validate Third Party Storage Setup
POSThttps://api.millicast.com/api/v3/account/media/storage/validate
Validates third party storage is configured with permissions for Dolby.io to upload media assets.
To track the validation result, keep note of the the id
returned in the response body. If correctly configured, when calling Read Media Asset, the response should return a successful entry with id
matching the id
.
Run once to validate write permissions. If successful, optionally run a second time to confirm that overwriting is allowed.
Note that validation results are only available for 1 hour.
Request
- application/json
Bodyrequired
profileIdstringnullable
Optional. Provide the id of a storage profile. Mutually exclusive with Type.
type objectnullable
options objectnullable
Responses
- 200
- default
Success
- application/json
- Schema
- Example (auto)
Schema
statusstringrequired
Possible values: non-empty
Default value:
success
data objectrequired
{
"status": "success",
"data": {
"id": "string",
"storage": {
"type": "gcs",
"path": "string"
}
}
}
Server Error
- application/json
- Schema
- Example (auto)
- general
Schema
statusstringrequired
Possible values: non-empty
Default value:
error
messagestringrequired
Possible values: non-empty
codeint32nullable
datanullable
{
"status": "error",
"message": "string",
"code": 0
}
general
{
"status": "error",
"message": "simple error reason",
"code": 500,
"data": {
"additional": "other data here (not actual key)"
}
}
Authorization: http
name: API_Secrettype: httpdescription: ### Usage #### Acquire secret from dashboard. * Login to the streaming dashboard * On the left menu, click on Settings * Navigate to the Security tab's sub section API Secrets 1. "+ Create" to generate a new named API Secret if needed 2. Click on the copy button or the reveal button to access a previously created API Secret scheme: bearer
- csharp
- curl
- dart
- go
- http
- java
- javascript
- kotlin
- c
- nodejs
- objective-c
- ocaml
- php
- powershell
- python
- r
- ruby
- rust
- shell
- swift
- HTTPCLIENT
- RESTSHARP
var client = new HttpClient();
var request = new HttpRequestMessage(HttpMethod.Post, "https://api.millicast.com/api/v3/account/media/storage/validate");
request.Headers.Add("Accept", "application/json");
request.Headers.Add("Authorization", "Bearer <token>");
var content = new StringContent("{\n \"profileId\": \"string\",\n \"type\": \"gcs\",\n \"options\": {\n \"objectPrefix\": \"string\",\n \"bucketName\": \"string\",\n \"bucketRegion\": \"string\"\n }\n}", null, "application/json");
request.Content = content;
var response = await client.SendAsync(request);
response.EnsureSuccessStatusCode();
Console.WriteLine(await response.Content.ReadAsStringAsync());