Read Account Distribution Settings
GEThttps://api.millicast.com/api/v3/account/distribution
Gets account wide distribution settings. Whenever publish tokens are created, these will be the default settings used for features that impact how streams are distributed.
- geoCascade: controls if and which geographic clusters are included for regional content delivery
Responses
- 200
- 400
- default
Success
- application/json
- Schema
- Example (auto)
- success
Schema
statusstringrequired
Possible values: non-empty
Default value:
success
data objectrequired
{
"status": "success",
"data": {
"geoCascade": {
"isEnabled": true,
"clusters": [
"string"
]
}
}
}
success
{
"status": "success",
"data": {
"geoCascade": {
"isEnabled": true,
"clusters": [
"phx-1",
"ams-1"
]
}
}
}
Bad Request
- application/json
- Schema
- Example (auto)
Schema
statusstringrequired
Possible values: non-empty
Default value:
fail
datarequired
{
"status": "fail",
"data": {}
}
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.Get, "https://api.millicast.com/api/v3/account/distribution");
request.Headers.Add("Accept", "application/json");
request.Headers.Add("Authorization", "Bearer <token>");
var response = await client.SendAsync(request);
response.EnsureSuccessStatusCode();
Console.WriteLine(await response.Content.ReadAsStringAsync());