組織 セッション API¶
概要¶
プロジェクトの API Key を利用してセッション情報を取得できます。
セッション情報は直近 30 日間分が取得できます。
現在の合計同時接続数¶
現在の同時接続数を取得します。
$ https -A bearer -a <API-KEY> \
POST api.sora-cloud.shiguredo.app/orgs/get-total-live-concurrent-connections \
-vvv
POST /orgs/get-total-live-concurrent-connections HTTP/1.1
Accept: application/json, */*;q=0.5
Accept-Encoding: gzip, deflate
Authorization: Bearer <API-KEY>
Connection: keep-alive
Content-Length: 0
Host: api.sora-cloud.shiguredo.app
User-Agent: HTTPie/3.2.0
HTTP/1.1 200 OK
Connection: keep-alive
Content-Encoding: gzip
Content-Length: 2
Content-Type: application/json; charset=UTF-8
Date: Thu, 21 Dec 2023 09:35:10 GMT
Strict-Transport-Security: max-age=15552000; includeSubDomains; preload
Vary: Accept-Encoding
alt-svc: h3=":443"; ma=86400
5
現在の合計セッション数¶
現在のセッション数を取得します。
$ https -A bearer -a <API-KEY> \
POST api.sora-cloud.shiguredo.app/orgs/get-total-live-sessions \
-vvv
POST /orgs/get-total-live-sessions HTTP/1.1
Accept: application/json, */*;q=0.5
Accept-Encoding: gzip, deflate
Authorization: Bearer <API-KEY>
Connection: keep-alive
Content-Length: 0
Host: api.sora-cloud.shiguredo.app
User-Agent: HTTPie/3.2.0
HTTP/1.1 200 OK
Connection: keep-alive
Content-Encoding: gzip
Content-Length: 2
Content-Type: application/json; charset=UTF-8
Date: Thu, 21 Dec 2023 09:35:10 GMT
Strict-Transport-Security: max-age=15552000; includeSubDomains; preload
Vary: Accept-Encoding
alt-svc: h3=":443"; ma=86400
2
現在のセッション一覧¶
現在のセッション一覧を取得します。
$ https -A bearer -a <API-KEY> \
POST api.sora-cloud.shiguredo.app/orgs/list-live-sessions \
-vvv
POST /orgs/list-live-sessions HTTP/1.1
Accept: application/json, */*;q=0.5
Accept-Encoding: gzip, deflate
Authorization: Bearer <API-KEY>
Connection: keep-alive
Content-Length: 0
Host: api.sora-cloud.shiguredo.app
User-Agent: HTTPie/3.2.0
HTTP/1.1 200 OK
Connection: keep-alive
Content-Encoding: gzip
Content-Length: 255
Content-Type: application/json; charset=UTF-8
Date: Thu, 21 Dec 2023 09:35:10 GMT
Strict-Transport-Security: max-age=15552000; includeSubDomains; preload
Vary: Accept-Encoding
alt-svc: h3=":443"; ma=86400
[
{
"node_name": "sora1@sora-cloud1",
"channel_id": "channel-1@A5J467N5AWTQHFSA2VIKVNGDB2VK2DCO9",
"session_id": "DM2ASQDRF90H9DPS5S5ABKWTKM",
"channel_connections": 1,
"start_timestamp": "2023-12-21T10:13:21.732601Z",
"last_active_timestamp": "2023-12-21T10:13:21.941259Z"
},
{
"node_name": "sora2@sora-cloud2",
"channel_id": "channel-2@A5J467N5AWTQHFSA2VIKVNGDB2VK2DCO9",
"session_id": "ZM2ASQDRF90H9DPS5S5ABKWTKM",
"channel_connections": 1,
"start_timestamp": "2023-12-21T10:13:21.732601Z",
"last_active_timestamp": "2023-12-21T10:13:21.941259Z"
}
...
]