Download OpenAPI specification:Download
ベースURLは以下のとおりです。APIエンドポイントはこのベースURLから始まります。
https://<host>/api
エンドポイント例:
https://example.intdash.jp/api/v1/measurements
https://example.intdash.jp/api/media/videos
サーバーからクライアントに返却されるHTTPレスポンスのステータスコードは以下のとおりです。
| コード | 説明 |
|---|---|
| 101 Switching Protocols | サーバーはプロトコルを切り替えます。 |
| 200 OK | リクエストは成功しました。 |
| 201 Created | 新しいリソースが作成されました。 |
| 204 No Content | リクエストは成功しました。返却するコンテンツはありません。 |
| 400 Bad Request | 構文が正しくないなどの理由により、リクエストは処理できませんでした。 |
| 401 Unauthorized | リクエストには認証が必要です。 |
| 403 Forbidden | アクセス権がないなどの理由により、リクエストは拒否されました。 |
| 404 Not Found | APIまたはリソースが見つかりません。 |
| 405 Method Not Allowed | 指定されたメソッドは許可されていません。 |
| 409 Conflict | 既存のリソースとのコンフリクトのため、リクエストは失敗しました。 |
| 500 Internal Server Error | サーバーで予期しないエラーが発生したため、リクエストは失敗しました。 |
リクエストボディのJSONでは、キーの大文字と小文字は区別されません。 従って、以下の2つのリクエストは同じものと見なされます。
{
"username" : "username",
"password" : "password"
}
{
"Username" : "username",
"Password" : "password"
}
アクセス制御可能かどうかを判定します。
リクエストのスコープのみでアクセス判定を行います。
パスの構造から指定したリソースがプロジェクトやグループのリソースかどうか分類し、分類した結果によって処理が決まります。
サブジェクトがプロジェクトに所属しているかを確認し、所属している場合は、サブジェクトがメンバーの場合そのプロジェクトにおけるスコープからアクセス判定を行います。 サブジェクトがエッジの場合はリクエストのスコープからアクセス判定を行います。
サブジェクトがグループに所属しているかを確認し、所属している場合は、そのグループにおけるスコープからアクセス判定を行います。
リクエストのスコープからアクセス判定を行います。
| subject | string 認証主体を指定します。通常アクセスユーザーのUUIDかアクセスエッジのUUIDを指定します。 |
| scopes required | Array of strings スコープを指定します。前述の説明を参照ください。 |
| path required | string パス |
| method required | string Enum: "GET" "POST" "PUT" "PATCH" "DELETE" メソッド |
{- "subject": "eb0398f0-3631-470a-abed-0ac3763cf90d",
- "scopes": [
- "scope1"
], - "path": "/resource/path",
- "method": "POST"
}{- "result": true
}認証ユーザー自身が指定されたパスとメソッドに対してアクセス可能かどうかを判定します。
| path required | string パス |
| method required | string Enum: "GET" "POST" "PUT" "PATCH" "DELETE" メソッド |
{- "path": "/resource/path",
- "method": "POST"
}{- "result": true
}ロールのリストを取得します。
| uuid | Array of strings Example: uuid=6b4f4bce-ba32-4ad9-b808-39e2d68b33ee ロールのUUID |
| name | Array of strings Example: name=member ロールの名前による部分一致検索。文字列をダブルクォーテーションで囲むと、完全一致のものだけを取得します。 |
| page | integer >= 1 Default: 1 取得するページの番号 |
| per_page | integer <= 200 Default: 30 1回のリクエストで取得する件数 |
{- "items": [ ],
- "page": {
- "next": false,
- "prev": false,
- "total_page": 1,
- "total_count": 1
}
}ロールを取得します。
| role_uuid required | string Example: 6b4f4bce-ba32-4ad9-b808-39e2d68b33ee ロールのUUID |
{- "uuid": "6b4f4bce-ba32-4ad9-b808-39e2d68b33ee",
- "name": "member",
- "scopes": [
- {
- "uuid": "4688a07a-0cbc-4597-8c87-538e744bc90d",
- "name": "meas:r",
- "allowed_endpoints": [
- {
- "path": "/resources",
- "method": "GET"
}
], - "allowed_iscp_messages": [
- {
- "type": "eos"
}
], - "denied_endpoints": [
- {
- "path": "/denied_resources",
- "method": "GET"
}
], - "created_at": "2000-01-01T00:00:00Z",
- "updated_at": "2000-01-01T00:00:00Z"
}
], - "created_at": "2000-01-01T00:00:00Z",
- "updated_at": "2000-01-01T00:00:00Z"
}スコープのリストを取得します。
| uuid | Array of strings Example: uuid=4688a07a-0cbc-4597-8c87-538e744bc90d スコープのUUID |
| name | Array of strings Example: name=meas:r スコープの名前による部分一致検索。文字列をダブルクォーテーションで囲むと、完全一致のものだけを取得します。 |
| page | integer >= 1 Default: 1 取得するページの番号 |
| per_page | integer <= 200 Default: 30 1回のリクエストで取得する件数 |
{- "items": [ ],
- "page": {
- "next": false,
- "prev": false,
- "total_page": 1,
- "total_count": 1
}
}スコープを取得します。
| scope_uuid required | string Example: 4688a07a-0cbc-4597-8c87-538e744bc90d The Scope UUID. |
{- "uuid": "4688a07a-0cbc-4597-8c87-538e744bc90d",
- "name": "meas:r",
- "allowed_endpoints": [
- {
- "path": "/resources",
- "method": "GET"
}
], - "allowed_iscp_messages": [
- {
- "type": "eos"
}
], - "denied_endpoints": [
- {
- "path": "/denied_resources",
- "method": "GET"
}
], - "created_at": "2000-01-01T00:00:00Z",
- "updated_at": "2000-01-01T00:00:00Z"
}OAuth2認可エンドポイント。 RFC6749:The OAuth 2.0 Authorization Framework
| client_id required | string Example: client_id=client_id OAuth2クライアントID |
| response_type required | string Value: "code" Example: response_type=code OAuth2のresponse_type。 |
| redirect_uri required | string Example: redirect_uri=http://localhost:8080/ 認可後のリダイレクト先URI |
| state required | string Example: state=05d54c58385046dd822d233c6adfb9e9 CSRF対策のためのstate |
| code_challenge | string Example: code_challenge=ZtNPunH49FD35FWYhT5Tv8I7vRKQJ8uxMaL0_9eHjNA PKCEコードチャレンジ。 |
| code_challenge_method | string Value: "S256" Example: code_challenge_method=S256 PKCEコードチャレンジの方式。 |
トークンを無効化します。 このエンドポイントをコールしてからトークンが無効化されるまで、通常数秒程度かかります。 RFC7009:OAuth 2.0 Token Revocation
| client_id required | string OAuth2クライアントID |
| token_type_hint | any Default: "refresh_token" Enum: "access_token" "refresh_token" OAuth2トークンタイプについてのヒント |
| token | string 無効化したいリフレッシュトークンまたはアクセストークン。
指定を省略した場合、サーバーは、cookieの |
client_id=99dcf67c_default.aptpod.co.jp&token=DummyRefreshToken00000000000000000000000000.DummyRefreshToken00000000000000000000000000&token_type_hint=refresh_token
JSON Web Keysのリストを取得します。 RFC7517:JSON Web Key
{- "keys": [
- {
- "use": "sig",
- "kty": "RSA",
- "kid": "6b8b47b2ea9d29b3efdfa1b3d3bf1b3cc88df7c8bb202c8b0f744dde2efe936e",
- "alg": "RS256",
- "n": "puyrqHYId3dIDZfDyEAY_Z8NoS86ohYWx0YcOPgfELGsu4NMX8yJhIG4f-wAXxnhFTdOI4nXjbBLmTfxliwTfkH94utcWiCCTLELa9RyZlL19SyFDfVf606xVaOGsESWwPTAid1_QigGt8Qx9ebtVsb5NfXWOeEofRWR29u6H6k",
- "e": "AQAB"
}, - {
- "use": "sig",
- "kty": "EC",
- "kid": "9e02473a20ef0c9a22049132686ee8d6e331af1a3dcf4c0c80dc4978ba66bd75",
- "crv": "P-384",
- "alg": "ES384",
- "x": "SG_q0mYlLQ8PM56M8gfQX2D2XWbB6ALM0eX67OArp5FdlJ1B6IADP7cidWVag6AU",
- "y": "fnmtLHn8UQl-fY8i9ri15A2CxQ_eCArZD_H8h2vtPi6v6bnDK2Kn0GnohnHn_12n"
}
]
}OAuth2のアクセストークンを取得します。 RFC6749:The OAuth 2.0 Authorization Framework
| grant_type | any Enum: "password" "authorization_code" "refresh_token" "client_credentials" グラントタイプ |
| refresh_token | string 認可時に発行されたリフレッシュトークン。grant_typeが |
| tenant | string Default: "00000000-0000-0000-0000-000000000000" テナントのUUIDまたはエイリアス。grant_typeが |
| tenant_uuid | string Deprecated Default: "00000000-0000-0000-0000-000000000000" (非推奨:代わりに |
| username | string ユーザーの名前。grant_typeが |
| password | string パスワード。grant_typeが |
| client_id | string OAuth2クライアントのID |
| client_secret | string OAuth2のクライアントシークレット。 OAuth2クライアントの |
| client_certification | string OAuth2のクライアント証明書。 OAuth2クライアントの |
| redirect_uri | string 認可後のリダイレクト先URI。 grant_typeが |
| code_verifier | string PKCE code verifier.
|
| code | string 認可コード |
grant_type=password&username=username%40example.com&password=password&client_id=99dcf67c_default.aptpod.co.jp
{- "token_type": "bearer",
- "access_token": "eyJhbGciOiJSUzI1NiIsImtpZCI6IkR1bW15IiwidHlwIjoiSldUIn0.eyJleHAiOjAsImlhdCI6MCwiaXNzIjoiRHVtbXkifQ.DummyAccessTokenSignature0000000000000000000000000000000000000000000000000000000000000000000000000000",
- "expires_in": 3600,
- "refresh_token": "DummyRefreshToken00000000000000000000000000.DummyRefreshToken00000000000000000000000000",
- "refresh_token_expires_in": 2592000,
- "scope": ""
}User情報を取得します。 RFC6749:The OAuth 2.0 Authorization Framework
| Authorization required | string Example: Bearer eyJhbGciOiJSUzI1NiIsImtpZCI6IkR1bW15IiwidHlwIjoiSldUIn0.eyJleHAiOjAsImlhdCI6MCwiaXNzIjoiRHVtbXkifQ.DummyAccessTokenSignature0000000000000000000000000000000000000000000000000000000000000000000000000000 OAuth2Token を指定します。 |
{- "sub": "54e7df96-3e6e-4bc5-bc7b-c60c00ee17bf"
}OAuth2クライアントのリストを取得します。
| id | Array of strings Example: id=039b8ee2-8edc-46e4-9a88-4d03bac142f7 OAuth2クライアントID |
| name | Array of strings Example: name=client_name 名前による部分一致検索 |
| sort | string Default: "name+" 並べ替えに使用するキー。接尾辞
|
| page | integer >= 1 Default: 1 取得するページの番号 |
| per_page | integer <= 200 Default: 30 1回のリクエストで取得する件数 |
{- "items": [
- {
- "client_id": "4b54d475-0607-441e-b252-944a97337a9e",
- "name": "My Client",
- "secrets": [
- {
- "id": 1,
- "name": "My Secret",
- "secret": "secret",
- "last_used_at": "2000-01-01T00:00:00Z",
- "created_at": "2000-01-01T00:00:00Z"
}
], - "grant_types": [
- "authorization_code"
], - "token_endpoint_auth_method": "none",
- "response_types": [
- "code"
], - "scopes": [
- "meas:r"
], - "audiences": [
- "audiences"
], - "tls_client_auth_subject_dn": "SERIALNUMBER=0001,CN=CommonName,OU=OrganizationalUnit,O=Organization,POSTALCODE=PostalCode,STREET=StreetAddress,L=Locality,ST=Province,C=COUNTRY",
- "user_uuid": "bde29eb4-c3cf-4dca-8463-04118a0904b6",
- "created_at": "2000-01-01T00:00:00Z",
- "updated_at": "2000-01-01T00:00:00Z"
}
], - "page": {
- "next": true,
- "prev": true,
- "next_page": 0,
- "prev_page": 0,
- "total_page": 1,
- "total_count": 1
}
}OAuth2クライアントを取得します。
| client_id required | string Example: 039b8ee2-8edc-46e4-9a88-4d03bac142f7 OAuth2クライアントID |
{- "client_id": "4b54d475-0607-441e-b252-944a97337a9e",
- "name": "My Client",
- "secrets": [
- {
- "id": 1,
- "name": "My Secret",
- "secret": "secret",
- "last_used_at": "2000-01-01T00:00:00Z",
- "created_at": "2000-01-01T00:00:00Z"
}
], - "grant_types": [
- "authorization_code"
], - "token_endpoint_auth_method": "none",
- "response_types": [
- "code"
], - "scopes": [
- "meas:r"
], - "audiences": [
- "audiences"
], - "tls_client_auth_subject_dn": "SERIALNUMBER=0001,CN=CommonName,OU=OrganizationalUnit,O=Organization,POSTALCODE=PostalCode,STREET=StreetAddress,L=Locality,ST=Province,C=COUNTRY",
- "user_uuid": "bde29eb4-c3cf-4dca-8463-04118a0904b6",
- "created_at": "2000-01-01T00:00:00Z",
- "updated_at": "2000-01-01T00:00:00Z"
}OAuth2クライアントを更新します。
| client_id required | string Example: 039b8ee2-8edc-46e4-9a88-4d03bac142f7 OAuth2クライアントID |
| name | string [ 1 .. 256 ] characters 名前 |
| redirect_uris | Array of strings <= 10 items [ items <= 256 characters ] 認可後のリダイレクト先URI |
{- "name": "My Client",
}{- "client_id": "4b54d475-0607-441e-b252-944a97337a9e",
- "name": "My Client",
- "secrets": [
- {
- "id": 1,
- "name": "My Secret",
- "secret": "secret",
- "last_used_at": "2000-01-01T00:00:00Z",
- "created_at": "2000-01-01T00:00:00Z"
}
], - "grant_types": [
- "authorization_code"
], - "token_endpoint_auth_method": "none",
- "response_types": [
- "code"
], - "scopes": [
- "meas:r"
], - "audiences": [
- "audiences"
], - "tls_client_auth_subject_dn": "SERIALNUMBER=0001,CN=CommonName,OU=OrganizationalUnit,O=Organization,POSTALCODE=PostalCode,STREET=StreetAddress,L=Locality,ST=Province,C=COUNTRY",
- "user_uuid": "bde29eb4-c3cf-4dca-8463-04118a0904b6",
- "created_at": "2000-01-01T00:00:00Z",
- "updated_at": "2000-01-01T00:00:00Z"
}自分のクライアントIDと同じOAuth2クライアントを取得します。
{- "client_id": "4b54d475-0607-441e-b252-944a97337a9e",
- "name": "My Client",
- "secrets": [
- {
- "id": 1,
- "name": "My Secret",
- "secret": "secret",
- "last_used_at": "2000-01-01T00:00:00Z",
- "created_at": "2000-01-01T00:00:00Z"
}
], - "grant_types": [
- "authorization_code"
], - "token_endpoint_auth_method": "none",
- "response_types": [
- "code"
], - "scopes": [
- "meas:r"
], - "audiences": [
- "audiences"
], - "tls_client_auth_subject_dn": "SERIALNUMBER=0001,CN=CommonName,OU=OrganizationalUnit,O=Organization,POSTALCODE=PostalCode,STREET=StreetAddress,L=Locality,ST=Province,C=COUNTRY",
- "user_uuid": "bde29eb4-c3cf-4dca-8463-04118a0904b6",
- "created_at": "2000-01-01T00:00:00Z",
- "updated_at": "2000-01-01T00:00:00Z"
}ユーザーのOAuth2クライアントのリストを取得します。
| user_uuid required | string Example: 0932ff17-567c-4ac8-a40d-136357890f7b ユーザーのUUID |
{- "items": [
- {
- "client_id": "4b54d475-0607-441e-b252-944a97337a9e",
- "name": "My Client",
- "secrets": [
- {
- "id": 1,
- "name": "My Secret",
- "secret": "secret",
- "last_used_at": "2000-01-01T00:00:00Z",
- "created_at": "2000-01-01T00:00:00Z"
}
], - "grant_types": [
- "authorization_code"
], - "token_endpoint_auth_method": "none",
- "response_types": [
- "code"
], - "scopes": [
- "meas:r"
], - "audiences": [
- "audiences"
], - "tls_client_auth_subject_dn": "SERIALNUMBER=0001,CN=CommonName,OU=OrganizationalUnit,O=Organization,POSTALCODE=PostalCode,STREET=StreetAddress,L=Locality,ST=Province,C=COUNTRY",
- "user_uuid": "bde29eb4-c3cf-4dca-8463-04118a0904b6",
- "created_at": "2000-01-01T00:00:00Z",
- "updated_at": "2000-01-01T00:00:00Z"
}
], - "page": {
- "next": true,
- "prev": true,
- "next_page": 0,
- "prev_page": 0,
- "total_page": 1,
- "total_count": 1
}
}自分(ユーザー)のOAuth2クライアントのリストを取得します。
{- "items": [
- {
- "client_id": "4b54d475-0607-441e-b252-944a97337a9e",
- "name": "My Client",
- "secrets": [
- {
- "id": 1,
- "name": "My Secret",
- "secret": "secret",
- "last_used_at": "2000-01-01T00:00:00Z",
- "created_at": "2000-01-01T00:00:00Z"
}
], - "grant_types": [
- "authorization_code"
], - "token_endpoint_auth_method": "none",
- "response_types": [
- "code"
], - "scopes": [
- "meas:r"
], - "audiences": [
- "audiences"
], - "tls_client_auth_subject_dn": "SERIALNUMBER=0001,CN=CommonName,OU=OrganizationalUnit,O=Organization,POSTALCODE=PostalCode,STREET=StreetAddress,L=Locality,ST=Province,C=COUNTRY",
- "user_uuid": "bde29eb4-c3cf-4dca-8463-04118a0904b6",
- "created_at": "2000-01-01T00:00:00Z",
- "updated_at": "2000-01-01T00:00:00Z"
}
], - "page": {
- "next": true,
- "prev": true,
- "next_page": 0,
- "prev_page": 0,
- "total_page": 1,
- "total_count": 1
}
}自分(ユーザー)のOAuth2クライアントを作成します。
| name required | string [ 1 .. 256 ] characters 名前 |
| grant_type required | string グラントタイプ |
| redirect_uris required | Array of strings <= 10 items [ items <= 256 characters ] |
| token_endpoint_auth_method required | string Default: "client_secret_post" Enum: "client_secret_post" "tls_client_auth" "client_secret_basic" "none" トークンエンドポイントの認証方式 |
| tls_client_auth_subject_dn | string <= 512 characters TLSクライアント認証のサブジェクトDN |
{- "name": "my-authorization-code-client",
- "grant_type": "authorization_code",
- "token_endpoint_auth_method": "client_secret_basic",
}{- "client_id": "string",
- "name": "string",
- "secrets": [
- {
- "id": 1,
- "name": "My Secret",
- "secret": "secret",
- "last_used_at": "2000-01-01T00:00:00Z",
- "created_at": "2000-01-01T00:00:00Z"
}
], - "grant_types": [
- "string"
], - "token_endpoint_auth_method": "string",
- "redirect_uris": [
- "string"
], - "response_types": [
- "string"
], - "scopes": [
- "string"
], - "audiences": [
- "string"
], - "tls_client_auth_subject_dn": "SERIALNUMBER=0001,CN=CommonName,OU=OrganizationalUnit,O=Organization,POSTALCODE=PostalCode,STREET=StreetAddress,L=Locality,ST=Province,C=COUNTRY",
- "user_uuid": "bde29eb4-c3cf-4dca-8463-04118a0904b6",
- "created_at": "2000-01-01T00:00:00Z",
- "updated_at": "2000-01-01T00:00:00Z",
- "client_secret": "string"
}自分(ユーザー)のOAuth2クライアントを取得します。
| client_id required | string Example: 039b8ee2-8edc-46e4-9a88-4d03bac142f7 OAuth2クライアントID |
{- "client_id": "4b54d475-0607-441e-b252-944a97337a9e",
- "name": "My Client",
- "secrets": [
- {
- "id": 1,
- "name": "My Secret",
- "secret": "secret",
- "last_used_at": "2000-01-01T00:00:00Z",
- "created_at": "2000-01-01T00:00:00Z"
}
], - "grant_types": [
- "authorization_code"
], - "token_endpoint_auth_method": "none",
- "response_types": [
- "code"
], - "scopes": [
- "meas:r"
], - "audiences": [
- "audiences"
], - "tls_client_auth_subject_dn": "SERIALNUMBER=0001,CN=CommonName,OU=OrganizationalUnit,O=Organization,POSTALCODE=PostalCode,STREET=StreetAddress,L=Locality,ST=Province,C=COUNTRY",
- "user_uuid": "bde29eb4-c3cf-4dca-8463-04118a0904b6",
- "created_at": "2000-01-01T00:00:00Z",
- "updated_at": "2000-01-01T00:00:00Z"
}自分(ユーザー)のOAuth2クライアントを更新します。
| client_id required | string Example: 039b8ee2-8edc-46e4-9a88-4d03bac142f7 OAuth2クライアントID |
| name | string [ 1 .. 256 ] characters 名前 |
| redirect_uris | Array of strings <= 10 items [ items <= 256 characters ] 認可後のリダイレクト先URI |
{- "name": "My Client",
}{- "client_id": "4b54d475-0607-441e-b252-944a97337a9e",
- "name": "My Client",
- "secrets": [
- {
- "id": 1,
- "name": "My Secret",
- "secret": "secret",
- "last_used_at": "2000-01-01T00:00:00Z",
- "created_at": "2000-01-01T00:00:00Z"
}
], - "grant_types": [
- "authorization_code"
], - "token_endpoint_auth_method": "none",
- "response_types": [
- "code"
], - "scopes": [
- "meas:r"
], - "audiences": [
- "audiences"
], - "tls_client_auth_subject_dn": "SERIALNUMBER=0001,CN=CommonName,OU=OrganizationalUnit,O=Organization,POSTALCODE=PostalCode,STREET=StreetAddress,L=Locality,ST=Province,C=COUNTRY",
- "user_uuid": "bde29eb4-c3cf-4dca-8463-04118a0904b6",
- "created_at": "2000-01-01T00:00:00Z",
- "updated_at": "2000-01-01T00:00:00Z"
}OAuth2クライアントシークレットを作成します。
| client_id required | string Example: 039b8ee2-8edc-46e4-9a88-4d03bac142f7 OAuth2クライアントID |
| name | string [ 1 .. 511 ] characters Secretの名前 |
{- "name": "MySecret"
}{- "id": 1,
- "name": "My Secret",
- "secret": "secret",
- "last_used_at": "2000-01-01T00:00:00Z",
- "created_at": "2000-01-01T00:00:00Z"
}ClientSecret の name を更新します。 リクエストボディに name フィールドが含まれない場合は何も変更せず現状を返します (PATCH 純粋意味)。
| client_id required | string Example: 039b8ee2-8edc-46e4-9a88-4d03bac142f7 OAuth2クライアントID |
| secret_id required | integer Example: 1 OAuth2クライアントシークレットのID |
| name | string [ 1 .. 511 ] characters ClientSecret の表示名 (省略時は変更なし、no-op)。 空文字や 512 文字以上は 400 Bad Request。 NUL バイト (\x00) を含む値も 400 で拒否される (PostgreSQL varchar 制約)。 |
{- "name": "production-key"
}{- "id": 1,
- "name": "My Secret",
- "secret": "secret",
- "last_used_at": "2000-01-01T00:00:00Z",
- "created_at": "2000-01-01T00:00:00Z"
}WebAuthnパスキーの登録を開始します。 navigator.credentials.create() に渡すオプションを生成します。 認証済みユーザーのみ使用可能です。
{- "publicKey": {
- "rp": {
- "name": "string",
- "id": "string"
}, - "user": {
- "name": "string",
- "displayName": "string",
- "id": "string"
}, - "challenge": "string",
- "pubKeyCredParams": [
- {
- "type": "public-key",
- "alg": -7
}
], - "timeout": 300000,
- "excludeCredentials": [
- {
- "type": "public-key",
- "id": "string"
}
], - "authenticatorSelection": {
- "authenticatorAttachment": "platform",
- "residentKey": "discouraged",
- "requireResidentKey": true,
- "userVerification": "discouraged"
}, - "attestation": "none"
}, - "session_id": "dGVzdC1zZXNzaW9uLWlk"
}WebAuthnパスキーの登録を完了します。 navigator.credentials.create() の結果を検証し、クレデンシャルを保存します。 認証済みユーザーのみ使用可能です。
| session_id required | string 登録オプションレスポンスで取得したセッションID |
| name | string <= 255 characters クレデンシャルの表示名 |
required | object navigator.credentials.create() から返された PublicKeyCredential オブジェクト。 AuthenticatorAttestationResponse を含みます。 |
{- "session_id": "dGVzdC1zZXNzaW9uLWlk",
- "name": "My Passkey",
- "credential": {
- "id": "string",
- "rawId": "string",
- "type": "public-key",
- "response": {
- "attestationObject": "string",
- "clientDataJSON": "string"
}
}
}{- "id": 1,
- "name": "My Passkey",
- "created_at": "2000-01-01T00:00:00Z"
}WebAuthnパスキーによる認証を開始します。 navigator.credentials.get() に渡すオプションを生成します。 OAuth2認可コードフローのパラメータが必要です。 認証不要(匿名アクセス可)です。
| client_id required | string OAuth2クライアントID |
| redirect_uri required | string OAuth2リダイレクトURI |
| scope required | string 要求するOAuth2スコープ(スペース区切り) |
| response_type required | string OAuth2レスポンスタイプ |
| state | string OAuth2 stateパラメータ(CSRF対策用) |
| code_challenge | string PKCE code_challenge |
| code_challenge_method | string Enum: "plain" "S256" PKCE code_challenge_method |
| nonce | string OpenID Connect nonceパラメータ |
{- "client_id": "my-client-id",
- "scope": "openid offline_access",
- "response_type": "code",
- "state": "random-state-value",
- "code_challenge": "E9Melhoa2OwvFrEMTJguCHaoeK1t8URWbuGJSstw-cM",
- "code_challenge_method": "S256",
- "nonce": "random-nonce-value"
}{- "publicKey": {
- "challenge": "string",
- "timeout": 300000,
- "rpId": "string",
- "allowCredentials": [
- {
- "type": "public-key",
- "id": "string",
- "transports": [
- "usb"
]
}
], - "userVerification": "discouraged"
}, - "session_id": "dGVzdC1zZXNzaW9uLWlk"
}WebAuthnパスキーによる認証を完了します。 navigator.credentials.get() の結果を検証し、OAuth2認可コード付きのリダイレクトURLを返します。 認証不要(匿名アクセス可)です。
| session_id required | string 認証オプションレスポンスで取得したセッションID |
required | object navigator.credentials.get() から返された PublicKeyCredential オブジェクト。 AuthenticatorAssertionResponse を含みます。 |
{- "session_id": "dGVzdC1zZXNzaW9uLWlk",
- "credential": {
- "id": "string",
- "rawId": "string",
- "type": "public-key",
- "response": {
- "authenticatorData": "string",
- "clientDataJSON": "string",
- "signature": "string",
- "userHandle": "string"
}
}
}ユーザーのリストを取得します。
| uuid | Array of strings Example: uuid=0932ff17-567c-4ac8-a40d-136357890f7b ユーザーのUUID |
| role_uuid | Array of strings Example: role_uuid=af22c56b-6b3e-4807-a165-07e9dbd7e25b ロールのUUID |
| name | Array of strings Example: name=intdash ユーザーの名前による部分一致検索。文字列をダブルクォーテーションで囲むと、完全一致のものだけを取得します。 |
| nickname | Array of strings Example: nickname=intdash-nickname ユーザーの表示名による部分一致検索。文字列をダブルクォーテーションで囲むと、完全一致のものだけを取得します。 |
Array of strings Example: email=intdash@example.com メールアドレスによる部分一致検索。文字列をダブルクォーテーションで囲むと、完全一致のものだけを取得します。 | |
| disabled | boolean
|
| is_super | boolean
|
| is_temporary | boolean
|
| min_sign_in_attempt_count | integer >= 0 Example: min_sign_in_attempt_count=1 ログイン失敗回数の最小値。ログイン失敗回数がこの数値以上のユーザーを取得します。 |
| max_sign_in_attempt_count | integer >= 0 Example: max_sign_in_attempt_count=10 ログイン失敗回数の最大値。ログイン失敗回数がこの数値以下のユーザーを取得します。 |
| sort | string Default: "name+" 並べ替えに使用するキー。接尾辞
|
| page | integer >= 1 Default: 1 取得するページの番号 |
| per_page | integer <= 200 Default: 30 1回のリクエストで取得する件数 |
{- "items": [ ],
- "page": {
- "next": false,
- "prev": false,
- "total_page": 1,
- "total_count": 1
}
}ユーザーを作成します。新しいユーザーには自動生成された一時パスワードが設定されます。 ユーザー作成のリクエストにメールアドレス( email )が含まれていた場合は、 そのメールアドレスに確認メールが送信されます。
| name required | string [ 1 .. 256 ] characters ^[0-9a-zA-Z-_]*$ ユーザーの名前 |
| nickname | string <= 512 characters ユーザーの表示名 |
| description | string <= 65536 characters ユーザーの説明 |
| role_uuids required | Array of strings ロールのUUID。指定したロールがユーザーに割り当てられます。 |
string [ 1 .. 256 ] characters ユーザーのメールアドレス |
{- "name": "intdash",
- "nickname": "nickname",
- "description": "description",
- "role_uuids": [
- "af22c56b-6b3e-4807-a165-07e9dbd7e25b"
], - "email": "intdash@example.com"
}{- "uuid": "0932ff17-567c-4ac8-a40d-136357890f7b",
- "name": "intdash",
- "nickname": "nickname",
- "disabled": false,
- "description": "description",
- "is_super": false,
- "emails": [
- {
- "id": 1,
- "address": "intdash@example.com",
- "verified": false,
- "created_at": "2000-01-01T00:00:00Z",
- "updated_at": "2000-01-01T00:00:00Z"
}
], - "password": {
- "attempt_count": 0,
- "last_attempt_at": "2000-01-01T00:00:00Z",
- "is_temporary": true,
- "temporary_password": "password",
- "expired_at": "2000-01-01T00:00:00Z",
- "created_at": "2000-01-01T00:00:00Z",
- "updated_at": "2000-01-01T00:00:00Z"
}, - "roles": [
- "af22c56b-6b3e-4807-a165-07e9dbd7e25b"
], - "last_sign_in_at": "2000-01-01T00:00:00Z",
- "created_at": "2000-01-01T00:00:00Z",
- "updated_at": "2000-01-01T00:00:00Z"
}ユーザーを取得します。
| user_uuid required | string Example: 0932ff17-567c-4ac8-a40d-136357890f7b ユーザーのUUID |
{- "uuid": "0932ff17-567c-4ac8-a40d-136357890f7b",
- "name": "intdash",
- "nickname": "intdash-nickname",
- "disabled": false,
- "description": "description",
- "is_super": false,
- "emails": [
- {
- "id": 1,
- "address": "intdash@example.com",
- "verified": false,
- "created_at": "2000-01-01T00:00:00Z",
- "updated_at": "2000-01-01T00:00:00Z"
}
], - "last_sign_in_at": "2000-01-01T00:00:00Z",
- "roles": [
- "af22c56b-6b3e-4807-a165-07e9dbd7e25b"
], - "password": {
- "attempt_count": 1,
- "is_temporary": false,
- "temporary_password": "password",
- "last_attempt_at": "2000-01-01T00:00:00Z",
- "expired_at": "2000-01-01T00:00:00Z",
- "created_at": "2000-01-01T00:00:00Z",
- "updated_at": "2000-01-01T00:00:00Z"
}, - "created_at": "2000-01-01T00:00:00Z",
- "updated_at": "2000-01-01T00:00:00Z"
}ユーザーを更新します。
| user_uuid required | string Example: 0932ff17-567c-4ac8-a40d-136357890f7b ユーザーのUUID |
| name | string [ 1 .. 256 ] characters ^[0-9a-zA-Z-_]*$ ユーザーの名前 |
| nickname | string <= 512 characters ユーザーの表示名 |
| description | string <= 65536 characters ユーザーの説明 |
{- "name": "username",
- "nickname": "nickname",
- "description": "user description"
}{- "uuid": "0932ff17-567c-4ac8-a40d-136357890f7b",
- "name": "intdash",
- "nickname": "intdash-nickname",
- "disabled": false,
- "description": "description",
- "is_super": false,
- "emails": [
- {
- "id": 1,
- "address": "intdash@example.com",
- "verified": false,
- "created_at": "2000-01-01T00:00:00Z",
- "updated_at": "2000-01-01T00:00:00Z"
}
], - "last_sign_in_at": "2000-01-01T00:00:00Z",
- "roles": [
- "af22c56b-6b3e-4807-a165-07e9dbd7e25b"
], - "password": {
- "attempt_count": 1,
- "is_temporary": false,
- "temporary_password": "password",
- "last_attempt_at": "2000-01-01T00:00:00Z",
- "expired_at": "2000-01-01T00:00:00Z",
- "created_at": "2000-01-01T00:00:00Z",
- "updated_at": "2000-01-01T00:00:00Z"
}, - "created_at": "2000-01-01T00:00:00Z",
- "updated_at": "2000-01-01T00:00:00Z"
}ユーザーを削除します。
| user_uuid required | string Example: 0932ff17-567c-4ac8-a40d-136357890f7b ユーザーのUUID |
{- "type": "forbidden",
- "title": "error message"
}ユーザーを有効化します。
| user_uuid required | string Example: 0932ff17-567c-4ac8-a40d-136357890f7b ユーザーのUUID |
{- "uuid": "0932ff17-567c-4ac8-a40d-136357890f7b",
- "name": "intdash",
- "nickname": "intdash-nickname",
- "disabled": false,
- "description": "description",
- "is_super": false,
- "emails": [
- {
- "id": 1,
- "address": "intdash@example.com",
- "verified": false,
- "created_at": "2000-01-01T00:00:00Z",
- "updated_at": "2000-01-01T00:00:00Z"
}
], - "last_sign_in_at": "2000-01-01T00:00:00Z",
- "roles": [
- "af22c56b-6b3e-4807-a165-07e9dbd7e25b"
], - "password": {
- "attempt_count": 1,
- "is_temporary": false,
- "temporary_password": "password",
- "last_attempt_at": "2000-01-01T00:00:00Z",
- "expired_at": "2000-01-01T00:00:00Z",
- "created_at": "2000-01-01T00:00:00Z",
- "updated_at": "2000-01-01T00:00:00Z"
}, - "created_at": "2000-01-01T00:00:00Z",
- "updated_at": "2000-01-01T00:00:00Z"
}ユーザーを無効化します。
| user_uuid required | string Example: 0932ff17-567c-4ac8-a40d-136357890f7b ユーザーのUUID |
{- "uuid": "0932ff17-567c-4ac8-a40d-136357890f7b",
- "name": "intdash",
- "nickname": "intdash-nickname",
- "disabled": false,
- "description": "description",
- "is_super": false,
- "emails": [
- {
- "id": 1,
- "address": "intdash@example.com",
- "verified": false,
- "created_at": "2000-01-01T00:00:00Z",
- "updated_at": "2000-01-01T00:00:00Z"
}
], - "last_sign_in_at": "2000-01-01T00:00:00Z",
- "roles": [
- "af22c56b-6b3e-4807-a165-07e9dbd7e25b"
], - "password": {
- "attempt_count": 1,
- "is_temporary": false,
- "temporary_password": "password",
- "last_attempt_at": "2000-01-01T00:00:00Z",
- "expired_at": "2000-01-01T00:00:00Z",
- "created_at": "2000-01-01T00:00:00Z",
- "updated_at": "2000-01-01T00:00:00Z"
}, - "created_at": "2000-01-01T00:00:00Z",
- "updated_at": "2000-01-01T00:00:00Z"
}ユーザーのロールのリストを取得します。
| user_uuid required | string Example: 0932ff17-567c-4ac8-a40d-136357890f7b ユーザーのUUID |
{- "items": [ ],
- "page": {
- "next": false,
- "prev": false,
- "total_page": 1,
- "total_count": 1
}
}ユーザーにロールを割り当てます。
| user_uuid required | string Example: 0932ff17-567c-4ac8-a40d-136357890f7b ユーザーのUUID |
| role_uuid required | string Example: 6b4f4bce-ba32-4ad9-b808-39e2d68b33ee ロールのUUID |
{- "uuid": "6b4f4bce-ba32-4ad9-b808-39e2d68b33ee",
- "name": "member",
- "scopes": [
- {
- "uuid": "4688a07a-0cbc-4597-8c87-538e744bc90d",
- "name": "meas:r",
- "allowed_endpoints": [
- {
- "path": "/resources",
- "method": "GET"
}
], - "allowed_iscp_messages": [
- {
- "type": "eos"
}
], - "denied_endpoints": [
- {
- "path": "/denied_resources",
- "method": "GET"
}
], - "created_at": "2000-01-01T00:00:00Z",
- "updated_at": "2000-01-01T00:00:00Z"
}
], - "created_at": "2000-01-01T00:00:00Z",
- "updated_at": "2000-01-01T00:00:00Z"
}メールアドレスを確認済みにします。
| verification_token required | string [ 1 .. 4096 ] characters メールアドレス確認用トークン |
{- "verification_token": "verification.token"
}{- "id": 1,
- "address": "intdash@example.com",
- "verified": true,
- "created_at": "2000-01-01T00:00:00Z",
- "updated_at": "2000-01-01T00:00:00Z"
}ユーザーのメールアドレスを設定します。 メールアドレスの設定が成功すると、確認用URLを含むメールがそのアドレスに送信されます。 確認用URLには、メールアドレス確認用トークンとメールアドレスのIDが含まれます。
| user_uuid required | string Example: 0932ff17-567c-4ac8-a40d-136357890f7b ユーザーのUUID |
| address required | string [ 1 .. 256 ] characters メールアドレス |
{- "address": "intdash@example.com"
}{- "id": 1,
- "address": "intdash@example.com",
- "verified": false,
- "created_at": "2000-01-01T00:00:00Z",
- "updated_at": "2000-01-01T00:00:00Z"
}ユーザーのメールアドレスを更新します。 メールアドレスの設定が成功すると、確認用URLを含むメールがそのアドレスに送信されます。 確認用URLには、メールアドレス確認用トークンとメールアドレスのIDが含まれます。
| user_uuid required | string Example: 0932ff17-567c-4ac8-a40d-136357890f7b ユーザーのUUID |
| user_email_id required | integer <int64> Example: 1 ユーザーのメールアドレスのID |
| address required | string [ 1 .. 256 ] characters メールアドレス |
{- "address": "intdash@example.com"
}{- "id": 1,
- "address": "intdash@example.com",
- "verified": false,
- "created_at": "2000-01-01T00:00:00Z",
- "updated_at": "2000-01-01T00:00:00Z"
}メールアドレスを確認するため確認メールを送信します。メールアドレス確認用トークンを使用します。
| user_uuid required | string Example: 0932ff17-567c-4ac8-a40d-136357890f7b ユーザーのUUID |
| user_email_id required | integer <int64> Example: 1 ユーザーのメールアドレスのID |
{- "email_id": "1",
- "expired_at": "2100-01-01T00:00:00Z",
- "created_at": "2000-01-01T00:00:00Z",
- "updated_at": "2000-01-01T00:00:00Z"
}ユーザーのメールアドレスを確認済みにします。
| user_uuid required | string Example: 0932ff17-567c-4ac8-a40d-136357890f7b ユーザーのUUID |
| user_email_id required | integer <int64> Example: 1 ユーザーのメールアドレスのID |
| verification_token required | string [ 1 .. 4096 ] characters メールアドレス確認用トークン |
{- "verification_token": "verification.token"
}{- "id": 1,
- "address": "intdash@example.com",
- "verified": true,
- "created_at": "2000-01-01T00:00:00Z",
- "updated_at": "2000-01-01T00:00:00Z"
}ユーザーのパスワードを、ランダムな一時パスワードに変更します。
| user_uuid required | string Example: 0932ff17-567c-4ac8-a40d-136357890f7b ユーザーのUUID |
{- "attempt_count": 0,
- "is_temporary": true,
- "temporary_password": "password",
- "last_attempt_at": "2000-01-01T00:00:00Z",
- "expired_at": "2000-01-01T00:00:00Z",
- "created_at": "2000-01-01T00:00:00Z",
- "updated_at": "2000-01-01T00:00:00Z"
}ユーザーのパスワードのロックを解除します。このユーザーのログイン失敗回数は0にリセットされます。
| user_uuid required | string Example: 0932ff17-567c-4ac8-a40d-136357890f7b ユーザーのUUID |
{- "attempt_count": 0,
- "is_temporary": false,
- "last_attempt_at": "2000-01-01T00:00:00Z",
- "created_at": "2000-01-01T00:00:00Z",
- "updated_at": "2000-01-01T00:00:00Z"
}APIトークンの検証を行います。
| token required | string APIトークン |
{- "token": "message.signature"
}{- "active": false
}ユーザーのAPIトークンのリストを取得します。
| user_uuid required | string Example: 0932ff17-567c-4ac8-a40d-136357890f7b ユーザーのUUID |
{- "items": [
- {
- "id": 1,
- "name": "for test",
- "token": "token",
- "scopes": [
- {
- "uuid": "4688a07a-0cbc-4597-8c87-538e744bc90d",
- "name": "meas:r",
- "allowed_endpoints": [
- {
- "path": "/resources",
- "method": "GET"
}
], - "allowed_iscp_messages": [
- {
- "type": "eos"
}
], - "denied_endpoints": [
- {
- "path": "/denied_resources",
- "method": "GET"
}
], - "created_at": "2000-01-01T00:00:00Z",
- "updated_at": "2000-01-01T00:00:00Z"
}
], - "last_used_at": "2000-01-01T00:00:00Z",
- "expired_at": "2000-01-01T00:00:00Z",
- "created_at": "2000-01-01T00:00:00Z",
- "updated_at": "2000-01-01T00:00:00Z"
}
], - "page": {
- "next": true,
- "prev": true,
- "next_page": 0,
- "prev_page": 0,
- "total_page": 1,
- "total_count": 1
}
}ユーザーのAPIトークンを作成します。
| user_uuid required | string Example: 0932ff17-567c-4ac8-a40d-136357890f7b ユーザーのUUID |
| name required | string [ 1 .. 256 ] characters APIトークンの名前 |
| expired_at | string <date-time> 有効期限 |
{- "name": "for test",
- "expired_at": "2000-01-02T03:04:05.00Z"
}{- "id": 1,
- "name": "craeted",
- "token": "token.signature",
- "scopes": [
- {
- "uuid": "4688a07a-0cbc-4597-8c87-538e744bc90d",
- "name": "meas:r",
- "allowed_endpoints": [
- {
- "path": "/resources",
- "method": "GET"
}
], - "allowed_iscp_messages": [
- {
- "type": "upstream_spec_request"
}
], - "denied_endpoints": [
- {
- "path": "/denied_resources",
- "method": "GET"
}
]
}
], - "expired_at": "2000-01-01T00:00:00Z",
- "created_at": "2000-01-01T00:00:00Z",
- "updated_at": "2000-01-01T00:00:00Z"
}ユーザーのAPIトークンを更新します。
| user_uuid required | string Example: 0932ff17-567c-4ac8-a40d-136357890f7b ユーザーのUUID |
| user_api_token_id required | integer <int64> Example: 1 APIトークンのID |
| name required | string <= 256 characters APIトークンの名前 |
{- "name": "for test"
}{- "id": 1,
- "name": "for test",
- "token": "token",
- "scopes": [
- {
- "uuid": "4688a07a-0cbc-4597-8c87-538e744bc90d",
- "name": "meas:r",
- "allowed_endpoints": [
- {
- "path": "/resources",
- "method": "GET"
}
], - "allowed_iscp_messages": [
- {
- "type": "eos"
}
], - "denied_endpoints": [
- {
- "path": "/denied_resources",
- "method": "GET"
}
], - "created_at": "2000-01-01T00:00:00Z",
- "updated_at": "2000-01-01T00:00:00Z"
}
], - "last_used_at": "2000-01-01T00:00:00Z",
- "expired_at": "2000-01-01T00:00:00Z",
- "created_at": "2000-01-01T00:00:00Z",
- "updated_at": "2000-01-01T00:00:00Z"
}{- "uuid": "0932ff17-567c-4ac8-a40d-136357890f7b",
- "name": "intdash",
- "nickname": "intdash-nickname",
- "disabled": false,
- "description": "description",
- "is_super": false,
- "emails": [
- {
- "id": 1,
- "address": "intdash@example.com",
- "verified": false,
- "created_at": "2000-01-01T00:00:00Z",
- "updated_at": "2000-01-01T00:00:00Z"
}
], - "last_sign_in_at": "2000-01-01T00:00:00Z",
- "roles": [
- "af22c56b-6b3e-4807-a165-07e9dbd7e25b"
], - "password": {
- "attempt_count": 1,
- "is_temporary": false,
- "temporary_password": "password",
- "last_attempt_at": "2000-01-01T00:00:00Z",
- "expired_at": "2000-01-01T00:00:00Z",
- "created_at": "2000-01-01T00:00:00Z",
- "updated_at": "2000-01-01T00:00:00Z"
}, - "created_at": "2000-01-01T00:00:00Z",
- "updated_at": "2000-01-01T00:00:00Z"
}自分(ユーザー)を更新します。
| name | string [ 1 .. 256 ] characters ^[0-9a-zA-Z-_]*$ ユーザーの名前 |
| nickname | string <= 512 characters ユーザーの表示名 |
| description | string <= 65536 characters ユーザーの説明 |
{- "name": "username",
- "nickname": "nickname",
- "description": "user description"
}{- "uuid": "0932ff17-567c-4ac8-a40d-136357890f7b",
- "name": "intdash",
- "nickname": "intdash-nickname",
- "disabled": false,
- "description": "description",
- "is_super": false,
- "emails": [
- {
- "id": 1,
- "address": "intdash@example.com",
- "verified": false,
- "created_at": "2000-01-01T00:00:00Z",
- "updated_at": "2000-01-01T00:00:00Z"
}
], - "last_sign_in_at": "2000-01-01T00:00:00Z",
- "roles": [
- "af22c56b-6b3e-4807-a165-07e9dbd7e25b"
], - "password": {
- "attempt_count": 1,
- "is_temporary": false,
- "temporary_password": "password",
- "last_attempt_at": "2000-01-01T00:00:00Z",
- "expired_at": "2000-01-01T00:00:00Z",
- "created_at": "2000-01-01T00:00:00Z",
- "updated_at": "2000-01-01T00:00:00Z"
}, - "created_at": "2000-01-01T00:00:00Z",
- "updated_at": "2000-01-01T00:00:00Z"
}自分(ユーザー)のメールアドレスを設定します。 メールアドレスの設定が成功すると、確認用URLを含むメールがそのアドレスに送信されます。 確認用URLには、メールアドレス確認用トークンとメールアドレスのIDが含まれます。
| address required | string [ 1 .. 256 ] characters メールアドレス |
{- "address": "intdash@example.com"
}{- "id": 1,
- "address": "intdash@example.com",
- "verified": false,
- "created_at": "2000-01-01T00:00:00Z",
- "updated_at": "2000-01-01T00:00:00Z"
}自分(ユーザー)のメールアドレスを更新します。 メールアドレスの設定が成功すると、確認用URLを含むメールがそのアドレスに送信されます。 確認用URLには、メールアドレス確認用トークンとメールアドレスのIDが含まれます。
| user_email_id required | integer <int64> Example: 1 ユーザーのメールアドレスのID |
| address required | string [ 1 .. 256 ] characters メールアドレス |
{- "address": "intdash@example.com"
}{- "id": 1,
- "address": "intdash@example.com",
- "verified": false,
- "created_at": "2000-01-01T00:00:00Z",
- "updated_at": "2000-01-01T00:00:00Z"
}メールアドレスを確認するための確認メールを送信します。
| user_email_id required | integer <int64> Example: 1 ユーザーのメールアドレスのID |
{- "email_id": "1",
- "expired_at": "2100-01-01T00:00:00Z",
- "created_at": "2000-01-01T00:00:00Z",
- "updated_at": "2000-01-01T00:00:00Z"
}パスワードを変更します。
現在のパスワード old_password または recovery_token が必要です。
| password required | string [ 8 .. 512 ] characters [a-zA-Z0-9!"#$%&'()*+,-./:;<=>?@\{\}|\[\]]* 新しいパスワード |
| old_password | string <= 512 characters 現在のパスワード |
| recovery_token | string リカバリートークン。パスワード再設定用の確認メールに含まれています。 |
{- "password": "new-password",
- "old_password": "old-password",
- "recovery_token": "recovery.token"
}{- "attempt_count": 1,
- "is_temporary": false,
- "last_attempt_at": "2000-01-01T00:00:00Z",
- "expired_at": "2000-01-01T00:00:00Z",
- "created_at": "2000-01-01T00:00:00Z",
- "updated_at": "2000-01-01T00:00:00Z"
}パスワードがポリシーに適合しているかをチェックします。
| password required | string <= 512 characters チェックしたいパスワード |
{- "password": "password"
}{- "valid": false,
- "errors": [
- {
- "type": "min_length",
- "value": 10,
- "message": "messsage"
}
]
}自分(ユーザー)のAPIトークンのリストを取得します。
{- "items": [
- {
- "id": 1,
- "name": "for test",
- "token": "token",
- "scopes": [
- {
- "uuid": "4688a07a-0cbc-4597-8c87-538e744bc90d",
- "name": "meas:r",
- "allowed_endpoints": [
- {
- "path": "/resources",
- "method": "GET"
}
], - "allowed_iscp_messages": [
- {
- "type": "eos"
}
], - "denied_endpoints": [
- {
- "path": "/denied_resources",
- "method": "GET"
}
], - "created_at": "2000-01-01T00:00:00Z",
- "updated_at": "2000-01-01T00:00:00Z"
}
], - "last_used_at": "2000-01-01T00:00:00Z",
- "expired_at": "2000-01-01T00:00:00Z",
- "created_at": "2000-01-01T00:00:00Z",
- "updated_at": "2000-01-01T00:00:00Z"
}
], - "page": {
- "next": true,
- "prev": true,
- "next_page": 0,
- "prev_page": 0,
- "total_page": 1,
- "total_count": 1
}
}自分(ユーザー)のAPIトークンを作成します。
| name required | string [ 1 .. 256 ] characters APIトークンの名前 |
| expired_at | string <date-time> 有効期限 |
{- "name": "for test",
- "expired_at": "2000-01-02T03:04:05.00Z"
}{- "id": 1,
- "name": "craeted",
- "token": "token.signature",
- "scopes": [
- {
- "uuid": "4688a07a-0cbc-4597-8c87-538e744bc90d",
- "name": "meas:r",
- "allowed_endpoints": [
- {
- "path": "/resources",
- "method": "GET"
}
], - "allowed_iscp_messages": [
- {
- "type": "upstream_spec_request"
}
], - "denied_endpoints": [
- {
- "path": "/denied_resources",
- "method": "GET"
}
]
}
], - "expired_at": "2000-01-01T00:00:00Z",
- "created_at": "2000-01-01T00:00:00Z",
- "updated_at": "2000-01-01T00:00:00Z"
}自分(ユーザー)のAPIトークンを作成します。
| user_api_token_id required | integer <int64> Example: 1 APIトークンのID |
| name required | string <= 256 characters APIトークンの名前 |
{- "name": "for test"
}{- "id": 1,
- "name": "for test",
- "token": "token",
- "scopes": [
- {
- "uuid": "4688a07a-0cbc-4597-8c87-538e744bc90d",
- "name": "meas:r",
- "allowed_endpoints": [
- {
- "path": "/resources",
- "method": "GET"
}
], - "allowed_iscp_messages": [
- {
- "type": "eos"
}
], - "denied_endpoints": [
- {
- "path": "/denied_resources",
- "method": "GET"
}
], - "created_at": "2000-01-01T00:00:00Z",
- "updated_at": "2000-01-01T00:00:00Z"
}
], - "last_used_at": "2000-01-01T00:00:00Z",
- "expired_at": "2000-01-01T00:00:00Z",
- "created_at": "2000-01-01T00:00:00Z",
- "updated_at": "2000-01-01T00:00:00Z"
}自分のWebAuthnパスキークレデンシャルの一覧を取得します。
{- "items": [
- {
- "id": 1,
- "credential_id": "dGVzdC1jcmVkZW50aWFsLWlk",
- "name": "My Passkey",
- "transport": [
- "internal",
- "hybrid"
], - "sign_count": 5,
- "created_at": "2000-01-01T00:00:00Z",
- "updated_at": "2000-01-01T00:00:00Z"
}
]
}自分のWebAuthnパスキークレデンシャルの表示名を更新します。
| credential_id required | integer Example: 1 WebAuthnクレデンシャルのID |
| name required | string [ 1 .. 255 ] characters クレデンシャルの新しい表示名 |
{- "name": "My Passkey"
}{- "id": 1,
- "credential_id": "dGVzdC1jcmVkZW50aWFsLWlk",
- "name": "My Passkey",
- "transport": [
- "internal",
- "hybrid"
], - "sign_count": 5,
- "created_at": "2000-01-01T00:00:00Z",
- "updated_at": "2000-01-01T00:00:00Z"
}自分のWebAuthnパスキークレデンシャルを削除します。 現在のパスワードが必要です。 MFA必須設定が有効な場合、他のMFA手段(TOTPまたは別のパスキー)が存在しないと削除できません。
| credential_id required | integer Example: 1 WebAuthnクレデンシャルのID |
| current_password required | string <= 512 characters 現在のパスワード |
{- "current_password": "current-password"
}{- "type": "invalid_request",
- "title": "invalid password"
}指定ユーザーのWebAuthnパスキークレデンシャルを削除します(管理者操作)。
| user_uuid required | string Example: 0932ff17-567c-4ac8-a40d-136357890f7b ユーザーのUUID |
| credential_id required | integer Example: 1 WebAuthnクレデンシャルのID |
{- "type": "invalid_request",
- "title": "Bad Request",
- "properties": { }
}TOTP MFAのエンロール(初期登録)を行います。 現在のパスワードが必要です。 エンロール後、認証アプリにシークレットを登録し、アクティベーションを行ってください。
| current_password required | string <= 512 characters 現在のパスワード |
{- "current_password": "current-password"
}{- "secret": "JBSWY3DPEHPK3PXP",
- "provisioning_uri": "otpauth://totp/intdash:user@example.com?secret=JBSWY3DPEHPK3PXP&issuer=intdash"
}自分のTOTP MFA設定を削除します。 現在のパスワードが必要です。
| current_password required | string <= 512 characters 現在のパスワード |
{- "current_password": "current-password"
}{- "type": "invalid_request",
- "title": "invalid password"
}エンロール済みのTOTPをアクティベート(有効化)します。 認証アプリで生成した確認コードが必要です。 アクティベーションに成功すると、リカバリーコードが発行されます。 リカバリーコードは安全な場所に保管してください。
| confirmation_code required | string = 6 characters 認証アプリで生成した6桁の確認コード |
{- "confirmation_code": "123456"
}{- "recovery_codes": [
- "abcd1234",
- "efgh5678",
- "ijkl9012"
]
}TOTPのリカバリーコードを再生成します。 既存のリカバリーコードはすべて無効になり、新しいコードセットに置き換えられます。 現在のパスワードが必要です。
| current_password required | string <= 512 characters 現在のパスワード |
{- "current_password": "current-password"
}{- "recovery_codes": [
- "abcd1234",
- "efgh5678",
- "ijkl9012"
]
}TOTP MFA認証フローで発行されたセッションコードをMFAトークン(JWT)に交換します。 取得したMFAトークンは、TOTPコードの検証やリカバリーコード認証に使用します。
| mfa_session_code required | string MFA認証フローで発行されたセッションコード |
{- "mfa_session_code": "mfa-session-code-example"
}{- "access_token": "eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9...",
- "token_type": "Bearer",
- "expires_in": 3600,
- "scope": "mfa"
}認証アプリで生成したTOTPコードを検証します。
検証に成功すると、OAuth2認可フローのリダイレクトURLが返されます。
このエンドポイントにはMFAトークン(mfa スコープ付きJWT)が必要です。
| code required | string = 6 characters 認証アプリで生成した6桁のTOTPコード |
{- "code": "123456"
}{
}TOTP認証デバイスを紛失した場合に、リカバリーコードを使用して認証します。
検証に成功すると、OAuth2認可フローのリダイレクトURLが返されます。
リカバリーコードは一度使用すると無効になります。
このエンドポイントにはMFAトークン(mfa スコープ付きJWT)が必要です。
| recovery_code required | string = 8 characters TOTP登録時に発行されたリカバリーコード(8文字) |
{- "recovery_code": "abcd1234"
}{
}エッジのリストを取得します。
| uuid | Array of strings Example: uuid=0932ff17-567c-4ac8-a40d-136357890f7b エッジのUUID |
| name | Array of strings Example: name=edge_name 名前による部分一致検索 |
| nickname | Array of strings Example: nickname=edge_nickname 表示名による部分一致検索 |
| owner_uuid | Array of strings Example: owner_uuid=d30267f0-bdd4-4d53-b072-45d3cc29c7de 所有者ユーザーのUUID |
| has_owner | string Enum: "true" "false" Example: has_owner=true 所有者の有無。
|
| sort | string Default: "name+" 並べ替えに使用するキー。接尾辞
|
| page | integer >= 1 Default: 1 取得するページの番号 |
| per_page | integer <= 200 Default: 30 1回のリクエストで取得する件数 |
{- "items": [
- {
- "uuid": "6b4f4bce-ba32-4ad9-b808-39e2d68b33ee",
- "name": "my-edge",
- "nickname": "My Edge",
- "description": "Description",
- "owner": {
- "user_uuid": "84693d9e-0f1a-457b-b417-a7c697cffdce"
}, - "client_secret": "secret",
- "secrets": [
- {
- "id": 1,
- "name": "My Secret",
- "secret": "secret",
- "last_used_at": "2000-01-01T00:00:00Z",
- "created_at": "2000-01-01T00:00:00Z"
}
], - "created_at": "2000-01-01T00:00:00Z",
- "updated_at": "2000-01-01T00:00:00Z"
}
], - "page": {
- "next": true,
- "prev": true,
- "next_page": 0,
- "prev_page": 0,
- "total_page": 1,
- "total_count": 1
}
}所有者がない状態でエッジを作成します。
| name required | string [ 1 .. 255 ] characters ^[0-9a-zA-Z-_]*$ エッジの名前 |
| nickname | string <= 511 characters エッジの表示名 |
| description | string <= 65535 characters エッジの説明 |
{- "name": "edge",
- "nickname": "nickname",
- "description": "description"
}{- "uuid": "6b4f4bce-ba32-4ad9-b808-39e2d68b33ee",
- "name": "my-edge",
- "nickname": "My Edge",
- "description": "Description",
- "created_at": "2000-01-01T00:00:00Z",
- "updated_at": "2000-01-01T00:00:00Z"
}自分のUUIDと同じエッジUUIDを持つエッジを取得します。
{- "uuid": "6b4f4bce-ba32-4ad9-b808-39e2d68b33ee",
- "name": "my-edge",
- "nickname": "My Edge",
- "description": "Description",
- "owner": {
- "user_uuid": "84693d9e-0f1a-457b-b417-a7c697cffdce"
}, - "client_secret": "secret",
- "secrets": [
- {
- "id": 1,
- "name": "My Secret",
- "secret": "secret",
- "last_used_at": "2000-01-01T00:00:00Z",
- "created_at": "2000-01-01T00:00:00Z"
}
], - "created_at": "2000-01-01T00:00:00Z",
- "updated_at": "2000-01-01T00:00:00Z"
}エッジを取得します。
| edge_uuid required | string Example: e920a50c-ddde-4571-b066-b568340de7cf エッジのUUID |
{- "uuid": "6b4f4bce-ba32-4ad9-b808-39e2d68b33ee",
- "name": "my-edge",
- "nickname": "My Edge",
- "description": "Description",
- "owner": {
- "user_uuid": "84693d9e-0f1a-457b-b417-a7c697cffdce"
}, - "client_secret": "secret",
- "secrets": [
- {
- "id": 1,
- "name": "My Secret",
- "secret": "secret",
- "last_used_at": "2000-01-01T00:00:00Z",
- "created_at": "2000-01-01T00:00:00Z"
}
], - "created_at": "2000-01-01T00:00:00Z",
- "updated_at": "2000-01-01T00:00:00Z"
}エッジを更新します。
| edge_uuid required | string Example: e920a50c-ddde-4571-b066-b568340de7cf エッジのUUID |
| name | string [ 1 .. 255 ] characters ^[0-9a-zA-Z-_]*$ エッジの名前 |
| nickname | string <= 511 characters エッジの表示名 |
| description | string <= 65535 characters エッジの説明 |
{- "name": "edge_name",
- "nickname": "nickname",
- "description": "description"
}{- "uuid": "6b4f4bce-ba32-4ad9-b808-39e2d68b33ee",
- "name": "my-edge",
- "nickname": "My Edge",
- "description": "Description",
- "owner": {
- "user_uuid": "84693d9e-0f1a-457b-b417-a7c697cffdce"
}, - "client_secret": "secret",
- "secrets": [
- {
- "id": 1,
- "name": "My Secret",
- "secret": "secret",
- "last_used_at": "2000-01-01T00:00:00Z",
- "created_at": "2000-01-01T00:00:00Z"
}
], - "created_at": "2000-01-01T00:00:00Z",
- "updated_at": "2000-01-01T00:00:00Z"
}エッジに所有者を割り当てます。
| edge_uuid required | string Example: e920a50c-ddde-4571-b066-b568340de7cf エッジのUUID |
| user_uuid required | string 所有者とするユーザーのUUID |
{- "user_uuid": "0932ff17-567c-4ac8-a40d-136357890f7b"
}{- "user_uuid": "84693d9e-0f1a-457b-b417-a7c697cffdce"
}指定されたユーザーが所有するエッジのリストを取得します。
| user_uuid required | string Example: 0932ff17-567c-4ac8-a40d-136357890f7b ユーザーのUUID |
{- "items": [
- {
- "uuid": "6b4f4bce-ba32-4ad9-b808-39e2d68b33ee",
- "name": "my-edge",
- "nickname": "My Edge",
- "description": "Description",
- "owner": {
- "user_uuid": "84693d9e-0f1a-457b-b417-a7c697cffdce"
}, - "client_secret": "secret",
- "secrets": [
- {
- "id": 1,
- "name": "My Secret",
- "secret": "secret",
- "last_used_at": "2000-01-01T00:00:00Z",
- "created_at": "2000-01-01T00:00:00Z"
}
], - "created_at": "2000-01-01T00:00:00Z",
- "updated_at": "2000-01-01T00:00:00Z"
}
], - "page": {
- "next": true,
- "prev": true,
- "next_page": 0,
- "prev_page": 0,
- "total_page": 1,
- "total_count": 1
}
}指定されたユーザーを所有者とするエッジを作成します。
| user_uuid required | string Example: 0932ff17-567c-4ac8-a40d-136357890f7b ユーザーのUUID |
| name required | string [ 1 .. 255 ] characters ^[0-9a-zA-Z-_]*$ エッジの名前 |
| nickname | string <= 511 characters エッジの表示名 |
| description | string <= 65535 characters エッジの説明 |
{- "name": "edge",
- "nickname": "nickname",
- "description": "description"
}{- "uuid": "6b4f4bce-ba32-4ad9-b808-39e2d68b33ee",
- "name": "my-edge",
- "nickname": "My Edge",
- "description": "Description",
- "owner": {
- "user_uuid": "84693d9e-0f1a-457b-b417-a7c697cffdce"
}, - "client_secret": "secret",
- "secrets": [
- {
- "id": 1,
- "name": "My Secret",
- "secret": "secret",
- "last_used_at": "2000-01-01T00:00:00Z",
- "created_at": "2000-01-01T00:00:00Z"
}
], - "created_at": "2000-01-01T00:00:00Z",
- "updated_at": "2000-01-01T00:00:00Z"
}ユーザーが所有するエッジを取得します。
| user_uuid required | string Example: 0932ff17-567c-4ac8-a40d-136357890f7b ユーザーのUUID |
| edge_uuid required | string Example: e920a50c-ddde-4571-b066-b568340de7cf エッジのUUID |
{- "uuid": "6b4f4bce-ba32-4ad9-b808-39e2d68b33ee",
- "name": "my-edge",
- "nickname": "My Edge",
- "description": "Description",
- "owner": {
- "user_uuid": "84693d9e-0f1a-457b-b417-a7c697cffdce"
}, - "client_secret": "secret",
- "secrets": [
- {
- "id": 1,
- "name": "My Secret",
- "secret": "secret",
- "last_used_at": "2000-01-01T00:00:00Z",
- "created_at": "2000-01-01T00:00:00Z"
}
], - "created_at": "2000-01-01T00:00:00Z",
- "updated_at": "2000-01-01T00:00:00Z"
}ユーザーが所有するエッジを更新します。
| user_uuid required | string Example: 0932ff17-567c-4ac8-a40d-136357890f7b ユーザーのUUID |
| edge_uuid required | string Example: e920a50c-ddde-4571-b066-b568340de7cf エッジのUUID |
| name | string [ 1 .. 255 ] characters ^[0-9a-zA-Z-_]*$ エッジの名前 |
| nickname | string <= 511 characters エッジの表示名 |
| description | string <= 65535 characters エッジの説明 |
{- "name": "edge_name",
- "nickname": "nickname",
- "description": "description"
}{- "uuid": "6b4f4bce-ba32-4ad9-b808-39e2d68b33ee",
- "name": "my-edge",
- "nickname": "My Edge",
- "description": "Description",
- "owner": {
- "user_uuid": "84693d9e-0f1a-457b-b417-a7c697cffdce"
}, - "client_secret": "secret",
- "secrets": [
- {
- "id": 1,
- "name": "My Secret",
- "secret": "secret",
- "last_used_at": "2000-01-01T00:00:00Z",
- "created_at": "2000-01-01T00:00:00Z"
}
], - "created_at": "2000-01-01T00:00:00Z",
- "updated_at": "2000-01-01T00:00:00Z"
}EdgeのOAuth2クライアントシークレットを作成します。
| edge_uuid required | string Example: e920a50c-ddde-4571-b066-b568340de7cf エッジのUUID |
| name | string [ 1 .. 511 ] characters Secretの名前 |
{- "name": "MySecret"
}{- "id": 1,
- "name": "My Secret",
- "secret": "secret",
- "last_used_at": "2000-01-01T00:00:00Z",
- "created_at": "2000-01-01T00:00:00Z"
}ClientSecret の name を更新します。 リクエストボディに name フィールドが含まれない場合は何も変更せず現状を返します (PATCH 純粋意味)。
| edge_uuid required | string Example: e920a50c-ddde-4571-b066-b568340de7cf エッジのUUID |
| secret_id required | integer Example: 1 OAuth2クライアントシークレットのID |
| name | string [ 1 .. 511 ] characters ClientSecret の表示名 (省略時は変更なし、no-op)。 空文字や 512 文字以上は 400 Bad Request。 NUL バイト (\x00) を含む値も 400 で拒否される (PostgreSQL varchar 制約)。 |
{- "name": "production-key"
}{- "id": 1,
- "name": "My Secret",
- "secret": "secret",
- "last_used_at": "2000-01-01T00:00:00Z",
- "created_at": "2000-01-01T00:00:00Z"
}自分(ユーザー)が所有するエッジのリストを取得します。
{- "items": [
- {
- "uuid": "6b4f4bce-ba32-4ad9-b808-39e2d68b33ee",
- "name": "my-edge",
- "nickname": "My Edge",
- "description": "Description",
- "owner": {
- "user_uuid": "84693d9e-0f1a-457b-b417-a7c697cffdce"
}, - "client_secret": "secret",
- "secrets": [
- {
- "id": 1,
- "name": "My Secret",
- "secret": "secret",
- "last_used_at": "2000-01-01T00:00:00Z",
- "created_at": "2000-01-01T00:00:00Z"
}
], - "created_at": "2000-01-01T00:00:00Z",
- "updated_at": "2000-01-01T00:00:00Z"
}
], - "page": {
- "next": true,
- "prev": true,
- "next_page": 0,
- "prev_page": 0,
- "total_page": 1,
- "total_count": 1
}
}新しいエッジを作成し、自分(ユーザー)を所有者に設定します。
| name required | string [ 1 .. 255 ] characters ^[0-9a-zA-Z-_]*$ エッジの名前 |
| nickname | string <= 511 characters エッジの表示名 |
| description | string <= 65535 characters エッジの説明 |
{- "name": "edge",
- "nickname": "nickname",
- "description": "description"
}{- "uuid": "6b4f4bce-ba32-4ad9-b808-39e2d68b33ee",
- "name": "my-edge",
- "nickname": "My Edge",
- "description": "Description",
- "owner": {
- "user_uuid": "84693d9e-0f1a-457b-b417-a7c697cffdce"
}, - "client_secret": "secret",
- "secrets": [
- {
- "id": 1,
- "name": "My Secret",
- "secret": "secret",
- "last_used_at": "2000-01-01T00:00:00Z",
- "created_at": "2000-01-01T00:00:00Z"
}
], - "created_at": "2000-01-01T00:00:00Z",
- "updated_at": "2000-01-01T00:00:00Z"
}自分(ユーザー)が所有するエッジを取得します。
| edge_uuid required | string Example: e920a50c-ddde-4571-b066-b568340de7cf エッジのUUID |
{- "uuid": "6b4f4bce-ba32-4ad9-b808-39e2d68b33ee",
- "name": "my-edge",
- "nickname": "My Edge",
- "description": "Description",
- "owner": {
- "user_uuid": "84693d9e-0f1a-457b-b417-a7c697cffdce"
}, - "client_secret": "secret",
- "secrets": [
- {
- "id": 1,
- "name": "My Secret",
- "secret": "secret",
- "last_used_at": "2000-01-01T00:00:00Z",
- "created_at": "2000-01-01T00:00:00Z"
}
], - "created_at": "2000-01-01T00:00:00Z",
- "updated_at": "2000-01-01T00:00:00Z"
}指定したUUIDを持つ新しいエッジを作成し、自分を所有者に設定します。
| edge_uuid required | string Example: e920a50c-ddde-4571-b066-b568340de7cf エッジのUUID |
| name required | string [ 1 .. 255 ] characters ^[0-9a-zA-Z-_]*$ エッジの名前 |
| nickname | string <= 511 characters エッジの表示名 |
| description | string <= 65535 characters エッジの説明 |
{- "name": "edge-with-uuid",
- "nickname": "nickname",
- "description": "description"
}{- "uuid": "6b4f4bce-ba32-4ad9-b808-39e2d68b33ee",
- "name": "my-edge",
- "nickname": "My Edge",
- "description": "Description",
- "owner": {
- "user_uuid": "84693d9e-0f1a-457b-b417-a7c697cffdce"
}, - "client_secret": "secret",
- "secrets": [
- {
- "id": 1,
- "name": "My Secret",
- "secret": "secret",
- "last_used_at": "2000-01-01T00:00:00Z",
- "created_at": "2000-01-01T00:00:00Z"
}
], - "created_at": "2000-01-01T00:00:00Z",
- "updated_at": "2000-01-01T00:00:00Z"
}自分(ユーザー)が所有するエッジを更新します。
| edge_uuid required | string Example: e920a50c-ddde-4571-b066-b568340de7cf エッジのUUID |
| name | string [ 1 .. 255 ] characters ^[0-9a-zA-Z-_]*$ エッジの名前 |
| nickname | string <= 511 characters エッジの表示名 |
| description | string <= 65535 characters エッジの説明 |
{- "name": "edge_name",
- "nickname": "nickname",
- "description": "description"
}{- "uuid": "6b4f4bce-ba32-4ad9-b808-39e2d68b33ee",
- "name": "my-edge",
- "nickname": "My Edge",
- "description": "Description",
- "owner": {
- "user_uuid": "84693d9e-0f1a-457b-b417-a7c697cffdce"
}, - "client_secret": "secret",
- "secrets": [
- {
- "id": 1,
- "name": "My Secret",
- "secret": "secret",
- "last_used_at": "2000-01-01T00:00:00Z",
- "created_at": "2000-01-01T00:00:00Z"
}
], - "created_at": "2000-01-01T00:00:00Z",
- "updated_at": "2000-01-01T00:00:00Z"
}EdgeのOAuth2クライアントシークレットを作成します。
| edge_uuid required | string Example: e920a50c-ddde-4571-b066-b568340de7cf エッジのUUID |
| name | string [ 1 .. 511 ] characters Secretの名前 |
{- "name": "MySecret"
}{- "id": 1,
- "name": "My Secret",
- "secret": "secret",
- "last_used_at": "2000-01-01T00:00:00Z",
- "created_at": "2000-01-01T00:00:00Z"
}ClientSecret の name を更新します。 リクエストボディに name フィールドが含まれない場合は何も変更せず現状を返します (PATCH 純粋意味)。
| edge_uuid required | string Example: e920a50c-ddde-4571-b066-b568340de7cf エッジのUUID |
| secret_id required | integer Example: 1 OAuth2クライアントシークレットのID |
| name | string [ 1 .. 511 ] characters ClientSecret の表示名 (省略時は変更なし、no-op)。 空文字や 512 文字以上は 400 Bad Request。 NUL バイト (\x00) を含む値も 400 で拒否される (PostgreSQL varchar 制約)。 |
{- "name": "production-key"
}{- "id": 1,
- "name": "My Secret",
- "secret": "secret",
- "last_used_at": "2000-01-01T00:00:00Z",
- "created_at": "2000-01-01T00:00:00Z"
}自分(ユーザー)が所属するグループのリストを取得します。
| page | integer >= 1 Default: 1 取得するページの番号 |
| per_page | integer <= 200 Default: 30 1回のリクエストで取得する件数 |
| sort | string Enum: "created_at" "created_at+" "created_at-" "updated_at" "updated_at+" "updated_at-" "name" "name+" "name-" 並べ替えに使用するキー。接尾辞 |
{- "items": [ ],
- "page": {
- "next": false,
- "prev": false,
- "total_page": 1,
- "total_count": 1
}
}グループのリストを取得します。
| page | integer >= 1 Default: 1 取得するページの番号 |
| per_page | integer <= 200 Default: 30 1回のリクエストで取得する件数 |
| sort | string Enum: "created_at" "created_at+" "created_at-" "updated_at" "updated_at+" "updated_at-" "name" "name+" "name-" 並べ替えに使用するキー。接尾辞 |
{- "items": [ ],
- "page": {
- "next": false,
- "prev": false,
- "total_page": 1,
- "total_count": 1
}
}グループを作成します。
| name required | string (GroupName) [ 1 .. 255 ] characters グループの名前 |
{- "name": "my-group"
}{- "uuid": "6b4f4bce-ba32-4ad9-b808-39e2d68b33ee",
- "name": "my-group",
- "created_at": "2000-01-01T00:00:00Z",
- "updated_at": "2000-01-01T00:00:00Z"
}グループを取得します。
| group_uuid required | string Example: 6b4f4bce-ba32-4ad9-b808-39e2d68b33ee グループのUUID |
{- "uuid": "0932ff17-567c-4ac8-a40d-136357890f7b",
- "parent_group_uuid": "76b35658-9d77-40d0-8ef8-5c3f520db30d",
- "name": "intdash",
- "created_at": "2000-01-01T00:00:00Z",
- "updated_at": "2000-01-01T00:00:00Z"
}グループを更新します。
| group_uuid required | string Example: 6b4f4bce-ba32-4ad9-b808-39e2d68b33ee グループのUUID |
| name | string (GroupName) [ 1 .. 255 ] characters グループの名前 |
{- "name": "my-group"
}{- "uuid": "0932ff17-567c-4ac8-a40d-136357890f7b",
- "parent_group_uuid": "76b35658-9d77-40d0-8ef8-5c3f520db30d",
- "name": "intdash",
- "created_at": "2000-01-01T00:00:00Z",
- "updated_at": "2000-01-01T00:00:00Z"
}サブグループを取得します。
| group_uuid required | string Example: 6b4f4bce-ba32-4ad9-b808-39e2d68b33ee グループのUUID |
| page | integer >= 1 Default: 1 取得するページの番号 |
| per_page | integer <= 200 Default: 30 1回のリクエストで取得する件数 |
| sort | string Enum: "created_at" "created_at+" "created_at-" "updated_at" "updated_at+" "updated_at-" "name" "name+" "name-" 並べ替えに使用するキー。接尾辞 |
{- "items": [ ],
- "page": {
- "next": false,
- "prev": false,
- "total_page": 1,
- "total_count": 1
}
}サブグループを作成します。
| group_uuid required | string Example: 6b4f4bce-ba32-4ad9-b808-39e2d68b33ee グループのUUID |
| name required | string (GroupName) [ 1 .. 255 ] characters グループの名前 |
{- "name": "my-group"
}{- "uuid": "6b4f4bce-ba32-4ad9-b808-39e2d68b33ee",
- "name": "my-group",
- "created_at": "2000-01-01T00:00:00Z",
- "updated_at": "2000-01-01T00:00:00Z"
}グループメンバーリストを取得します。
| group_uuid required | string Example: 6b4f4bce-ba32-4ad9-b808-39e2d68b33ee グループのUUID |
| is_owner | boolean
|
| user_uuid | Array of strings Example: user_uuid=b7f5f259-6a63-4a26-bfa3-e15240cbc0b7 ユーザーのUUID |
| page | integer >= 1 Default: 1 取得するページの番号 |
| per_page | integer <= 200 Default: 30 1回のリクエストで取得する件数 |
| sort | string Enum: "created_at" "created_at+" "created_at-" "updated_at" "updated_at+" "updated_at-" "name" "name+" "name-" 並べ替えに使用するキー。接尾辞 |
{- "items": [ ],
- "page": {
- "next": false,
- "prev": false,
- "total_page": 1,
- "total_count": 1
}
}グループメンバーを追加します。
| group_uuid required | string Example: 6b4f4bce-ba32-4ad9-b808-39e2d68b33ee グループのUUID |
| user_email_address | string <= 512 characters ユーザーのメールアドレス。 |
| user_uuid | string <= 36 characters ユーザーのUUID。 |
| role_uuids required | Array of strings (RoleUUIDs) [ items <= 36 characters ] ユーザーに割り当てるロールのUUID。オーナーのロールUUIDは変更できません。 |
{- "user_email_address": "intdash@example.com",
- "user_uuid": "0932ff17-567c-4ac8-a40d-136357890f7b",
- "role_uuids": [
- "6b4f4bce-ba32-4ad9-b808-39e2d68b33ee"
]
}{- "user_uuid": "6b4f4bce-ba32-4ad9-b808-39e2d68b33ee",
- "name": "username",
- "emails": [
- {
- "id": 1,
- "address": "intdash@example.com",
- "verified": false,
- "created_at": "2000-01-01T00:00:00Z",
- "updated_at": "2000-01-01T00:00:00Z"
}
], - "inherited_role_uuids": [
- "b344c708-40bc-4088-8868-2701c41d9dc2"
], - "role_uuids": [
- "59530a1d-4491-4b24-b6c6-121b4c24bb21"
], - "is_owner": true,
- "created_at": "2000-01-01T00:00:00Z",
- "updated_at": "2000-01-01T00:00:00Z"
}グループメンバーを取得します。
| group_uuid required | string Example: 6b4f4bce-ba32-4ad9-b808-39e2d68b33ee グループのUUID |
| user_uuid required | string Example: 0932ff17-567c-4ac8-a40d-136357890f7b ユーザーのUUID |
{- "user_uuid": "6b4f4bce-ba32-4ad9-b808-39e2d68b33ee",
- "name": "username",
- "emails": [
- {
- "id": 1,
- "address": "intdash@example.com",
- "verified": false,
- "created_at": "2000-01-01T00:00:00Z",
- "updated_at": "2000-01-01T00:00:00Z"
}
], - "inherited_role_uuids": [
- "b344c708-40bc-4088-8868-2701c41d9dc2"
], - "role_uuids": [
- "59530a1d-4491-4b24-b6c6-121b4c24bb21"
], - "is_owner": true,
- "created_at": "2000-01-01T00:00:00Z",
- "updated_at": "2000-01-01T00:00:00Z"
}グループメンバーを更新します。
| group_uuid required | string Example: 6b4f4bce-ba32-4ad9-b808-39e2d68b33ee グループのUUID |
| user_uuid required | string Example: 0932ff17-567c-4ac8-a40d-136357890f7b ユーザーのUUID |
| role_uuids | Array of strings (RoleUUIDs) [ items <= 36 characters ] ユーザーに割り当てるロールのUUID。オーナーのロールUUIDは変更できません。 |
{- "role_uuids": [
- "6b4f4bce-ba32-4ad9-b808-39e2d68b33ee"
]
}{- "user_uuid": "6b4f4bce-ba32-4ad9-b808-39e2d68b33ee",
- "name": "username",
- "emails": [
- {
- "id": 1,
- "address": "intdash@example.com",
- "verified": false,
- "created_at": "2000-01-01T00:00:00Z",
- "updated_at": "2000-01-01T00:00:00Z"
}
], - "inherited_role_uuids": [
- "b344c708-40bc-4088-8868-2701c41d9dc2"
], - "role_uuids": [
- "59530a1d-4491-4b24-b6c6-121b4c24bb21"
], - "is_owner": true,
- "created_at": "2000-01-01T00:00:00Z",
- "updated_at": "2000-01-01T00:00:00Z"
}グループメンバーを除名します。
| group_uuid required | string Example: 6b4f4bce-ba32-4ad9-b808-39e2d68b33ee グループのUUID |
| user_uuid required | string Example: 0932ff17-567c-4ac8-a40d-136357890f7b ユーザーのUUID |
{- "type": "forbidden",
- "title": "unremovable owner member"
}オーナー属性を追加します。オーナー属性を追加したメンバーは自動的にそのグループにおける全ての権限が付与されます。
| group_uuid required | string Example: 6b4f4bce-ba32-4ad9-b808-39e2d68b33ee グループのUUID |
| user_uuid required | string Example: 0932ff17-567c-4ac8-a40d-136357890f7b ユーザーのUUID |
{- "user_uuid": "6b4f4bce-ba32-4ad9-b808-39e2d68b33ee",
- "name": "username",
- "emails": [
- {
- "id": 1,
- "address": "intdash@example.com",
- "verified": false,
- "created_at": "2000-01-01T00:00:00Z",
- "updated_at": "2000-01-01T00:00:00Z"
}
], - "inherited_role_uuids": [
- "b344c708-40bc-4088-8868-2701c41d9dc2"
], - "role_uuids": [
- "59530a1d-4491-4b24-b6c6-121b4c24bb21"
], - "is_owner": true,
- "created_at": "2000-01-01T00:00:00Z",
- "updated_at": "2000-01-01T00:00:00Z"
}オーナー属性を取り除きます。
| group_uuid required | string Example: 6b4f4bce-ba32-4ad9-b808-39e2d68b33ee グループのUUID |
| user_uuid required | string Example: 0932ff17-567c-4ac8-a40d-136357890f7b ユーザーのUUID |
{- "type": "forbidden",
- "title": "project must have at least one owner."
}自分(ユーザー)が所属するプロジェクトのリストを取得します。
| page | integer >= 1 Default: 1 取得するページの番号 |
| per_page | integer <= 200 Default: 30 1回のリクエストで取得する件数 |
| sort | string Enum: "created_at" "created_at+" "created_at-" "updated_at" "updated_at+" "updated_at-" "name" "name+" "name-" 並べ替えに使用するキー。接尾辞 |
{- "items": [
- {
- "uuid": "6b4f4bce-ba32-4ad9-b808-39e2d68b33ee",
- "parent_group_uuid": "0932ff17-567c-4ac8-a40d-136357890f7b",
- "name": "intdash",
- "created_at": "2000-01-01T00:00:00Z",
- "updated_at": "2000-01-01T00:00:00Z"
}
], - "page": {
- "next": true,
- "prev": true,
- "next_page": 0,
- "prev_page": 0,
- "total_page": 1,
- "total_count": 1
}
}プロジェクトのリストを取得します。
| group_uuid required | string Example: 6b4f4bce-ba32-4ad9-b808-39e2d68b33ee グループのUUID |
| page | integer >= 1 Default: 1 取得するページの番号 |
| per_page | integer <= 200 Default: 30 1回のリクエストで取得する件数 |
| sort | string Enum: "created_at" "created_at+" "created_at-" "updated_at" "updated_at+" "updated_at-" "name" "name+" "name-" 並べ替えに使用するキー。接尾辞 |
{- "items": [ ],
- "page": {
- "next": false,
- "prev": false,
- "total_page": 1,
- "total_count": 1
}
}プロジェクトを作成します。
| group_uuid required | string Example: 6b4f4bce-ba32-4ad9-b808-39e2d68b33ee グループのUUID |
| name required | string (ProjectName) [ 1 .. 255 ] characters プロジェクトの名前 |
{- "name": "my-project"
}Created API Token
{- "uuid": "6b4f4bce-ba32-4ad9-b808-39e2d68b33ee",
- "parent_group_uuid": "0932ff17-567c-4ac8-a40d-136357890f7b",
- "name": "my-project",
- "created_at": "2000-01-01T00:00:00Z",
- "updated_at": "2000-01-01T00:00:00Z"
}プロジェクトのリストを取得します。
| since_created_at | string <date-time> Example: since_created_at=2006-01-02T15:04:05.999999999Z 指定した時刻より後に作成されたリソースを取得します。 |
| page | integer >= 1 Default: 1 取得するページの番号 |
| per_page | integer <= 200 Default: 30 1回のリクエストで取得する件数 |
| sort | string Enum: "created_at" "created_at+" "created_at-" "updated_at" "updated_at+" "updated_at-" "name" "name+" "name-" 並べ替えに使用するキー。接尾辞 |
{- "items": [
- {
- "uuid": "6b4f4bce-ba32-4ad9-b808-39e2d68b33ee",
- "parent_group_uuid": "0932ff17-567c-4ac8-a40d-136357890f7b",
- "name": "intdash",
- "created_at": "2000-01-01T00:00:00Z",
- "updated_at": "2000-01-01T00:00:00Z"
}
], - "page": {
- "next": true,
- "prev": true,
- "next_page": 0,
- "prev_page": 0,
- "total_page": 1,
- "total_count": 1
}
}プロジェクトを取得します。
| project_uuid required | string Example: 0932ff17-567c-4ac8-a40d-136357890f7b プロジェクトのUUID |
{- "uuid": "6b4f4bce-ba32-4ad9-b808-39e2d68b33ee",
- "parent_group_uuid": "0932ff17-567c-4ac8-a40d-136357890f7b",
- "name": "intdash",
- "created_at": "2000-01-01T00:00:00Z",
- "updated_at": "2000-01-01T00:00:00Z"
}プロジェクトを更新します。
| project_uuid required | string Example: 0932ff17-567c-4ac8-a40d-136357890f7b プロジェクトのUUID |
| name required | string (ProjectName) [ 1 .. 255 ] characters プロジェクトの名前 |
{- "name": "my-project"
}{- "uuid": "6b4f4bce-ba32-4ad9-b808-39e2d68b33ee",
- "parent_group_uuid": "0932ff17-567c-4ac8-a40d-136357890f7b",
- "name": "intdash",
- "created_at": "2000-01-01T00:00:00Z",
- "updated_at": "2000-01-01T00:00:00Z"
}プロジェクトを削除します。プロジェクトを削除できるのはプロジェクトのオーナーのみです。
| project_uuid required | string Example: 0932ff17-567c-4ac8-a40d-136357890f7b プロジェクトのUUID |
{- "type": "forbidden",
- "title": "You cannot delete a project. Because you are not a project owner."
}プロジェクトメンバーリストを取得します。
| project_uuid required | string Example: 0932ff17-567c-4ac8-a40d-136357890f7b プロジェクトのUUID |
| user_uuid | Array of strings Example: user_uuid=b7f5f259-6a63-4a26-bfa3-e15240cbc0b7 ユーザーのUUID |
| is_owner | boolean
|
| page | integer >= 1 Default: 1 取得するページの番号 |
| per_page | integer <= 200 Default: 30 1回のリクエストで取得する件数 |
| sort | string Enum: "created_at" "created_at+" "created_at-" "updated_at" "updated_at+" "updated_at-" "name" "name+" "name-" 並べ替えに使用するキー。接尾辞 |
{- "items": [ ],
- "page": {
- "next": false,
- "prev": false,
- "total_page": 1,
- "total_count": 1
}
}プロジェクトメンバーを追加します。
| project_uuid required | string Example: 0932ff17-567c-4ac8-a40d-136357890f7b プロジェクトのUUID |
| user_email_address | string <= 512 characters ユーザーのメールアドレス。 |
| user_uuid | string <= 36 characters ユーザーのUUID。 |
| role_uuids required | Array of strings[ items <= 36 characters ] ユーザーに割り当てるロールのUUID |
{- "user_email_address": "intdash@example.com",
- "user_uuid": "0932ff17-567c-4ac8-a40d-136357890f7b",
- "role_uuids": [
- "6b4f4bce-ba32-4ad9-b808-39e2d68b33ee"
]
}{- "user_uuid": "6b4f4bce-ba32-4ad9-b808-39e2d68b33ee",
- "name": "username",
- "emails": [
- {
- "id": 1,
- "address": "intdash@example.com",
- "verified": false,
- "created_at": "2000-01-01T00:00:00Z",
- "updated_at": "2000-01-01T00:00:00Z"
}
], - "inherited_role_uuids": [
- "b344c708-40bc-4088-8868-2701c41d9dc2"
], - "role_uuids": [
- "59530a1d-4491-4b24-b6c6-121b4c24bb21"
], - "is_owner": true,
- "created_at": "2000-01-01T00:00:00Z",
- "updated_at": "2000-01-01T00:00:00Z"
}プロジェクトメンバーを取得します。
| project_uuid required | string Example: 0932ff17-567c-4ac8-a40d-136357890f7b プロジェクトのUUID |
| user_uuid required | string Example: 0932ff17-567c-4ac8-a40d-136357890f7b ユーザーのUUID |
{- "user_uuid": "6b4f4bce-ba32-4ad9-b808-39e2d68b33ee",
- "name": "username",
- "emails": [
- {
- "id": 1,
- "address": "intdash@example.com",
- "verified": false,
- "created_at": "2000-01-01T00:00:00Z",
- "updated_at": "2000-01-01T00:00:00Z"
}
], - "inherited_role_uuids": [
- "b344c708-40bc-4088-8868-2701c41d9dc2"
], - "role_uuids": [
- "59530a1d-4491-4b24-b6c6-121b4c24bb21"
], - "is_owner": true,
- "created_at": "2000-01-01T00:00:00Z",
- "updated_at": "2000-01-01T00:00:00Z"
}プロジェクトメンバーを更新します。
| project_uuid required | string Example: 0932ff17-567c-4ac8-a40d-136357890f7b プロジェクトのUUID |
| user_uuid required | string Example: 0932ff17-567c-4ac8-a40d-136357890f7b ユーザーのUUID |
| role_uuids | Array of strings (RoleUUIDs) [ items <= 36 characters ] ユーザーに割り当てるロールのUUID。オーナーのロールUUIDは変更できません。 |
{- "role_uuids": [
- "6b4f4bce-ba32-4ad9-b808-39e2d68b33ee"
]
}{- "user_uuid": "6b4f4bce-ba32-4ad9-b808-39e2d68b33ee",
- "name": "username",
- "emails": [
- {
- "id": 1,
- "address": "intdash@example.com",
- "verified": false,
- "created_at": "2000-01-01T00:00:00Z",
- "updated_at": "2000-01-01T00:00:00Z"
}
], - "inherited_role_uuids": [
- "b344c708-40bc-4088-8868-2701c41d9dc2"
], - "role_uuids": [
- "59530a1d-4491-4b24-b6c6-121b4c24bb21"
], - "is_owner": true,
- "created_at": "2000-01-01T00:00:00Z",
- "updated_at": "2000-01-01T00:00:00Z"
}プロジェクトからメンバーを外します。
| project_uuid required | string Example: 0932ff17-567c-4ac8-a40d-136357890f7b プロジェクトのUUID |
| user_uuid required | string Example: 0932ff17-567c-4ac8-a40d-136357890f7b ユーザーのUUID |
{- "type": "forbidden",
- "title": "unremovable owner member"
}オーナー属性を追加します。オーナー属性を追加したメンバーは自動的にそのプロジェクトにおける全ての権限が付与されます。
| project_uuid required | string Example: 0932ff17-567c-4ac8-a40d-136357890f7b プロジェクトのUUID |
| user_uuid required | string Example: 0932ff17-567c-4ac8-a40d-136357890f7b ユーザーのUUID |
{- "user_uuid": "6b4f4bce-ba32-4ad9-b808-39e2d68b33ee",
- "name": "username",
- "emails": [
- {
- "id": 1,
- "address": "intdash@example.com",
- "verified": false,
- "created_at": "2000-01-01T00:00:00Z",
- "updated_at": "2000-01-01T00:00:00Z"
}
], - "inherited_role_uuids": [
- "b344c708-40bc-4088-8868-2701c41d9dc2"
], - "role_uuids": [
- "59530a1d-4491-4b24-b6c6-121b4c24bb21"
], - "is_owner": true,
- "created_at": "2000-01-01T00:00:00Z",
- "updated_at": "2000-01-01T00:00:00Z"
}オーナー属性を取り除きます。
| project_uuid required | string Example: 0932ff17-567c-4ac8-a40d-136357890f7b プロジェクトのUUID |
| user_uuid required | string Example: 0932ff17-567c-4ac8-a40d-136357890f7b ユーザーのUUID |
{- "type": "forbidden",
- "title": "project must have at least one owner."
}プロジェクトに所属するエッジのリストを取得します。
| project_uuid required | string Example: 0932ff17-567c-4ac8-a40d-136357890f7b プロジェクトのUUID |
| edge_uuid | Array of strings Example: edge_uuid=b7f5f259-6a63-4a26-bfa3-e15240cbc0b7 エッジのUUID |
| name | Array of strings Example: name=edge-name エッジの名前による部分一致検索(OR条件) |
| page | integer >= 1 Default: 1 取得するページの番号 |
| per_page | integer <= 200 Default: 30 1回のリクエストで取得する件数 |
| sort | string Enum: "created_at" "created_at+" "created_at-" "updated_at" "updated_at+" "updated_at-" "nickname" "nickname+" "nickname-" 並べ替えに使用するキー。接尾辞 |
{- "items": [ ],
- "page": {
- "next": false,
- "prev": false,
- "total_page": 1,
- "total_count": 1
}
}エッジをプロジェクトに追加します。
| project_uuid required | string Example: 0932ff17-567c-4ac8-a40d-136357890f7b プロジェクトのUUID |
| edge_name required | string [ 1 .. 255 ] characters 追加したいエッジの名前 |
| nickname required | string (ProjectEdgeNickname) [ 1 .. 255 ] characters プロジェクトにおけるエッジのニックネーム |
{- "edge_name": "edge-name",
- "nickname": "Edge Nickname"
}{- "edge_uuid": "756c0e45-21e3-4942-92d9-4ef44a0add26",
- "name": "edge-name",
- "nickname": "Edge Nickname",
- "created_at": "2000-01-01T00:00:00Z",
- "updated_at": "2000-01-01T00:00:00Z"
}プロジェクトに所属するエッジを取得します。
| project_uuid required | string Example: 0932ff17-567c-4ac8-a40d-136357890f7b プロジェクトのUUID |
| edge_uuid required | string Example: e920a50c-ddde-4571-b066-b568340de7cf エッジのUUID |
{- "edge_uuid": "756c0e45-21e3-4942-92d9-4ef44a0add26",
- "name": "edge-name",
- "nickname": "Edge Nickname",
- "created_at": "2000-01-01T00:00:00Z",
- "updated_at": "2000-01-01T00:00:00Z"
}プロジェクトエッジを更新します。
| project_uuid required | string Example: 0932ff17-567c-4ac8-a40d-136357890f7b プロジェクトのUUID |
| edge_uuid required | string Example: e920a50c-ddde-4571-b066-b568340de7cf エッジのUUID |
| nickname | string (ProjectEdgeNickname) [ 1 .. 255 ] characters プロジェクトにおけるエッジのニックネーム |
{- "nickname": "Edge Nickname"
}{- "edge_uuid": "756c0e45-21e3-4942-92d9-4ef44a0add26",
- "name": "edge-name",
- "nickname": "Edge Nickname",
- "created_at": "2000-01-01T00:00:00Z",
- "updated_at": "2000-01-01T00:00:00Z"
}プロジェクトに紐づくOAuth2クライアントの管理APIです。
プロジェクトクライアントは現在 client_credentials グラントタイプをサポートしており、
プロジェクトのリソースにアクセスするために使用されます。
将来的には authorization_code グラントタイプもサポート予定です。
指定可能なスコープはプロジェクト関連のスコープに制限されています。
プロジェクトに紐づくOAuth2クライアントのリストを取得します。
| project_uuid required | string Example: 0932ff17-567c-4ac8-a40d-136357890f7b プロジェクトのUUID |
{- "items": [
- {
- "client_id": "4b54d475-0607-441e-b252-944a97337a9e",
- "name": "My Project Client",
- "client_secret": "string",
- "grant_types": [
- "authorization_code"
], - "token_endpoint_auth_method": "client_secret_post",
- "redirect_uris": [
- "string"
], - "response_types": [
- "code"
], - "scopes": [
- "me:r"
], - "role_uuids": [
- "6b4f4bce-ba32-4ad9-b808-39e2d68b33ee"
], - "project_uuid": "0932ff17-567c-4ac8-a40d-136357890f7b",
- "secrets": [
- {
- "id": 1,
- "name": "My Secret",
- "secret": "secret",
- "last_used_at": "2000-01-01T00:00:00Z",
- "created_at": "2000-01-01T00:00:00Z"
}
], - "created_at": "2000-01-01T00:00:00Z",
- "updated_at": "2000-01-01T00:00:00Z"
}
], - "page": {
- "next": true,
- "prev": true,
- "next_page": 0,
- "prev_page": 0,
- "total_page": 1,
- "total_count": 1
}
}プロジェクトに紐づくOAuth2クライアントを作成します。
プロジェクトクライアントは client_credentials および authorization_code グラントタイプをサポートしており、
プロジェクトのリソースにアクセスするために使用されます。
作成時のレスポンスには client_secret が含まれます。
このシークレットは再表示できないため、安全に保管してください。
プロジェクトクライアントには、プロジェクト関連のスコープのみ設定できます。 詳細は CreateProjectOAuth2ClientRequest の scopes フィールドを参照してください。
| project_uuid required | string Example: 0932ff17-567c-4ac8-a40d-136357890f7b プロジェクトのUUID |
| name required | string [ 1 .. 255 ] characters 名前 |
| grant_types | Array of strings Default: ["client_credentials"] Items Value: "client_credentials" グラントタイプ(未指定の場合は |
| token_endpoint_auth_method | string Default: "client_secret_post" Enum: "client_secret_post" "client_secret_basic" トークンエンドポイントの認証方式 |
| scopes | Array of strings スコープ(未指定の場合はデフォルトスコープが設定されます)。 以下のスコープのみ指定可能です:
上記以外のスコープを指定した場合は400エラーが返却されます。 |
{- "name": "My Project Client",
- "grant_types": [
- "client_credentials"
], - "token_endpoint_auth_method": "client_secret_post",
- "scopes": [
- "me:r"
]
}{- "client_id": "4b54d475-0607-441e-b252-944a97337a9e",
- "name": "My Project Client",
- "client_secret": "string",
- "grant_types": [
- "authorization_code"
], - "token_endpoint_auth_method": "client_secret_post",
- "redirect_uris": [
- "string"
], - "response_types": [
- "code"
], - "scopes": [
- "me:r"
], - "role_uuids": [
- "6b4f4bce-ba32-4ad9-b808-39e2d68b33ee"
], - "project_uuid": "0932ff17-567c-4ac8-a40d-136357890f7b",
- "secrets": [
- {
- "id": 1,
- "name": "My Secret",
- "secret": "secret",
- "last_used_at": "2000-01-01T00:00:00Z",
- "created_at": "2000-01-01T00:00:00Z"
}
], - "created_at": "2000-01-01T00:00:00Z",
- "updated_at": "2000-01-01T00:00:00Z"
}プロジェクトに紐づくOAuth2クライアントを取得します。
| project_uuid required | string Example: 0932ff17-567c-4ac8-a40d-136357890f7b プロジェクトのUUID |
| client_id required | string Example: 039b8ee2-8edc-46e4-9a88-4d03bac142f7 OAuth2クライアントID |
{- "client_id": "4b54d475-0607-441e-b252-944a97337a9e",
- "name": "My Project Client",
- "client_secret": "string",
- "grant_types": [
- "authorization_code"
], - "token_endpoint_auth_method": "client_secret_post",
- "redirect_uris": [
- "string"
], - "response_types": [
- "code"
], - "scopes": [
- "me:r"
], - "role_uuids": [
- "6b4f4bce-ba32-4ad9-b808-39e2d68b33ee"
], - "project_uuid": "0932ff17-567c-4ac8-a40d-136357890f7b",
- "secrets": [
- {
- "id": 1,
- "name": "My Secret",
- "secret": "secret",
- "last_used_at": "2000-01-01T00:00:00Z",
- "created_at": "2000-01-01T00:00:00Z"
}
], - "created_at": "2000-01-01T00:00:00Z",
- "updated_at": "2000-01-01T00:00:00Z"
}プロジェクトに紐づくOAuth2クライアントを更新します。
| project_uuid required | string Example: 0932ff17-567c-4ac8-a40d-136357890f7b プロジェクトのUUID |
| client_id required | string Example: 039b8ee2-8edc-46e4-9a88-4d03bac142f7 OAuth2クライアントID |
| name | string [ 1 .. 255 ] characters 名前 |
| grant_types | Array of strings Items Value: "client_credentials" グラントタイプ。 |
| token_endpoint_auth_method | string Enum: "client_secret_post" "client_secret_basic" トークンエンドポイントの認証方式 |
| scopes | Array of strings スコープ。 以下のスコープのみ指定可能です:
上記以外のスコープを指定した場合は400エラーが返却されます。 |
{- "name": "My Updated Project Client",
- "grant_types": [
- "client_credentials"
], - "token_endpoint_auth_method": "client_secret_post",
- "scopes": [
- "me:r"
]
}{- "client_id": "4b54d475-0607-441e-b252-944a97337a9e",
- "name": "My Project Client",
- "client_secret": "string",
- "grant_types": [
- "authorization_code"
], - "token_endpoint_auth_method": "client_secret_post",
- "redirect_uris": [
- "string"
], - "response_types": [
- "code"
], - "scopes": [
- "me:r"
], - "role_uuids": [
- "6b4f4bce-ba32-4ad9-b808-39e2d68b33ee"
], - "project_uuid": "0932ff17-567c-4ac8-a40d-136357890f7b",
- "secrets": [
- {
- "id": 1,
- "name": "My Secret",
- "secret": "secret",
- "last_used_at": "2000-01-01T00:00:00Z",
- "created_at": "2000-01-01T00:00:00Z"
}
], - "created_at": "2000-01-01T00:00:00Z",
- "updated_at": "2000-01-01T00:00:00Z"
}プロジェクトに紐づくOAuth2クライアントを削除します。
| project_uuid required | string Example: 0932ff17-567c-4ac8-a40d-136357890f7b プロジェクトのUUID |
| client_id required | string Example: 039b8ee2-8edc-46e4-9a88-4d03bac142f7 OAuth2クライアントID |
プロジェクトクライアントのOAuth2クライアントシークレットを作成します。
| project_uuid required | string Example: 0932ff17-567c-4ac8-a40d-136357890f7b プロジェクトのUUID |
| client_id required | string Example: 039b8ee2-8edc-46e4-9a88-4d03bac142f7 OAuth2クライアントID |
| name | string [ 1 .. 511 ] characters Secretの名前 |
{- "name": "MySecret"
}{- "id": 1,
- "name": "My Secret",
- "secret": "secret",
- "last_used_at": "2000-01-01T00:00:00Z",
- "created_at": "2000-01-01T00:00:00Z"
}ClientSecret の name を更新します。 リクエストボディに name フィールドが含まれない場合は何も変更せず現状を返します (PATCH 純粋意味)。
| project_uuid required | string Example: 0932ff17-567c-4ac8-a40d-136357890f7b プロジェクトのUUID |
| client_id required | string Example: 039b8ee2-8edc-46e4-9a88-4d03bac142f7 OAuth2クライアントID |
| secret_id required | integer Example: 1 OAuth2クライアントシークレットのID |
| name | string [ 1 .. 511 ] characters ClientSecret の表示名 (省略時は変更なし、no-op)。 空文字や 512 文字以上は 400 Bad Request。 NUL バイト (\x00) を含む値も 400 で拒否される (PostgreSQL varchar 制約)。 |
{- "name": "production-key"
}{- "id": 1,
- "name": "My Secret",
- "secret": "secret",
- "last_used_at": "2000-01-01T00:00:00Z",
- "created_at": "2000-01-01T00:00:00Z"
}プロジェクトクライアントのOAuth2クライアントシークレットを削除します。
| project_uuid required | string Example: 0932ff17-567c-4ac8-a40d-136357890f7b プロジェクトのUUID |
| client_id required | string Example: 039b8ee2-8edc-46e4-9a88-4d03bac142f7 OAuth2クライアントID |
| secret_id required | integer Example: 1 OAuth2クライアントシークレットのID |
iSCP v2(WebSocket上でリアルタイムデータを送受信するintdash独自プロトコル)の使用を開始するためのエンドポイントです。 このリクエストを送ることで、プロトコルがWebSocketに切り替えられ、iSCP v2を使用できます。
iSCP v2の詳細については、 アプトポッド にお問い合わせください。
iSCPの認証チケットを発行します。
iSCPの認証チケットは、iSCPv2の接続リクエスト時の拡張用アクセストークンとして使用することができます。 また、認証チケットは有効期限内で一回のみ使用することができます。 一度使用した認証チケットは有効期限に関わらず使用することはできません。
{- "ticket": "VjVL9o7cj45Z1WJX-dPVZ0Z6i80xAfs6.AFVDLS0-iPfzKQN3m7j_pGpU7XSwliWopn9QvGtHf2Y=",
- "expired_at": "2019-08-24T14:15:22Z",
- "created_at": "2019-08-24T14:15:22Z"
}アップストリームを作成します。
| project_uuid required | string Example: c78ce0c1-eb57-4f93-a087-ee3b7cee5e06 プロジェクトのUUID |
| session_id required | string <uuid> |
| source_node_id required | string |
| persist required | boolean |
{- "session_id": "1ffd059c-17ea-40a8-8aef-70fd0307db82",
- "source_node_id": "string",
- "persist": true
}{- "stream_id": "173fd1b7-72c4-44c4-9244-55a0a167a352",
- "session_id": "1ffd059c-17ea-40a8-8aef-70fd0307db82",
- "source_node_id": "6e8dfe1c-0f26-4e14-bf90-f3c1eb146bf9",
- "persist": false,
- "created_at": "2019-08-24T14:15:22Z",
- "http": {
- "received_data_points": 0
}
}アップストリームをクローズします。
| project_uuid required | string Example: c78ce0c1-eb57-4f93-a087-ee3b7cee5e06 プロジェクトのUUID |
| stream_id required | string Example: e0b6bbbc-29f6-4682-bf17-8383b2ad846e ストリームのID |
| close_session required | boolean Default: false セッションをクローズします。 intdashではセッションは計測と紐づいており、 |
{- "close_session": false
}{- "stream_id": "173fd1b7-72c4-44c4-9244-55a0a167a352",
- "session_id": "1ffd059c-17ea-40a8-8aef-70fd0307db82",
- "source_node_id": "string",
- "persist": true,
- "http": {
- "final_sequence_number": 0,
- "received_data_points": 0,
- "updated_at": "2019-08-24T14:15:22Z"
}, - "created_at": "2019-08-24T14:15:22Z"
}アップストリームチャンクを送信します。
| project_uuid required | string Example: c78ce0c1-eb57-4f93-a087-ee3b7cee5e06 プロジェクトのUUID |
| stream_id required | string Example: e0b6bbbc-29f6-4682-bf17-8383b2ad846e ストリームのID |
required | Array of objects (DataPointGroups) |
{- "data_point_groups": [
- {
- "data_id": {
- "type": "string",
- "name": "custom/data-name"
}, - "data_points": [
- {
- "elapsed_time": 12345,
- "string": "string",
- "json": { },
- "bool": true,
- "float64": 0,
- "float64_array": [
- 0
], - "int64": 0,
- "int64_array": [
- 0
], - "vector_2d": {
- "x": 0,
- "y": 0
}, - "vector_3d": {
- "x": 0,
- "y": 0,
- "z": 0
}, - "vector_4d": {
- "x": 0,
- "y": 0,
- "z": 0,
- "w": 0
}, - "payload": "SGVsbG9JU0NQCg=="
}
]
}
]
}{- "stream_id": "173fd1b7-72c4-44c4-9244-55a0a167a352",
- "session_id": "1ffd059c-17ea-40a8-8aef-70fd0307db82",
- "source_node_id": "string",
- "persist": true,
- "http": {
- "final_sequence_number": 0,
- "received_data_points": 0,
- "updated_at": "2019-08-24T14:15:22Z"
}, - "created_at": "2019-08-24T14:15:22Z"
}メタデータを送信します。
| project_uuid required | string Example: c78ce0c1-eb57-4f93-a087-ee3b7cee5e06 プロジェクトのUUID |
| persist required | boolean |
| source_node_id required | string |
required | object (MetadataBaseTime) |
{- "persist": true,
- "source_node_id": "string",
- "base_time": {
- "session_id": "11111111-1111-1111-1111-111111111111",
- "name": "ntp",
- "priority": 255,
- "elapsed_time": 0,
- "base_time": "2019-08-24T14:15:22Z"
}
}永続化拡張モジュール設定のリストを取得します。
{- "items": [
- {
- "uuid": "2f8df301-7a2f-4b6b-a289-7a24f24e9101",
- "name": "my-persister",
- "type": "s3",
- "s3": {
- "region": "ap-northeast-1",
- "bucket_name": "my-bucket",
- "force_path_style": false,
- "partition": "day",
}, - "format": "csv",
- "is_shared_global": false,
- "data_filters": [
- {
- "data_type": "#",
- "data_name": "#"
}
], - "ignore_data_filters": [
- {
- "data_type": "#",
- "data_name": "#"
}
], - "nodes": [
- {
- "node_id": "node_id"
}
], - "ignore_nodes": [
- {
- "node_id": "ignore_node_id"
}
], - "created_at": "2000-01-01T00:00:00Z",
- "updated_at": "2000-01-01T00:00:00Z"
}
], - "page": {
- "next": true,
- "prev": true,
- "next_page": 1,
- "prev_page": 1,
- "total_page": 1,
- "total_count": 1
}
}永続化拡張モジュール設定を作成します。
| name required | string (PersisterConfigAttributeName) <= 255 characters [0-9][a-z][A-Z][-_].* |
| description | string (PersisterConfigAttributeDescription) <= 65535 characters |
| type required | string (PersisterConfigAttributeType) |
object (PersisterConfigAttributeS3) | |
| format required | string (PersisterConfigAttributeS3Format) Enum: "csv" "parquet" "json-lines" "raw" |
Array of objects (PersisterConfigDataFilters) | |
Array of objects (PersisterConfigIgnoreDataFilters) | |
Array of objects (PersisterConfigNodes) 対象ノードIDを指定します。空の場合は全てのノードを対象とします。本属性と | |
Array of objects (PersisterConfigIgnoreNodes) 除外するノードIDを指定します。 本属性と |
{- "name": "my-persister",
- "description": "永続化設定です",
- "type": "s3",
- "s3": {
- "region": "ap-northeast-1",
- "bucket_name": "my-bucket",
- "force_path_style": false,
- "partition": "day",
- "access_key_id": "access-key-id",
- "secret_access_key": "secrete-access-key"
}, - "format": "csv",
- "data_filters": [
- {
- "data_type": "#",
- "data_name": "#"
}
], - "ignore_data_filters": [
- {
- "data_type": "#",
- "data_name": "#"
}
], - "nodes": [
- {
- "node_id": "node_id"
}
], - "ignore_nodes": [
- {
- "node_id": "ignore_node_id"
}
]
}{- "uuid": "2f8df301-7a2f-4b6b-a289-7a24f24e9101",
- "name": "my-persister",
- "type": "s3",
- "s3": {
- "region": "ap-northeast-1",
- "bucket_name": "my-bucket",
- "force_path_style": false,
- "partition": "day",
}, - "format": "csv",
- "is_shared_global": false,
- "data_filters": [
- {
- "data_type": "#",
- "data_name": "#"
}
], - "ignore_data_filters": [
- {
- "data_type": "#",
- "data_name": "#"
}
], - "nodes": [
- {
- "node_id": "node_id"
}
], - "ignore_nodes": [
- {
- "node_id": "ignore_node_id"
}
], - "created_at": "2000-01-01T00:00:00Z",
- "updated_at": "2000-01-01T00:00:00Z"
}永続化拡張モジュール設定をテストします。リソースは作成しません。
| name required | string (PersisterConfigAttributeName) <= 255 characters [0-9][a-z][A-Z][-_].* |
| description | string (PersisterConfigAttributeDescription) <= 65535 characters |
| type required | string (PersisterConfigAttributeType) |
object (PersisterConfigAttributeS3) | |
| format required | string (PersisterConfigAttributeS3Format) Enum: "csv" "parquet" "json-lines" "raw" |
Array of objects (PersisterConfigDataFilters) | |
Array of objects (PersisterConfigIgnoreDataFilters) | |
Array of objects (PersisterConfigNodes) 対象ノードIDを指定します。空の場合は全てのノードを対象とします。本属性と | |
Array of objects (PersisterConfigIgnoreNodes) 除外するノードIDを指定します。 本属性と |
{- "name": "my-persister",
- "description": "永続化設定です",
- "type": "s3",
- "s3": {
- "region": "ap-northeast-1",
- "bucket_name": "my-bucket",
- "force_path_style": false,
- "partition": "day",
- "access_key_id": "access-key-id",
- "secret_access_key": "secrete-access-key"
}, - "format": "csv",
- "data_filters": [
- {
- "data_type": "#",
- "data_name": "#"
}
], - "ignore_data_filters": [
- {
- "data_type": "#",
- "data_name": "#"
}
], - "nodes": [
- {
- "node_id": "node_id"
}
], - "ignore_nodes": [
- {
- "node_id": "ignore_node_id"
}
]
}永続化拡張モジュール設定を取得します。
| persister_config_uuid required | string Example: 3f22db04-0f7f-4ea6-8d2d-7ab94408d4e9 永続化モジュール設定のUUID |
{- "uuid": "2f8df301-7a2f-4b6b-a289-7a24f24e9101",
- "name": "my-persister",
- "type": "s3",
- "s3": {
- "region": "ap-northeast-1",
- "bucket_name": "my-bucket",
- "force_path_style": false,
- "partition": "day",
}, - "format": "csv",
- "is_shared_global": false,
- "data_filters": [
- {
- "data_type": "#",
- "data_name": "#"
}
], - "ignore_data_filters": [
- {
- "data_type": "#",
- "data_name": "#"
}
], - "nodes": [
- {
- "node_id": "node_id"
}
], - "ignore_nodes": [
- {
- "node_id": "ignore_node_id"
}
], - "created_at": "2000-01-01T00:00:00Z",
- "updated_at": "2000-01-01T00:00:00Z"
}永続化拡張モジュール設定を更新します。
| persister_config_uuid required | string Example: 3f22db04-0f7f-4ea6-8d2d-7ab94408d4e9 永続化モジュール設定のUUID |
| name | string (PersisterConfigAttributeName) <= 255 characters [0-9][a-z][A-Z][-_].* |
| description | string (PersisterConfigAttributeDescription) <= 65535 characters |
| type | string (PersisterConfigAttributeType) |
object | |
Array of objects (PersisterConfigDataFilters) | |
Array of objects (PersisterConfigIgnoreDataFilters) | |
Array of objects (PersisterConfigNodes) 対象ノードIDを指定します。空の場合は全てのノードを対象とします。本属性と | |
Array of objects (PersisterConfigIgnoreNodes) 除外するノードIDを指定します。 本属性と |
{- "name": "my-persister",
- "description": "永続化設定です",
- "type": "s3",
- "s3": {
- "region": "ap-northeast-1",
- "bucket_name": "my-bucket",
- "force_path_style": false,
- "partition": "day",
- "access_key_id": "access-key-id",
- "secret_access_key": "secrete-access-key"
}, - "data_filters": [
- {
- "data_type": "#",
- "data_name": "#"
}
], - "ignore_data_filters": [
- {
- "data_type": "#",
- "data_name": "#"
}
], - "nodes": [
- {
- "node_id": "node_id"
}
], - "ignore_nodes": [
- {
- "node_id": "ignore_node_id"
}
]
}{- "uuid": "2f8df301-7a2f-4b6b-a289-7a24f24e9101",
- "name": "my-persister",
- "type": "s3",
- "s3": {
- "region": "ap-northeast-1",
- "bucket_name": "my-bucket",
- "force_path_style": false,
- "partition": "day",
}, - "format": "csv",
- "is_shared_global": false,
- "data_filters": [
- {
- "data_type": "#",
- "data_name": "#"
}
], - "ignore_data_filters": [
- {
- "data_type": "#",
- "data_name": "#"
}
], - "nodes": [
- {
- "node_id": "node_id"
}
], - "ignore_nodes": [
- {
- "node_id": "ignore_node_id"
}
], - "created_at": "2000-01-01T00:00:00Z",
- "updated_at": "2000-01-01T00:00:00Z"
}永続化拡張モジュールを無効化します。
| persister_config_uuid required | string Example: 3f22db04-0f7f-4ea6-8d2d-7ab94408d4e9 永続化モジュール設定のUUID |
{- "uuid": "2f8df301-7a2f-4b6b-a289-7a24f24e9101",
- "name": "my-persister",
- "type": "s3",
- "s3": {
- "region": "ap-northeast-1",
- "bucket_name": "my-bucket",
- "force_path_style": false,
- "partition": "day",
}, - "format": "csv",
- "is_shared_global": false,
- "data_filters": [
- {
- "data_type": "#",
- "data_name": "#"
}
], - "ignore_data_filters": [
- {
- "data_type": "#",
- "data_name": "#"
}
], - "nodes": [
- {
- "node_id": "node_id"
}
], - "ignore_nodes": [
- {
- "node_id": "ignore_node_id"
}
], - "created_at": "2000-01-01T00:00:00Z",
- "updated_at": "2000-01-01T00:00:00Z"
}永続化拡張モジュールを有効化します。
| persister_config_uuid required | string Example: 3f22db04-0f7f-4ea6-8d2d-7ab94408d4e9 永続化モジュール設定のUUID |
{- "uuid": "2f8df301-7a2f-4b6b-a289-7a24f24e9101",
- "name": "my-persister",
- "type": "s3",
- "s3": {
- "region": "ap-northeast-1",
- "bucket_name": "my-bucket",
- "force_path_style": false,
- "partition": "day",
}, - "format": "csv",
- "is_shared_global": false,
- "data_filters": [
- {
- "data_type": "#",
- "data_name": "#"
}
], - "ignore_data_filters": [
- {
- "data_type": "#",
- "data_name": "#"
}
], - "nodes": [
- {
- "node_id": "node_id"
}
], - "ignore_nodes": [
- {
- "node_id": "ignore_node_id"
}
], - "created_at": "2000-01-01T00:00:00Z",
- "updated_at": "2000-01-01T00:00:00Z"
}永続化拡張モジュール設定をテストします。
| persister_config_uuid required | string Example: 3f22db04-0f7f-4ea6-8d2d-7ab94408d4e9 永続化モジュール設定のUUID |
| name | string (PersisterConfigAttributeName) <= 255 characters [0-9][a-z][A-Z][-_].* |
| description | string (PersisterConfigAttributeDescription) <= 65535 characters |
| type | string (PersisterConfigAttributeType) |
object | |
Array of objects (PersisterConfigDataFilters) | |
Array of objects (PersisterConfigIgnoreDataFilters) | |
Array of objects (PersisterConfigNodes) 対象ノードIDを指定します。空の場合は全てのノードを対象とします。本属性と | |
Array of objects (PersisterConfigIgnoreNodes) 除外するノードIDを指定します。 本属性と |
{- "name": "my-persister",
- "description": "永続化設定です",
- "type": "s3",
- "s3": {
- "region": "ap-northeast-1",
- "bucket_name": "my-bucket",
- "force_path_style": false,
- "partition": "day",
- "access_key_id": "access-key-id",
- "secret_access_key": "secrete-access-key"
}, - "data_filters": [
- {
- "data_type": "#",
- "data_name": "#"
}
], - "ignore_data_filters": [
- {
- "data_type": "#",
- "data_name": "#"
}
], - "nodes": [
- {
- "node_id": "node_id"
}
], - "ignore_nodes": [
- {
- "node_id": "ignore_node_id"
}
]
}エッジ接続のリストを取得します。 エッジ接続は、エッジがiSCPプロトコル(/api/iscp/connect エンドポイントなど)を使用してサーバーに接続したときに新規作成され、 3日間更新がないと削除されます。
| project_uuid required | string Example: c78ce0c1-eb57-4f93-a087-ee3b7cee5e06 プロジェクトのUUID |
| edge | Array of strings Example: edge=b55e3351-97e2-4db1-ac90-60fda8b3d144 エッジのUUID |
| group_by_edge | boolean Default: false 最新接続日時でエッジごとにグルーピングするかどうか |
| sort | string Default: "last_lived_at" Enum: "last_lived_at" "created_at" "updated_at" Example: sort=last_lived_at 並べ替えに使用するキー |
| order | string Default: "desc" Enum: "asc" "desc" Example: order=asc 並べ替えの順序 |
| limit | integer Default: 100 Example: limit=100 1回のリクエストで取得する件数 |
| page | integer Default: 1 Example: page=1 取得するページの番号 |
{- "items": [
- {
- "uuid": "e0326d93-6e94-4edf-92a2-961cc1c07414",
- "last_lived_at": "2017-02-11T01:23:45Z",
- "edge": {
- "uuid": "b55e3351-97e2-4db1-ac90-60fda8b3d144",
- "name": "edge_name",
- "nickname": "edge_nickname",
- "description": "edge description",
- "type": "user",
- "disabled": true,
- "internal": false,
- "protected": false,
- "last_lived_at": "2017-02-11T01:23:45Z",
- "last_login_at": "2017-02-11T01:23:45Z",
- "created_at": "2017-02-11T01:23:45Z",
- "updated_at": "2017-02-11T01:23:45Z"
}, - "created_at": "2017-02-11T01:23:45Z",
- "updated_at": "2017-02-11T12:34:56Z"
}
], - "page": null
}エッジ接続( /v1/ws/measurements に接続されたエッジの接続情報)を取得します。
| project_uuid required | string Example: c78ce0c1-eb57-4f93-a087-ee3b7cee5e06 プロジェクトのUUID |
| edge_connection_uuid required | string Example: e0326d93-6e94-4edf-92a2-961cc1c07414 エッジ接続のUUID |
{- "created_at": "2017-02-11T01:23:45Z",
- "downstreams": [
- {
- "created_at": "2017-02-11T01:23:45Z",
- "dst_edge_uuid": "c3341333-31ce-40a6-9208-2dde4c869aab",
- "last_received_at": "2017-02-11T01:23:45Z",
- "received_close_request": false,
- "src_edge_uuid": "3c11158e-ce70-41a9-8ed6-dd3a3b94ce3e",
- "stream_id": 1,
- "updated_at": "2017-02-11T12:34:56Z"
}
], - "edge": {
- "created_at": "2017-02-11T01:23:45Z",
- "description": "edge description",
- "disabled": true,
- "internal": false,
- "last_lived_at": "2017-02-11T01:23:45Z",
- "last_login_at": "2017-02-11T01:23:45Z",
- "name": "edge_name",
- "nickname": "edge_nickname",
- "protected": false,
- "type": "user",
- "updated_at": "2017-02-11T01:23:45Z",
- "uuid": "b55e3351-97e2-4db1-ac90-60fda8b3d144"
}, - "last_lived_at": "2017-02-11T01:23:45Z",
- "updated_at": "2017-02-11T12:34:56Z",
- "upstreams": [
- {
- "created_at": "2017-02-11T01:23:45Z",
- "last_received_at": "2017-02-11T01:23:45Z",
- "measurement_uuid": "e6e292d6-013f-4214-9367-6a5673c8c82a",
- "received_close_request": false,
- "resend": false,
- "src_edge_uuid": "3c11158e-ce70-41a9-8ed6-dd3a3b94ce3e",
- "store": false,
- "stream_id": 1,
- "updated_at": "2017-02-11T12:34:56Z"
}
], - "uuid": "e0326d93-6e94-4edf-92a2-961cc1c07414"
}required | integer or string (DataPointTime) |
| measurement_uuid required | string このデータポイントが含まれる計測のUUID |
| created_at required | string このデータポイントが作成された日時 |
| data_type required | string データ型 |
| data_name required | string データ名称 |
| data_id required | string Deprecated データID 非推奨 変わりに |
| data required | object (DataPointDataMap) データのペイロード。ペイロードのJSON表現はデータタイプによって異なります。 詳説iSCP 1.0 の「付録: データタイプとペイロードの定義」を参照してください。 iscpv1に当てはまらない場合、下記のフォーマットで固定となります。
|
{- "time": 0,
- "measurement_uuid": "string",
- "created_at": "string",
- "data_type": "string",
- "data_name": "*",
- "data_id": "string",
- "data": { }
}| type required | string Enum: "meta" "point" |
object (DataPointWithTypePoint) | |
object (DataPointWithTypeMeta) |
{- "type": "meta",
- "point": {
- "time": "2019-08-24T14:15:22Z",
- "measurement_uuid": "ad55f277-8b84-4205-8cfb-3039bba9807e",
- "elapsed_time": 0,
- "data_type": "string",
- "data_name": "data_name",
- "payload": "string",
- "float64": 0.1,
- "float64_array": [
- 0.1
], - "int64": 0,
- "int64_array": [
- 0
], - "string": "string",
- "csv": [
- "string"
], - "can_frame": {
- "can_id": "0000001A",
- "ide": true,
- "payload": "string"
}, - "vector": {
- "x": 0.1,
- "y": 0.1,
- "z": 0.1,
- "w": 0.1
}, - "nmea": {
- "sentence": "string",
- "type": "RMC",
- "latitude": 0.1,
- "longitude": 0.1
}, - "json": { },
- "msgpack": { },
- "msgpack_rostopic": {
- "type": "string",
- "name": "string",
- "msg": { }
}, - "pcm": {
- "format_id": 1,
- "channels": 2,
- "sample_rate": 44100,
- "bits_per_sample": 16,
- "data": "AQACAAMABAA="
}, - "created_at": "string"
}, - "meta": {
- "type": "end",
- "end": {
- "next_start": "2019-08-24T14:15:22Z",
- "previous_end": "2019-08-24T14:15:22Z"
}, - "error": {
- "error_messaege": "string"
}
}
}データポイントのリストを取得します。 返却されるデータポイントはJSON形式です。データポイントごとに改行で区切られます。
| project_uuid required | string Example: 75c55669-b2ab-4f14-a871-8571c6afa1ef プロジェクトのUUID |
| name | string Deprecated Example: name=8f40b21c-f2c4-4fa5-8fe3-325491a59597 非推奨: このパラメータは非推奨です。代わりに どの計測またはどのエッジのデータポイントを取得するかを、以下のいずれかを使って指定します:
最初に、指定されたnameに一致する計測UUIDがあるかが検索されます。なければ一致するエッジUUIDがあるかが検索され、それもなければ一致するエッジの名前があるかが検索されます。 |
| meas_uuid | string <uuid> Example: meas_uuid=2cc7de37-6f71-4458-887e-10e618a6fcfb 計測のUUID Name(非推奨)、MeasUUID、EdgeUUIDのいずれか必須です。 |
| edge_uuid | string <uuid> Example: edge_uuid=24dbdc29-165f-4919-b2ce-7a335282bde2 エッジUUID Name(非推奨)、MeasUUID、EdgeUUIDのいずれか必須です。 |
| idq | Array of strings Deprecated Example: idq=data_type:data_name 非推奨 です。
各セグメントにはワイルドカード(*)を使用することができます。 例:
参考1 iSCP v2形式で保存されたデータの場合 iSCP v2形式で保存されたデータポイントの
例:
参考2 iSCP v1形式で保存されたデータの場合 iSCP v1形式で保存されたデータポイントの
例:
|
| data_id_filter | Array of strings Example: data_id_filter=string:string-data-name 取得したいデータポイントの条件をiSCPv2のデータIDフィルターのフォーマットで指定します。 データIDフィルターのフォーマットは データ型( フィルター文字列は
セグメントとワイルドカードの使用
使用例
iSCPv2のデータIDとフィルターについての詳細は以下のリンクを参照します。 参考 iSCP v1形式で保存されたデータの場合 iSCP v1形式で保存されたデータポイントの
例:
|
| start | string Example: start=2019-10-29T03:04:05.123456Z 取得対象区間の始点(始点は対象区間に含まれます)。以下のいずれかの形式で指定します。
|
| end | string Example: end=2019-10-29T03:04:05.234567Z 取得対象区間の終点(終点は対象区間に含まれません)。以下のいずれかの形式で指定します。
|
| since | string Example: since=2019-10-29T03:04:05.341268Z 指定した時刻以降に更新された計測のみを取得します。 以下のいずれかの形式で指定します。
|
| exit_on_error | string Default: "false" Example: exit_on_error=false
|
| label | Array of strings Example: label=label 信号定義のラベル |
| limit | integer <int32> Example: limit=1000 1回のリクエストで取得する件数 |
| order | string Enum: "asc" "desc" Example: order=asc 並べ替えの順序。デフォルトは |
| paginate | boolean Default: false Example: paginate=true カーソルページネーションを有効にします。
|
| time_format | string Enum: "ns" "us" "ms" "s" "rfc3339" Example: time_format=rfc3339 レスポンスの時刻表示形式。デフォルトは |
"string"データポイントのリストを取得します。 返却されるデータポイントはJSON形式です。 データポイントごとに改行で区切られます。
データタイプ毎に返却するスキーマが変わります。例えば float64 プロパティはデータタイプが float64 に該当する時だけ値が設定されます。
解釈がサポートされていないデータタイプの場合 payload のみが設定されます。
詳細はレスポンスのスキーマの属性を参照してください。
| project_uuid required | string Example: 75c55669-b2ab-4f14-a871-8571c6afa1ef プロジェクトのUUID |
| measurement_uuid required | string Example: 2cc7de37-6f71-4458-887e-10e618a6fcfb 計測のUUID |
| data_type required | string Example: group%2Fmy-type データタイプ。URLアンエスケープされた文字列として解釈されます。 |
| data_name_filter | string Default: "#" Example: data_name_filter=group/my-data-name データ名フィルター |
| start | string <date-time> Example: start=2020-01-01T00:00:00.123456789Z 取得対象区間の始点(始点は対象区間に含まれます)。RFC3339Nano形式 |
| end | string <date-time> Example: end=2020-01-02T00:00:00.123456789Z 取得対象区間の終点(終点は対象区間に含まれません) RFC3339Nano形式 |
| since | string Example: since=2019-10-29T03:04:05.341268Z 指定した時刻以降に更新された計測のみを取得します。RFC3339Nano形式 |
| omit_payload | boolean この値を |
| omit_values | boolean この値を |
| limit | integer <int32> Example: limit=1000 1回のリクエストで取得する件数 |
| order | string Enum: "asc" "desc" Example: order=asc 並べ替えの順序。デフォルトは |
"string"データポイントのデータID( data_type, data_id )のリストを取得します。
name で計測UUIDを指定した場合、 start / end パラメーターは無視されます。
name でエッジUUIDまたはエッジの名前を指定した場合、 start / end パラメーターを使ってそのエッジの計測をさらに絞り込むことができます。 この場合、 start / end で指定された区間内に基準時刻を持つ計測のみが対象となり、その計測に含まれるデータIDが取得されます。
| project_uuid required | string Example: 75c55669-b2ab-4f14-a871-8571c6afa1ef プロジェクトのUUID |
| name | string Deprecated Example: name=8f40b21c-f2c4-4fa5-8fe3-325491a59597 非推奨: このパラメータは非推奨です。代わりに どの計測またはどのエッジのデータポイントを取得するかを、以下のいずれかを使って指定します:
最初に、指定されたnameに一致する計測UUIDがあるかが検索されます。なければ一致するエッジUUIDがあるかが検索され、それもなければ一致するエッジの名前があるかが検索されます。 |
| start | string Example: start=2019-10-29T03:04:05.123456Z 取得対象区間の始点(始点は対象区間に含まれます)。以下のいずれかの形式で指定します。
|
| end | string Example: end=2019-10-29T03:04:05.234567Z 取得対象区間の終点(終点は対象区間に含まれません)。以下のいずれかの形式で指定します。
|
{- "items": [
- {
- "data_type": "data_type",
- "data_name": "data_name",
- "data_id": "data_id"
}
]
}計測のリストを取得します。
| project_uuid required | string Example: 75c55669-b2ab-4f14-a871-8571c6afa1ef プロジェクトのUUID |
| uuid | Array of strings Example: uuid=5c3ac8b5-3acd-43ea-86cb-4835664b0483 計測のUUID |
| name | string Example: name=measurement1 名前が指定した文字列から始まる計測を取得します。 文字列をダブルクォーテーションで囲むと、完全一致のものだけが取得されます。 |
| edge_uuid | Array of strings Example: edge_uuid=e0022b03-023f-4f24-90f1-560be10c423b 計測に関連付けられたエッジのUUID |
| start | string Example: start=2019-10-29T03:04:05.123456Z 計測を取得するための対象区間の始点(始点は対象区間に含まれます)。
計測の基準時刻が、ここで指定した時刻と同じかそれより後の場合、その計測は取得対象になります。
ただし、 以下のいずれかの形式で指定します。
|
| end | string Example: end=2019-10-29T03:04:05.234567Z 計測を取得するための対象区間の終点(終点は対象区間に含まれません)。
計測の基準時刻が、ここで指定した時刻よりも前の場合、その計測は取得対象になります。
ただし、 以下のいずれかの形式で指定します。
|
| partial_match | boolean Default: false Example: partial_match=true
以下の図の例では、
|
| basetime_type | string Enum: "edge_rtc" "ntp" "gps" "api_first_received" "volatile" "manual" Example: basetime_type=ntp 計測の基準時刻のタイプ |
| ended | boolean 計測が終了している(ended)かどうかを指定して計測を取得します。 エッジにおいてデータの取得が終了している場合、その計測は「終了(ended)」となります。 計測は終了(ended)していても、まだサーバーに送信されていないデータがエッジに残っている可能性があります。
|
| since | string Example: since=2019-10-29T03:04:05.341268Z 指定した時刻以降に更新された計測のみを取得します。 以下のいずれかの形式で指定します。
|
| duration_start | integer <int64> Example: duration_start=100 計測時間の最小値(マイクロ秒)。これより短い計測は取得しません。 |
| duration_end | integer <int64> Example: duration_end=100000 計測時間の最大値(マイクロ秒)。これより長い計測は取得しません。 |
| status | Array of strings Items Enum: "measuring" "resending" "finished" Example: status=measuring 計測のステータス |
| limit | integer <int32> Default: 1000 Example: limit=1000 1回のリクエストで取得する件数。ただし、0を指定するとデフォルトの値が使用されます。 |
| sort | string Default: "base_time" Enum: "name" "description" "ended" "duration" "base_time" "processed_ratio" "created_at" "updated_at" Example: sort=base_time 並べ替えに使用するキー |
| page | integer <int32> Example: page=1 取得するページの番号 |
| order | string Enum: "asc" "desc" Example: order=asc 並べ替えの順序 |
{- "items": [
- {
- "uuid": "2cc7de37-6f71-4458-887e-10e618a6fcfb",
- "name": "meas1",
- "description": "description of measurement",
- "basetime": "2019-08-24T14:15:22Z",
- "basetime_type": "edge_rtc",
- "max_priority_basetime_id": 1,
- "edge_uuid": "00de1861-6614-4435-af07-da9b4338d57c",
- "duration": 100000000,
- "duration_usec": 1000,
- "start_time": "2019-08-24T14:15:22Z",
- "end_time": "2019-08-24T14:15:22Z",
- "max_elapsed_time": 10,
- "min_elapsed_time": -10,
- "completed": true,
- "protected": true,
- "sequences": {
- "received_chunks_ratio": 0.5,
- "received_data_points": 123456789,
- "expected_data_points": 123456789,
- "status": "measuring"
}, - "markers": [
- {
- "uuid": "string",
- "name": "string",
- "description": "string",
- "type": "point",
- "tag": { },
- "created_at": "string",
- "created_by": "string",
- "updated_at": "string",
- "updated_by": "string",
- "detail": {
- "occurred_elapsed_time": 0
}
}
], - "created_at": "2017-02-11T01:23:45Z",
- "updated_at": "2017-02-11T01:23:45Z",
- "processed_ratio": 0.9,
- "ended": true,
- "status": "measuring",
- "received_data_points": 0,
- "start_time_or_base_time": "2019-08-24T14:15:22Z",
- "end_time_or_base_time": "2019-08-24T14:15:22Z",
- "duration_usec_from_start_time_or_base_time": 0,
- "total_payload_size": 10000000
}
], - "page": {
- "total_count": 0,
- "first": true,
- "last": true,
- "next": "string",
- "previous": "string"
}
}計測を作成します。
| project_uuid required | string Example: 75c55669-b2ab-4f14-a871-8571c6afa1ef プロジェクトのUUID |
| name | string 計測の名前 |
| description | string 計測の説明 |
| basetime required | string <date-time> 時系列データの経過時間に対して基準となる時刻。基準時刻(RFC3339形式) |
| basetime_type required | string (MeasurementBaseTimeType) Enum: "edge_rtc" "ntp" "gps" "api_first_received" "volatile" "manual" "undefined" 計測の基準時刻タイプ。この属性に加えて、 |
| basetime_priority | integer (MeasBaseTimePriority) [ 0 .. 255 ] 基準時刻の優先度 |
| basetime_name | string (MeasBaseTimeName) [ 0 .. 255 ] characters 基準時刻の名前 |
| basetime_elapsed_time | integer <int64> (MeasBaseTimeElapsedTime) 基準時刻を受信した基準時刻からの経過時間(ナノ秒)。 |
| edge_uuid required | string この計測に関連付けられたエッジのUUID |
| protected required | boolean Deprecated
|
{- "name": "meas1",
- "description": "description of measurement",
- "basetime": "2017-02-11T01:23:45.678901Z",
- "basetime_type": "ntp",
- "edge_uuid": "00de1861-6614-4435-af07-da9b4338d57c",
- "protected": false
}{- "uuid": "2cc7de37-6f71-4458-887e-10e618a6fcfb",
- "name": "meas1",
- "description": "description of measurement",
- "edge_uuid": "00de1861-6614-4435-af07-da9b4338d57c",
- "duration": 100000000,
- "ended": true,
- "status": "measuring",
- "basetime": "2017-02-11T01:23:45.678901Z",
- "basetime_type": "ntp",
- "processed_ratio": 0.9,
- "received_data_points": null,
- "markers": [
- {
- "uuid": "27a841d8-78c0-4e5e-b0ee-ec1fafd90ef6",
- "name": "Name3",
- "description": "Description3",
- "tag": {
- "tagkey1": "tagValue1",
- "tagkey2": "tagValue2"
}, - "type": "range",
- "detail": {
- "start_elapsed_time": 3,
- "end_elapsed_time": 7
}, - "created_at": "2000-01-02T03:04:07Z",
- "created_by": "e3f57626-93d6-4274-a51f-1ac538357a8a",
- "updated_at": "2020-04-15T14:15:23.135268Z",
- "updated_by": "447af3b3-a311-4047-9d7c-110a0fac505b"
}, - {
- "uuid": "cdc1029e-d474-477c-aa6e-b48928fdb825",
- "name": "Name2",
- "description": "Description2",
- "tag": {
- "tagkey1": "tagValue1",
- "tagkey2": "tagValue2"
}, - "type": "point",
- "detail": {
- "occurred_elapsed_time": 3
}, - "created_at": "2000-01-02T03:04:06Z",
- "created_by": "e3f57626-93d6-4274-a51f-1ac538357a8a",
- "updated_at": "2020-04-15T14:15:23.064981Z",
- "updated_by": "447af3b3-a311-4047-9d7c-110a0fac505b"
}
], - "protected": false,
- "created_at": "2017-02-11T01:23:45Z",
- "updated_at": "2017-02-11T12:34:56Z"
}計測を取得します。
| project_uuid required | string Example: 75c55669-b2ab-4f14-a871-8571c6afa1ef プロジェクトのUUID |
| measurement_uuid required | string Example: 2cc7de37-6f71-4458-887e-10e618a6fcfb 計測のUUID |
{- "uuid": "2cc7de37-6f71-4458-887e-10e618a6fcfb",
- "name": "meas1",
- "description": "description of measurement",
- "edge_uuid": "00de1861-6614-4435-af07-da9b4338d57c",
- "duration": 100000000,
- "ended": true,
- "status": "measuring",
- "basetime": "2017-02-11T01:23:45.678901Z",
- "basetime_type": "ntp",
- "processed_ratio": 0.9,
- "received_data_points": null,
- "markers": [
- {
- "uuid": "887326ce-a2a2-4db6-8c06-2f8447f0f29e",
- "name": "name",
- "description": "description",
- "type": "point",
- "detail": {
- "occurred_elapsed_time": 100
}, - "tag": {
- "key1": "value1",
- "key2": "value2"
}, - "elapsed_time": 1000,
- "created_at": "2017-02-11T01:23:45Z",
- "created_by": "adbbd1ff-1e13-4b12-b125-e213945a65f8",
- "updated_at": "2017-02-11T12:34:56Z",
- "updated_by": "adbbd1ff-1e13-4b12-b125-e213945a65f8"
}
], - "protected": false,
- "created_at": "2017-02-11T01:23:45Z",
- "updated_at": "2017-02-11T12:34:56Z"
}指定したUUIDの計測を作成します。
| project_uuid required | string Example: 75c55669-b2ab-4f14-a871-8571c6afa1ef プロジェクトのUUID |
| measurement_uuid required | string Example: 2cc7de37-6f71-4458-887e-10e618a6fcfb 計測のUUID |
| name | string 計測の名前 |
| description | string 計測の説明 |
| basetime required | string <date-time> 時系列データの経過時間に対して基準となる時刻。基準時刻(RFC3339形式) |
| basetime_type required | string (MeasurementBaseTimeType) Enum: "edge_rtc" "ntp" "gps" "api_first_received" "volatile" "manual" "undefined" 計測の基準時刻タイプ。この属性に加えて、 |
| basetime_priority | integer (MeasBaseTimePriority) [ 0 .. 255 ] 基準時刻の優先度 |
| basetime_name | string (MeasBaseTimeName) [ 0 .. 255 ] characters 基準時刻の名前 |
| basetime_elapsed_time | integer <int64> (MeasBaseTimeElapsedTime) 基準時刻を受信した基準時刻からの経過時間(ナノ秒)。 |
| edge_uuid required | string この計測に関連付けられたエッジのUUID |
| protected required | boolean Deprecated
|
{- "name": "meas1",
- "description": "description of measurement",
- "basetime": "2017-02-11T01:23:45.678901Z",
- "basetime_type": "ntp",
- "edge_uuid": "00de1861-6614-4435-af07-da9b4338d57c",
- "protected": false
}{- "uuid": "2cc7de37-6f71-4458-887e-10e618a6fcfb",
- "name": "meas1",
- "description": "description of measurement",
- "edge_uuid": "00de1861-6614-4435-af07-da9b4338d57c",
- "duration": 100000000,
- "ended": true,
- "status": "measuring",
- "basetime": "2017-02-11T01:23:45.678901Z",
- "basetime_type": "ntp",
- "processed_ratio": 0.9,
- "received_data_points": null,
- "markers": [
- {
- "uuid": "27a841d8-78c0-4e5e-b0ee-ec1fafd90ef6",
- "name": "Name3",
- "description": "Description3",
- "tag": {
- "tagkey1": "tagValue1",
- "tagkey2": "tagValue2"
}, - "type": "range",
- "detail": {
- "start_elapsed_time": 3,
- "end_elapsed_time": 7
}, - "created_at": "2000-01-02T03:04:07Z",
- "created_by": "e3f57626-93d6-4274-a51f-1ac538357a8a",
- "updated_at": "2020-04-15T14:15:23.135268Z",
- "updated_by": "447af3b3-a311-4047-9d7c-110a0fac505b"
}, - {
- "uuid": "cdc1029e-d474-477c-aa6e-b48928fdb825",
- "name": "Name2",
- "description": "Description2",
- "tag": {
- "tagkey1": "tagValue1",
- "tagkey2": "tagValue2"
}, - "type": "point",
- "detail": {
- "occurred_elapsed_time": 3
}, - "created_at": "2000-01-02T03:04:06Z",
- "created_by": "e3f57626-93d6-4274-a51f-1ac538357a8a",
- "updated_at": "2020-04-15T14:15:23.064981Z",
- "updated_by": "447af3b3-a311-4047-9d7c-110a0fac505b"
}
], - "protected": false,
- "created_at": "2017-02-11T01:23:45Z",
- "updated_at": "2017-02-11T12:34:56Z"
}計測に関する情報を更新します。
| project_uuid required | string Example: 75c55669-b2ab-4f14-a871-8571c6afa1ef プロジェクトのUUID |
| measurement_uuid required | string Example: 2cc7de37-6f71-4458-887e-10e618a6fcfb 計測のUUID |
| name | string 計測の名前 |
| description | string 計測の説明 |
| basetime_type | string (MeasurementBaseTimeType) Deprecated Enum: "edge_rtc" "ntp" "gps" "api_first_received" "volatile" "manual" "undefined" 計測の基準時刻タイプ 非推奨 代わりに基準時刻APIを使用して、当該基準時刻の優先度を明示的に設定してください。この値をセットすると、基準時刻タイプの優先度を強制的に一番高いものに変更します。 |
{- "name": "meas1",
- "description": "description of measurement",
- "basetime_type": "ntp",
- "max_priority_basetime_id": 1
}計測を削除します。
| project_uuid required | string Example: 75c55669-b2ab-4f14-a871-8571c6afa1ef プロジェクトのUUID |
| measurement_uuid required | string Example: 2cc7de37-6f71-4458-887e-10e618a6fcfb 計測のUUID |
計測を回収完了(completed)にします。 completedは、エッジでのデータ取得が終了し(ended)、 かつ、すべてのデータがサーバーに送信されたことを意味します。
| project_uuid required | string Example: 75c55669-b2ab-4f14-a871-8571c6afa1ef プロジェクトのUUID |
| measurement_uuid required | string Example: 2cc7de37-6f71-4458-887e-10e618a6fcfb 計測のUUID |
{- "uuid": "2cc7de37-6f71-4458-887e-10e618a6fcfb",
- "name": "meas1",
- "description": "description of measurement",
- "edge_uuid": "00de1861-6614-4435-af07-da9b4338d57c",
- "duration": 100000000,
- "ended": true,
- "status": "measuring",
- "basetime": "2017-02-11T01:23:45.678901Z",
- "basetime_type": "ntp",
- "processed_ratio": 0.9,
- "received_data_points": null,
- "markers": [
- {
- "uuid": "27a841d8-78c0-4e5e-b0ee-ec1fafd90ef6",
- "name": "Name3",
- "description": "Description3",
- "tag": {
- "tagkey1": "tagValue1",
- "tagkey2": "tagValue2"
}, - "type": "range",
- "detail": {
- "start_elapsed_time": 3,
- "end_elapsed_time": 7
}, - "created_at": "2000-01-02T03:04:07Z",
- "created_by": "e3f57626-93d6-4274-a51f-1ac538357a8a",
- "updated_at": "2020-04-15T14:15:23.135268Z",
- "updated_by": "447af3b3-a311-4047-9d7c-110a0fac505b"
}, - {
- "uuid": "cdc1029e-d474-477c-aa6e-b48928fdb825",
- "name": "Name2",
- "description": "Description2",
- "tag": {
- "tagkey1": "tagValue1",
- "tagkey2": "tagValue2"
}, - "type": "point",
- "detail": {
- "occurred_elapsed_time": 3
}, - "created_at": "2000-01-02T03:04:06Z",
- "created_by": "e3f57626-93d6-4274-a51f-1ac538357a8a",
- "updated_at": "2020-04-15T14:15:23.064981Z",
- "updated_by": "447af3b3-a311-4047-9d7c-110a0fac505b"
}
], - "protected": false,
- "created_at": "2017-02-11T01:23:45Z",
- "updated_at": "2017-02-11T12:34:56Z"
}計測終了(ended)とします。endedは、エッジにおけるデータの取得が終了していることを表します。 (サーバーに回収されていないデータがまだエッジに残っている可能性はあります。サーバーへのデータの回収が完了した状態は、completedと呼びます。)
| project_uuid required | string Example: 75c55669-b2ab-4f14-a871-8571c6afa1ef プロジェクトのUUID |
| measurement_uuid required | string Example: 2cc7de37-6f71-4458-887e-10e618a6fcfb 計測のUUID |
{- "received_chunks_ratio": 0.5,
- "received_data_points": 123456789,
- "expected_data_points": 123456789,
- "status": "measuring"
}| project_uuid required | string Example: 75c55669-b2ab-4f14-a871-8571c6afa1ef プロジェクトのUUID |
| measurement_marker_uuid required | string Example: 27a841d8-78c0-4e5e-b0ee-ec1fafd90ef6 計測マーカーのUUID |
{- "uuid": "2cc7de37-6f71-4458-887e-10e618a6fcfb",
- "name": "meas1",
- "description": "description of measurement",
- "edge_uuid": "00de1861-6614-4435-af07-da9b4338d57c",
- "duration": 100000000,
- "ended": true,
- "status": "measuring",
- "basetime": "2017-02-11T01:23:45.678901Z",
- "basetime_type": "ntp",
- "processed_ratio": 0.9,
- "received_data_points": null,
- "markers": [
- {
- "uuid": "27a841d8-78c0-4e5e-b0ee-ec1fafd90ef6",
- "name": "Name3",
- "description": "Description3",
- "tag": {
- "tagkey1": "tagValue1",
- "tagkey2": "tagValue2"
}, - "type": "range",
- "detail": {
- "start_elapsed_time": 3,
- "end_elapsed_time": 7
}, - "created_at": "2000-01-02T03:04:07Z",
- "created_by": "e3f57626-93d6-4274-a51f-1ac538357a8a",
- "updated_at": "2020-04-15T14:15:23.135268Z",
- "updated_by": "447af3b3-a311-4047-9d7c-110a0fac505b"
}, - {
- "uuid": "cdc1029e-d474-477c-aa6e-b48928fdb825",
- "name": "Name2",
- "description": "Description2",
- "tag": {
- "tagkey1": "tagValue1",
- "tagkey2": "tagValue2"
}, - "type": "point",
- "detail": {
- "occurred_elapsed_time": 3
}, - "created_at": "2000-01-02T03:04:06Z",
- "created_by": "e3f57626-93d6-4274-a51f-1ac538357a8a",
- "updated_at": "2020-04-15T14:15:23.064981Z",
- "updated_by": "447af3b3-a311-4047-9d7c-110a0fac505b"
}
], - "protected": false,
- "created_at": "2017-02-11T01:23:45Z",
- "updated_at": "2017-02-11T12:34:56Z"
}計測の基準時刻のリストを取得します。
| project_uuid required | string Example: 75c55669-b2ab-4f14-a871-8571c6afa1ef プロジェクトのUUID |
| measurement_uuid required | string Example: 2cc7de37-6f71-4458-887e-10e618a6fcfb 計測のUUID |
{- "items": [
- {
- "type": "ntp",
- "basetime": "2017-02-11T01:23:45.678901Z",
- "created_at": "2017-02-11T01:23:45Z",
- "updated_at": "2017-02-11T01:23:45Z"
}
]
}計測の基準時刻を作成します。
| project_uuid required | string Example: 75c55669-b2ab-4f14-a871-8571c6afa1ef プロジェクトのUUID |
| measurement_uuid required | string Example: 2cc7de37-6f71-4458-887e-10e618a6fcfb 計測のUUID |
| basetime required | string <date-time> (MeasBaseTimeBaseTime) 時系列データの経過時間に対して基準となる時刻。基準時刻(RFC3339形式) |
| priority required | integer (MeasBaseTimePriority) [ 0 .. 255 ] 基準時刻の優先度 |
| name required | string (MeasBaseTimeName) [ 0 .. 255 ] characters 基準時刻の名前 |
| elapsed_time required | integer <int64> (MeasBaseTimeElapsedTime) 基準時刻を受信した基準時刻からの経過時間(ナノ秒)。 |
{- "basetime": "2000-01-01T00:00:00Z",
- "priority": 255,
- "name": "NTP",
- "elapsed_time": 1000
}{- "id": 1,
- "type": "edge_rtc",
- "basetime": "2000-01-01T00:00:00Z",
- "priority": 255,
- "name": "NTP",
- "elapsed_time": 1000,
- "created_at": "2000-01-01T00:00:00Z",
- "updated_at": "2000-01-01T00:00:00Z"
}基準時刻IDを指定して計測の基準時刻を取得します。
| project_uuid required | string Example: 75c55669-b2ab-4f14-a871-8571c6afa1ef プロジェクトのUUID |
| measurement_uuid required | string Example: 2cc7de37-6f71-4458-887e-10e618a6fcfb 計測のUUID |
| id required | integer <int64> (MeasBaseTimeID) Example: 1 基準時刻のID |
{- "id": 1,
- "type": "edge_rtc",
- "basetime": "2000-01-01T00:00:00Z",
- "priority": 255,
- "name": "NTP",
- "elapsed_time": 1000,
- "created_at": "2000-01-01T00:00:00Z",
- "updated_at": "2000-01-01T00:00:00Z"
}基準時刻を更新します。
| project_uuid required | string Example: 75c55669-b2ab-4f14-a871-8571c6afa1ef プロジェクトのUUID |
| measurement_uuid required | string Example: 2cc7de37-6f71-4458-887e-10e618a6fcfb 計測のUUID |
| id required | integer <int64> (MeasBaseTimeID) Example: 1 基準時刻のID |
| basetime | string <date-time> (MeasBaseTimeBaseTime) 時系列データの経過時間に対して基準となる時刻。基準時刻(RFC3339形式) |
| priority | integer (MeasBaseTimePriority) [ 0 .. 255 ] 基準時刻の優先度 |
| name | string (MeasBaseTimeName) [ 0 .. 255 ] characters 基準時刻の名前 |
| elapsed_time | integer <int64> (MeasBaseTimeElapsedTime) 基準時刻を受信した基準時刻からの経過時間(ナノ秒)。 |
{- "basetime": "2000-01-01T00:00:00Z",
- "priority": 255,
- "name": "NTP",
- "elapsed_time": 1000
}{- "id": 1,
- "type": "edge_rtc",
- "basetime": "2000-01-01T00:00:00Z",
- "priority": 255,
- "name": "NTP",
- "elapsed_time": 1000,
- "created_at": "2000-01-01T00:00:00Z",
- "updated_at": "2000-01-01T00:00:00Z"
}基準時刻を削除します。
指定された基準時刻が使用中の場合(その計測の basetime_type として設定されている場合)は、 その基準時刻は削除できません(ステータスコード 409 が返却されます)。
このような場合は、他の基準時刻をその計測の basetime_type にしてから、削除したい基準時刻を削除してください。
| project_uuid required | string Example: 75c55669-b2ab-4f14-a871-8571c6afa1ef プロジェクトのUUID |
| measurement_uuid required | string Example: 2cc7de37-6f71-4458-887e-10e618a6fcfb 計測のUUID |
| id required | integer <int64> (MeasBaseTimeID) Example: 1 基準時刻のID |
計測シーケンスのリストを取得します。
| project_uuid required | string Example: 75c55669-b2ab-4f14-a871-8571c6afa1ef プロジェクトのUUID |
| measurement_uuid required | string Example: 2cc7de37-6f71-4458-887e-10e618a6fcfb 計測のUUID |
{- "items": [
- {
- "uuid": "0b849907-9f04-4c87-b176-b73fb527e935",
- "expected_data_points": 123456789,
- "received_data_points": 123456789,
- "received_chunks_count": 10,
- "final_sequence_number": 10,
- "created_at": "2000-01-01T00:00:00Z",
- "updated_at": "2000-01-01T00:00:00Z"
}
], - "page": {
- "total_count": 0
}
}計測シーケンスを取得します。
| project_uuid required | string Example: 75c55669-b2ab-4f14-a871-8571c6afa1ef プロジェクトのUUID |
| measurement_uuid required | string Example: 2cc7de37-6f71-4458-887e-10e618a6fcfb 計測のUUID |
| sequences_uuid required | string Example: 0b849907-9f04-4c87-b176-b73fb527e935 計測シーケンスのUUID |
{- "uuid": "0b849907-9f04-4c87-b176-b73fb527e935",
- "expected_data_points": 123456789,
- "received_data_points": 123456789,
- "received_chunks_count": 10,
- "final_sequence_number": 10,
- "created_at": "2000-01-01T00:00:00Z",
- "updated_at": "2000-01-01T00:00:00Z"
}計測シーケンスを更新します。
| project_uuid required | string Example: 75c55669-b2ab-4f14-a871-8571c6afa1ef プロジェクトのUUID |
| measurement_uuid required | string Example: 2cc7de37-6f71-4458-887e-10e618a6fcfb 計測のUUID |
| sequences_uuid required | string Example: 0b849907-9f04-4c87-b176-b73fb527e935 計測シーケンスのUUID |
| expected_data_points | integer <int64> >= 0 この計測シーケンスでサーバーが受信することが想定されるデータポイントの総数 (既に受信済みのデータポイントを含む) 符号なし64bit整数。 |
| final_sequence_number | integer <int64> [ 0 .. 4294967295 ] この計測シーケンスに含まれるチャンクに付与された最後のシーケンス番号 |
{- "expected_data_points": 123456789,
- "final_sequence_number": 10
}{- "uuid": "0b849907-9f04-4c87-b176-b73fb527e935",
- "expected_data_points": 123456789,
- "received_data_points": 123456789,
- "received_chunks_count": 10,
- "final_sequence_number": 10,
- "created_at": "2000-01-01T00:00:00Z",
- "updated_at": "2000-01-01T00:00:00Z"
}計測シーケンスを置換します。
| project_uuid required | string Example: 75c55669-b2ab-4f14-a871-8571c6afa1ef プロジェクトのUUID |
| measurement_uuid required | string Example: 2cc7de37-6f71-4458-887e-10e618a6fcfb 計測のUUID |
| sequences_uuid required | string Example: 0b849907-9f04-4c87-b176-b73fb527e935 計測シーケンスのUUID |
| expected_data_points | integer <int64> >= 0 この計測シーケンスでサーバーが受信することが想定されるデータポイントの総数 (既に受信済みのデータポイントを含む) 符号なし64bit整数。 |
| final_sequence_number | integer <int64> [ 0 .. 4294967295 ] この計測シーケンスに含まれるチャンクに付与された最後のシーケンス番号 |
{- "expected_data_points": 123456789,
- "final_sequence_number": 10
}{- "uuid": "0b849907-9f04-4c87-b176-b73fb527e935",
- "expected_data_points": 123456789,
- "received_data_points": 123456789,
- "received_chunks_count": 10,
- "final_sequence_number": 10,
- "created_at": "2000-01-01T00:00:00Z",
- "updated_at": "2000-01-01T00:00:00Z"
}計測シーケンスにチャンクを作成します。
| project_uuid required | string Example: 75c55669-b2ab-4f14-a871-8571c6afa1ef プロジェクトのUUID |
protocol.protoのStoreDataChunksを参照してくだいさい。
StoreDataPointのpayloadは iSCP v2のデータフォーマットに従います。この資料は現在準備中です。
{- "items": [
- {
- "sequence_number": 1,
- "result": "ok"
}
], - "total_count": 1
}ジョブ(CSVファイルを計測に変換するジョブなど)のリストを取得します。
| project_uuid required | string Example: 75c55669-b2ab-4f14-a871-8571c6afa1ef プロジェクトのUUID |
| limit | integer <int32> Example: limit=1000 1回のリクエストで取得する件数 |
| sort | any Default: "created_at" Enum: "created_at" "updated_at" Example: sort=created_at 並べ替えに使用するキー |
| status | Array of strings Items Enum: "ready" "processing" "succeeded" "failed" "cancelled" Example: status=succeeded ジョブのステータス |
| source_type | Array of strings Items Enum: "file" "zip" "stream" Example: source_type=file&source_type=zip アップロードのソース種別でフィルタ(複数指定時は OR 条件)。未指定時は |
| page | integer <int32> Example: page=1 取得するページの番号 |
| order | string Enum: "asc" "desc" Example: order=asc 並べ替えの順序 |
{- "items": [
- {
- "uuid": "d9135580-4a6b-4fbd-971b-8fdce27b617c",
- "meas_uuid": "a72c674a-e8e9-43bc-940f-a034853363e1",
- "measurement": {
- "uuid": "2cc7de37-6f71-4458-887e-10e618a6fcfb",
- "name": "meas1",
- "description": "description of measurement",
- "edge_uuid": "00de1861-6614-4435-af07-da9b4338d57c",
- "duration": 100000000,
- "ended": true,
- "status": "measuring",
- "basetime": "2017-02-11T01:23:45.678901Z",
- "basetime_type": "ntp",
- "processed_ratio": 0.9,
- "received_data_points": null,
- "markers": [
- {
- "uuid": "27a841d8-78c0-4e5e-b0ee-ec1fafd90ef6",
- "name": "Name3",
- "description": "Description3",
- "tag": {
- "tagkey1": "tagValue1",
- "tagkey2": "tagValue2"
}, - "type": "range",
- "detail": {
- "start_elapsed_time": 3,
- "end_elapsed_time": 7
}, - "created_at": "2000-01-02T03:04:07Z",
- "created_by": "e3f57626-93d6-4274-a51f-1ac538357a8a",
- "updated_at": "2020-04-15T14:15:23.135268Z",
- "updated_by": "447af3b3-a311-4047-9d7c-110a0fac505b"
}, - {
- "uuid": "cdc1029e-d474-477c-aa6e-b48928fdb825",
- "name": "Name2",
- "description": "Description2",
- "tag": {
- "tagkey1": "tagValue1",
- "tagkey2": "tagValue2"
}, - "type": "point",
- "detail": {
- "occurred_elapsed_time": 3
}, - "created_at": "2000-01-02T03:04:06Z",
- "created_by": "e3f57626-93d6-4274-a51f-1ac538357a8a",
- "updated_at": "2020-04-15T14:15:23.064981Z",
- "updated_by": "447af3b3-a311-4047-9d7c-110a0fac505b"
}
], - "protected": false,
- "created_at": "2017-02-11T01:23:45Z",
- "updated_at": "2017-02-11T12:34:56Z"
}
}
], - "page": {
- "total_count": 1,
- "first": true,
- "last": true,
- "next": "/path?xxx=1&bbb=2&page=3",
- "previous": "/path?xxx=1&bbb=2&page=1"
}
}ジョブを取得します。
| project_uuid required | string Example: 75c55669-b2ab-4f14-a871-8571c6afa1ef プロジェクトのUUID |
| job_uuid required | string Example: ddba7729-3a53-42bb-a4cf-6d19a3e66deb ジョブのUUID |
{- "uuid": "d9135580-4a6b-4fbd-971b-8fdce27b617c",
- "meas_uuid": "a72c674a-e8e9-43bc-940f-a034853363e1",
- "status": "succeeded",
- "message": "Succeeded",
- "file_name": "sample.csv",
- "created_at": "2017-02-11T01:23:45Z",
- "updated_at": "2017-02-11T12:34:56Z"
}計測一括ジョブのリストを取得します。 作成日時の降順でソートされます。
| project_uuid required | string Example: 75c55669-b2ab-4f14-a871-8571c6afa1ef プロジェクトのUUID |
| limit | integer <int32> Example: limit=1000 1回のリクエストで取得する件数 |
| page | integer <int32> Example: page=1 取得するページの番号 |
| type | Array of strings Items Enum: "trash" "delete" "restore" "complete" ジョブのタイプでフィルタリング |
| status | Array of strings Items Enum: "ready" "processing" "succeeded" "failed" "cancelled" ジョブのステータスでフィルタリング |
{- "items": [
- {
- "uuid": "d9135580-4a6b-4fbd-971b-8fdce27b617c",
- "type": "trash",
- "status": "succeeded",
- "total_count": 100,
- "processed_count": 100,
- "failed_count": 2,
- "message": "",
- "created_at": "2024-01-15T10:30:00Z",
- "updated_at": "2024-01-15T10:35:00Z"
}, - {
- "uuid": "a72c674a-e8e9-43bc-940f-a034853363e1",
- "type": "delete",
- "status": "processing",
- "total_count": 50,
- "processed_count": 25,
- "failed_count": 0,
- "message": "",
- "created_at": "2024-01-15T09:00:00Z",
- "updated_at": "2024-01-15T09:15:00Z"
}, - {
- "uuid": "00de1861-6614-4435-af07-da9b4338d57c",
- "type": "trash",
- "status": "ready",
- "total_count": 200,
- "processed_count": 0,
- "failed_count": 0,
- "message": "",
- "created_at": "2024-01-15T08:00:00Z",
- "updated_at": "2024-01-15T08:00:00Z"
}
], - "page": {
- "total_count": 3,
- "first": true,
- "last": true,
- "next": "",
- "previous": ""
}
}計測一括ジョブを作成します。
type: trash - 指定した計測をゴミ箱へ移動しますtype: delete - ゴミ箱内の指定した計測を完全削除しますジョブはバックグラウンドで非同期に処理されます。
ジョブの進捗状況は GET /v1/projects/{project_uuid}/measurement_batch_jobs/{job_uuid} で確認できます。
| project_uuid required | string Example: 75c55669-b2ab-4f14-a871-8571c6afa1ef プロジェクトのUUID |
| type required | string (MeasurementBatchJobType) Enum: "trash" "delete" "restore" "complete" 計測一括ジョブのタイプ
|
| measurement_uuids required | Array of strings <uuid> [ 1 .. 1000 ] items [ items <uuid > ] 対象計測のUUIDリスト。最大1000件まで指定可能。
|
{- "type": "trash",
- "measurement_uuids": [
- "2cc7de37-6f71-4458-887e-10e618a6fcfb",
- "a72c674a-e8e9-43bc-940f-a034853363e1",
- "00de1861-6614-4435-af07-da9b4338d57c"
]
}{- "uuid": "d9135580-4a6b-4fbd-971b-8fdce27b617c",
- "type": "trash",
- "status": "ready",
- "total_count": 3,
- "processed_count": 0,
- "failed_count": 0,
- "message": "",
- "created_at": "2024-01-15T10:30:00Z",
- "updated_at": "2024-01-15T10:30:00Z"
}計測一括ジョブの詳細を取得します。 ジョブのステータス、処理済み件数を確認できます。
対象アイテムの詳細は GET /v1/projects/{project_uuid}/measurement_batch_jobs/{job_uuid}/items で取得してください。
| project_uuid required | string Example: 75c55669-b2ab-4f14-a871-8571c6afa1ef プロジェクトのUUID |
| job_uuid required | string <uuid> Example: d9135580-4a6b-4fbd-971b-8fdce27b617c 計測一括ジョブのUUID |
{- "uuid": "d9135580-4a6b-4fbd-971b-8fdce27b617c",
- "type": "trash",
- "status": "succeeded",
- "total_count": 3,
- "processed_count": 3,
- "failed_count": 0,
- "message": "",
- "created_at": "2024-01-15T10:30:00Z",
- "updated_at": "2024-01-15T10:35:00Z"
}計測一括ジョブのアイテム一覧を取得します。 各アイテムの処理状況を確認できます。
| project_uuid required | string Example: 75c55669-b2ab-4f14-a871-8571c6afa1ef プロジェクトのUUID |
| job_uuid required | string <uuid> Example: d9135580-4a6b-4fbd-971b-8fdce27b617c 計測一括ジョブのUUID |
| limit | integer <int32> Example: limit=1000 1回のリクエストで取得する件数 |
| page | integer <int32> Example: page=1 取得するページの番号 |
| status | Array of strings Items Enum: "pending" "succeeded" "failed" "skipped" アイテムのステータスでフィルタリング |
{- "items": [
- {
- "measurement_uuid": "2cc7de37-6f71-4458-887e-10e618a6fcfb",
- "status": "succeeded",
- "error_message": "",
- "created_at": "2024-01-15T10:30:00Z",
- "updated_at": "2024-01-15T10:35:00Z"
}, - {
- "measurement_uuid": "a72c674a-e8e9-43bc-940f-a034853363e1",
- "status": "succeeded",
- "error_message": "",
- "created_at": "2024-01-15T10:30:00Z",
- "updated_at": "2024-01-15T10:35:00Z"
}, - {
- "measurement_uuid": "00de1861-6614-4435-af07-da9b4338d57c",
- "status": "failed",
- "error_message": "measurement not found",
- "created_at": "2024-01-15T10:30:00Z",
- "updated_at": "2024-01-15T10:35:00Z"
}
], - "page": {
- "total_count": 3,
- "first": true,
- "last": true,
- "next": "",
- "previous": ""
}
}計測マーカーのリストを取得します。
| project_uuid required | string Example: 75c55669-b2ab-4f14-a871-8571c6afa1ef プロジェクトのUUID |
| uuid | Array of strings Example: uuid=c14f84c1-b7a5-459b-bd1e-35982e4a4f38 計測マーカーのUUID |
| name | Array of strings Example: name=measurement marker1 計測マーカーの名前 |
| start_unix_micro | integer <int64> Example: start_unix_micro=1000 取得対象区間の始点(マイクロ秒単位のUNIX時刻)(始点は対象区間に含まれます)。 範囲マーカーについては、マーカーの始点が取得対象区間に入っている場合に取得されます。 |
| end_unix_micro | integer <int64> Example: end_unix_micro=1000 取得対象区間の終点(マイクロ秒単位のUNIX時刻)(終点は対象区間に含まれません)。 範囲マーカーについては、マーカーの始点が取得対象区間に入っている場合に取得されます。 |
| tag.<key> | Array of strings Example: tag.<key>=include_tag_value タグのキーと値を使って条件を指定し、条件に一致する計測マーカーを取得します。
キーのみを指定した場合は、指定されたキーを持つ計測マーカーを取得します。 キーと値を指定した場合は、指定されたキーを持ち、その値として指定された値を含む計測マーカーを取得します。
例:
|
| !tag.<key> | Array of strings Example: !tag.<key>=exclude_tag_value タグのキーを使って条件を指定し、条件に一致する計測キャプチャを除外します。
タグの値は無視されます。
|
| limit | integer <int32> Example: limit=1000 1回のリクエストで取得する件数 |
| sort | any Default: "base_time" Enum: "name" "base_time" "created_at" "updated_at" Example: sort=created_at 並べ替えに使用するキー |
| page | integer <int32> Example: page=1 取得するページの番号 |
| order | string Enum: "asc" "desc" Example: order=asc 並べ替えの順序 |
{- "items": [
- {
- "uuid": "27a841d8-78c0-4e5e-b0ee-ec1fafd90ef6",
- "name": "name",
- "description": "description",
- "type": "range",
- "detail": {
- "start_elapsed_time": 3,
- "end_elapsed_time": 4
}, - "tag": {
- "tagkey1": "tagValue1",
- "tagkey2": "tagValue2"
}, - "created_at": "2017-02-11T01:23:45Z",
- "created_by": "adbbd1ff-1e13-4b12-b125-e213945a65f8",
- "updated_at": "2017-02-11T12:34:56Z",
- "updated_by": "adbbd1ff-1e13-4b12-b125-e213945a65f8"
}, - {
- "uuid": "cdc1029e-d474-477c-aa6e-b48928fdb825",
- "name": "name",
- "description": "description",
- "type": "point",
- "detail": {
- "occurred_elapsed_time": 3
}, - "tag": {
- "tagkey1": "tagValue1",
- "tagkey2": "tagValue2"
}, - "created_at": "2017-02-11T01:23:45Z",
- "created_by": "adbbd1ff-1e13-4b12-b125-e213945a65f8",
- "updated_at": "2017-02-11T12:34:56Z",
- "updated_by": "adbbd1ff-1e13-4b12-b125-e213945a65f8"
}
], - "page": {
- "total_count": 1,
- "first": true,
- "last": true,
- "next": "/path?xxx=1&bbb=2&page=3",
- "previous": "/path?xxx=1&bbb=2&page=1"
}
}計測マーカーを取得します。
| project_uuid required | string Example: 75c55669-b2ab-4f14-a871-8571c6afa1ef プロジェクトのUUID |
| measurement_marker_uuid required | string Example: 27a841d8-78c0-4e5e-b0ee-ec1fafd90ef6 計測マーカーのUUID |
{- "uuid": "27a841d8-78c0-4e5e-b0ee-ec1fafd90ef6",
- "name": "name",
- "description": "description",
- "type": "range",
- "detail": {
- "start_elapsed_time": 3,
- "end_elapsed_time": 4
}, - "tag": {
- "tagkey1": "tagValue1",
- "tagkey2": "tagValue2"
}, - "created_at": "2017-02-11T01:23:45Z",
- "created_by": "adbbd1ff-1e13-4b12-b125-e213945a65f8",
- "updated_at": "2017-02-11T12:34:56Z",
- "updated_by": "adbbd1ff-1e13-4b12-b125-e213945a65f8"
}計測マーカーを更新します。
| project_uuid required | string Example: 75c55669-b2ab-4f14-a871-8571c6afa1ef プロジェクトのUUID |
| measurement_marker_uuid required | string Example: 27a841d8-78c0-4e5e-b0ee-ec1fafd90ef6 計測マーカーのUUID |
| name | string 計測マーカーの名前 |
| description | string 計測マーカーの説明 |
| type | string 計測マーカーのタイプ
|
| tag | object この計測マーカーに付与するタグ。タグはキーと値からなるペア(いずれもstring)で設定します。 複数のタグを一度に設定することができます。 値の中にオブジェクトを入れる(ネストする)ことはできません。
|
object (MeasurementMarkerDetailPoint) |
{- "name": "name",
- "description": "description",
- "type": "range",
- "detail": {
- "start_elapsed_time": 100,
- "end_elapsed_time": 200
}, - "tag": {
- "tagkey1": "tagValue1",
- "tagkey2": "tagValue2"
}
}{- "uuid": "27a841d8-78c0-4e5e-b0ee-ec1fafd90ef6",
- "name": "name",
- "description": "description",
- "type": "range",
- "detail": {
- "start_elapsed_time": 3,
- "end_elapsed_time": 4
}, - "tag": {
- "tagkey1": "tagValue1",
- "tagkey2": "tagValue2"
}, - "created_at": "2017-02-11T01:23:45Z",
- "created_by": "adbbd1ff-1e13-4b12-b125-e213945a65f8",
- "updated_at": "2017-02-11T12:34:56Z",
- "updated_by": "adbbd1ff-1e13-4b12-b125-e213945a65f8"
}計測マーカーを削除します。
| project_uuid required | string Example: 75c55669-b2ab-4f14-a871-8571c6afa1ef プロジェクトのUUID |
| measurement_marker_uuid required | string Example: 27a841d8-78c0-4e5e-b0ee-ec1fafd90ef6 計測マーカーのUUID |
計測マーカーを削除します。
| project_uuid required | string Example: 75c55669-b2ab-4f14-a871-8571c6afa1ef プロジェクトのUUID |
| measurement_uuid required | string Example: 2cc7de37-6f71-4458-887e-10e618a6fcfb 計測のUUID |
計測マーカーを作成します。
| project_uuid required | string Example: 75c55669-b2ab-4f14-a871-8571c6afa1ef プロジェクトのUUID |
| measurement_uuid required | string Example: 2cc7de37-6f71-4458-887e-10e618a6fcfb 計測のUUID |
| name | string 計測マーカーの名前 |
| description | string 計測マーカーの説明 |
| type required | string 計測マーカーのタイプ
|
| tag | object この計測マーカーに付与するタグ。タグはキーと値からなるペア(いずれもstring)で設定します。 複数のタグを一度に設定することができます。 値の中にオブジェクトを入れる(ネストする)ことはできません。
|
required | object (MeasurementMarkerDetailPoint) |
{- "name": "name",
- "description": "description",
- "type": "point",
- "detail": {
- "occurred_elapsed_time": 100
}, - "tag": {
- "tagkey1": "tagValue1",
- "tagkey2": "tagValue2"
}
}{- "uuid": "cdc1029e-d474-477c-aa6e-b48928fdb825",
- "name": "name",
- "description": "description",
- "type": "point",
- "detail": {
- "occurred_elapsed_time": 3
}, - "tag": {
- "tagkey1": "tagValue1",
- "tagkey2": "tagValue2"
}, - "created_at": "2017-02-11T01:23:45Z",
- "created_by": "adbbd1ff-1e13-4b12-b125-e213945a65f8",
- "updated_at": "2017-02-11T12:34:56Z",
- "updated_by": "adbbd1ff-1e13-4b12-b125-e213945a65f8"
}計測マーカーを削除します。
| project_uuid required | string Example: 75c55669-b2ab-4f14-a871-8571c6afa1ef プロジェクトのUUID |
| measurement_uuid required | string Example: 2cc7de37-6f71-4458-887e-10e618a6fcfb 計測のUUID |
| measurement_marker_uuid required | string Example: 27a841d8-78c0-4e5e-b0ee-ec1fafd90ef6 計測マーカーのUUID |
計測マーカーの情報を更新します。
| project_uuid required | string Example: 75c55669-b2ab-4f14-a871-8571c6afa1ef プロジェクトのUUID |
| measurement_uuid required | string Example: 2cc7de37-6f71-4458-887e-10e618a6fcfb 計測のUUID |
| measurement_marker_uuid required | string Example: 27a841d8-78c0-4e5e-b0ee-ec1fafd90ef6 計測マーカーのUUID |
| name | string 計測マーカーの名前 |
| description | string 計測マーカーの説明 |
| type | string 計測マーカーのタイプ
|
| tag | object この計測マーカーに付与するタグ。タグはキーと値からなるペア(いずれもstring)で設定します。 複数のタグを一度に設定することができます。 値の中にオブジェクトを入れる(ネストする)ことはできません。
|
object (MeasurementMarkerDetailPoint) |
{- "name": "name",
- "description": "description",
- "type": "point",
- "detail": {
- "occurred_elapsed_time": 100
}, - "tag": {
- "tagkey1": "tagValue1",
- "tagkey2": "tagValue2"
}
}{- "uuid": "cdc1029e-d474-477c-aa6e-b48928fdb825",
- "name": "name",
- "description": "description",
- "type": "point",
- "detail": {
- "occurred_elapsed_time": 3
}, - "tag": {
- "tagkey1": "tagValue1",
- "tagkey2": "tagValue2"
}, - "created_at": "2017-02-11T01:23:45Z",
- "created_by": "adbbd1ff-1e13-4b12-b125-e213945a65f8",
- "updated_at": "2017-02-11T12:34:56Z",
- "updated_by": "adbbd1ff-1e13-4b12-b125-e213945a65f8"
}CSV、MP4、またはZIP (.zip) ファイルをアップロードし、計測を作成します。 計測には、指定されたエッジUUIDが関連付けられます。 注意: MP4ファイルのアップロードは実験的な機能です。
.zip 形式のファイルをアップロードすることもできます。 ZIP ファイルに含まれるサポート対象ファイル(CSV、MP4)はそれぞれ個別のジョブとして処理されます。 サポート対象外のファイル(テキストファイル、画像ファイル等)やディレクトリエントリはスキップされます。 ZIP ファイル内にサポート対象ファイルが1つも含まれていない場合はエラーが返されます。 ネストした ZIP(ZIP 内の ZIP ファイル)はサポートされません。
ZIP アップロードの場合、レスポンスの jobs 配列に各ファイルのジョブ情報が含まれます。 トップレベルの job_uuid と file_name は空文字になります。
base_time (基準時刻)は、RFC3339による表現か、UNIX時刻(マイクロ秒)を指定してください。
基準時刻が指定されていない場合は、CSVファイルのデータ行の1行目の時刻が基準時刻として使用されます。
CSVファイルのデータは、時刻順にソートされている必要があります。
meas_end パラメーターの設定は任意です。指定しない場合、 true となります。
CSVファイルの例:
time, col1, col2, col3, col4, col5, col6, col7, col8, col9, col10
1539263579, val11, 12, 13.12345, val14, 15, 16.12345, val17, 18, 19.12345, val110
1539263580, val21, 22, 23.12345, val24, 25, 26.12345, val27, 28, 29.12345, val210
1539263581, val31, 32, 33.12345, val34, 35, 36.12345, val37, 38, 39.12345, val310
1539263582, val41, 42, 43.12345, val44, 45, 46.12345, val47, 48, 49.12345, val410
空白行がある場合、行番号のカウントは加算されますが、その行は処理されません。 例えば、以下のような場合の空白行は無視されます。
time, col1, col2, col3, col4, col5, col6, col7, col8, col9, col10
1539263579, val11, 12, 13.12345, val14, 15, 16.12345, val17, 18, 19.12345, val110
1539263581, val31, 32, 33.12345, val34, 35, 36.12345, val37, 38, 39.12345, val310
1539263582, val41, 42, 43.12345, val44, 45, 46.12345, val47, 48, 49.12345, val410
Go parser library も参照してください。
時刻の列には、RFC3339による表現か、UNIX時刻(秒)を使用することができます。
meas_uuid パラメータを指定すると、新しい計測を作成せず、 既存の計測にデータを追加できます。
さらに sequence_uuid を指定すると、既存のシーケンスにデータを追加できます。
重要: 既存シーケンスにデータを追加する場合、サーバーはシーケンスの メタデータ(expected_data_points、final_sequence_number)を 自動的に更新しません。これらの値の管理はクライアントの責任となります。
label_data_type パラメータで列名ごとのデータ型を指定できます。 データ型には任意の文字列を指定でき、既知の型(int64, float64, bool, string, string/json, bytes)は サーバー側で適切にバイナリエンコードされます。
label_data_type で指定されていない列に対しては、自動型推論が行われます。 推論は int64 → float64 → bool → string/json → bytes → string の優先順位で試行されます。 推論結果はラベルごとにキャッシュされ、同一カラムの2行目以降は同じ型が使用されます。
disable_infer パラメータを true に設定すると、未指定の列に対する自動型推論を無効化し、 すべて string として扱います。 label_data_type で明示的に指定された列には影響しません。
値の内部で , を使用したい場合は、その値全体を " で囲んでください。
また、値の内部で " を使用したい場合は、値全体を " で囲み、さらに、 " を "" のように表記してください。
値を " で囲まないと、CSVファイルのパースの際にエラーが発生します。
エスケープの例:
time,col1
1539263579,"ab,cde" .....OK (parsed as 'ab,cde')
1539263579,"ab""cde" .....OK (parsed as 'ab"cde')
1539263579, abcde .....OK (parsed as ' abcde')
1539263579," abcde" .....OK (parsed as ' abcde')
1539263579,ab"cde .....NG
1539263579, "abcde" .....NG
1539263579,ab,cde .....NG(wrong number of fields)
| project_uuid required | string Example: 75c55669-b2ab-4f14-a871-8571c6afa1ef プロジェクトのUUID |
| edge_uuid required | string <uuid> エッジのUUID |
| base_time | string <date-time> 時系列データの経過時間に対して基準となる時刻。基準時刻(RFC3339形式)。MP4ファイルをアップロードする場合は必須です。 |
| base_time_name | string [ 0 .. 255 ] characters Default: "manual" 基準時刻の名前 |
| base_time_priority | integer [ 0 .. 255 ] Default: 60 基準時刻の優先度 |
| meas_end | boolean
|
| label_data_type | string <json> (LabelDataType) 列名とデータタイプの対応をJSON形式で指定します。 データタイプには任意の文字列を指定できます。 以下の既知のデータタイプは、サーバー側でバイナリエンコードされます:
上記以外のデータタイプを指定した場合、セル値はBase64デコードを試み、 成功した場合はデコード結果がペイロードとなります。 Base64デコードに失敗した場合は、セル値のUTF-8バイト列がそのままペイロードとなります。
例:
|
| disable_infer | boolean Default: false
|
| meas_uuid | string <uuid> 既存の計測のUUID。指定した場合、新しい計測を作成せず、 既存の計測にデータを追加します。 |
| sequence_uuid | string <uuid> 既存のシーケンスのUUID。 |
| data_file required | string <binary> アップロードするファイル |
{- "meas_upload_uuid": "d9135580-4a6b-4fbd-971b-8fdce27b617c",
- "job_uuid": "d9135580-4a6b-4fbd-971b-8fdce27b617c",
- "file_name": "filename.csv",
- "jobs": [
- {
- "job_uuid": "d9135580-4a6b-4fbd-971b-8fdce27b617c",
- "file_name": "filename.csv"
}
]
}Protobuf (.pbstream/.pbstream.gz) データをストリーム形式でアップロードし、計測を作成します。 リクエストボディは raw binary です。Content-Type ヘッダーでデータ形式を指定してください。
リクエストボディは以下の構造の繰り返しです:
StoreDataChunk メッセージ
.pbstream.gz は上記構造を gzip 圧縮したものです。計測に関するメタデータは HTTP ヘッダーで指定します。
X-Edge-UUID または X-Meas-UUID のいずれかが必須です(両方指定した場合は 400 Bad Request)。 - X-Meas-UUID を指定すると、新しい計測を作成せず、既存の計測にデータを追加します。 - X-Sequence-UUID は X-Meas-UUID と組み合わせて使用し、既存のシーケンスにデータを追加します。X-Base-Time ヘッダーで基準時刻を指定できます(RFC3339 または UNIX マイクロ秒)。 指定しない場合、データ内の最初のチャンクの時刻が使用されます。
X-Base-Time-Name で基準時刻の名前を指定できます(デフォルト: manual)。
X-Base-Time-Priority で基準時刻の優先度(0-255)を指定できます(デフォルト: 60)。
X-Meas-Completed ヘッダーで計測の完了フラグを制御できます。 true を指定すると処理完了後に計測が即 completed 状態へ遷移します(Completed=true および Ended=true がセットされます)。 false を指定する、または指定しない場合は計測の状態は変更されません(デフォルトは false)。
| project_uuid required | string Example: 75c55669-b2ab-4f14-a871-8571c6afa1ef プロジェクトのUUID |
| X-Edge-UUID | string <uuid> エッジのUUID。新しい計測を作成する場合に指定します。 |
| X-Meas-UUID | string <uuid> 既存の計測UUID。既存の計測にデータを追加する場合に指定します。 |
| X-Sequence-UUID | string <uuid> 既存のシーケンスUUID。 |
| X-Base-Time | string 基準時刻(RFC3339 または UNIX マイクロ秒) |
| X-Base-Time-Name | string Default: manual 基準時刻の名前 |
| X-Base-Time-Priority | integer [ 0 .. 255 ] Default: 60 基準時刻の優先度(0-255) |
| X-Meas-Completed | boolean 計測の完了フラグ。 |
{- "job_uuid": "d9135580-4a6b-4fbd-971b-8fdce27b617c"
}ゴミ箱に入っている計測のリストを取得します。
| project_uuid required | string Example: 75c55669-b2ab-4f14-a871-8571c6afa1ef プロジェクトのUUID |
| uuid | Array of strings <uuid> [ items <uuid > ] Example: uuid=11111111-1111-1111-1111-111111111111 ゴミ箱に入っている計測のUUID。 |
| limit | integer [ 0 .. 50 ] Example: limit=1 1回のリクエストで取得する件数。 |
| page | integer >= 0 Example: page=1 取得するページの番号 |
{- "items": [
- {
- "uuid": "2cc7de37-6f71-4458-887e-10e618a6fcfb",
- "name": "meas1",
- "description": "description of measurement",
- "edge_uuid": "00de1861-6614-4435-af07-da9b4338d57c",
- "duration": 100000000,
- "ended": true,
- "status": "measuring",
- "basetime": "2017-02-11T01:23:45.678901Z",
- "basetime_type": "ntp",
- "processed_ratio": 0.9,
- "protected": false,
- "received_data_points": null,
- "markers": [
- {
- "uuid": "887326ce-a2a2-4db6-8c06-2f8447f0f29e",
- "name": "name",
- "description": "description",
- "type": "point",
- "detail": {
- "occurred_elapsed_time": 100
}, - "tag": {
- "key1": "value1",
- "key2": "value2"
}, - "elapsed_time": 1000,
- "created_at": "2017-02-11T01:23:45Z",
- "created_by": "adbbd1ff-1e13-4b12-b125-e213945a65f8",
- "updated_at": "2017-02-11T12:34:56Z",
- "updated_by": "adbbd1ff-1e13-4b12-b125-e213945a65f8"
}
], - "created_at": "2017-02-11T01:23:45Z",
- "updated_at": "2017-02-11T12:34:56Z"
}
], - "total_count": 1
}ゴミ箱に入っている計測と、その計測に関連付けられているデータポイントを直ちに削除します。
| project_uuid required | string Example: 75c55669-b2ab-4f14-a871-8571c6afa1ef プロジェクトのUUID |
| measurement_uuid required | string Example: 86fff159-5887-43c9-bf2d-cd1b522c047d 計測のUUID |
HLSへの変換ジョブのリストを取得します。
| project_uuid required | string Example: 75c55669-b2ab-4f14-a871-8571c6afa1ef プロジェクトのUUID |
| uuid | Array of strings Example: uuid=ade4eea8-edc6-3ca5-c557-12a616c2028a 取得したいジョブのUUID |
| meas_uuid | Array of strings Example: meas_uuid=a5170afc-9cc2-5327-e0e1-32746b5a7977 計測のUUID |
| type | Array of strings (JobType) Items Enum: "update" "finalize" "delete" Example: type=update
|
| status | Array of strings (JobStatus) Items Enum: "unprocessed" "processing" "succeeded" "failed" Example: status=succeeded ジョブのステータス |
| limit | number Example: limit=1000 1回のリクエストで取得する件数 |
| page | integer >= 1 Default: 1 取得するページ番号 |
| sort | string Default: "created_at" Enum: "created_at" "updated_at" Example: sort=created_at 並べ替えに使用するキー |
| order | string Enum: "asc" "desc" Example: order=asc 並べ替えの順序 |
{- "items": [
- {
- "uuid": "ade4eea8-edc6-3ca5-c557-12a616c2028a",
- "meas_uuid": "a5170afc-9cc2-5327-e0e1-32746b5a7977",
- "type": "update",
- "status": "unprocessed",
- "message": "ok",
- "created_at": "2000-01-02T03:04:5Z",
- "updated_at": "2000-01-02T03:04:5Z"
}
], - "total_count": 100
}HLSへの変換ジョブを作成します。
| project_uuid required | string Example: 75c55669-b2ab-4f14-a871-8571c6afa1ef プロジェクトのUUID |
| meas_uuid required | string 計測のUUID |
| type required | string (JobType) Enum: "update" "finalize" "delete"
|
| force_finalize | boolean Default: false 既に動画の最終変換が完了している動画でも、再度最終変換を行うかどうかを指定します。typeが"finalize"の場合にのみ有効です。 |
{- "meas_uuid": "a5170afc-9cc2-5327-e0e1-32746b5a7977",
- "type": "update",
- "force_finalize": false
}{- "uuid": "ade4eea8-edc6-3ca5-c557-12a616c2028a",
- "meas_uuid": "a5170afc-9cc2-5327-e0e1-32746b5a7977",
- "type": "update",
- "status": "unprocessed",
- "message": "ok",
- "created_at": "2000-01-02T03:04:5Z",
- "updated_at": "2000-01-02T03:04:5Z"
}動画(video)のリストを取得します。
| project_uuid required | string Example: 75c55669-b2ab-4f14-a871-8571c6afa1ef プロジェクトのUUID |
| uuid | string Example: uuid=3699e2b9-5d87-4dbd-9b85-098e7dfaee76 動画(video)のUUID |
| meas_uuid | string Example: meas_uuid=3699e2b9-5d87-4dbd-9b85-098e7dfaee76 計測のUUID |
| channel | integer Example: channel=1 チャンネル |
| sort | string Default: "create_at+" 並べ替えに使用するキー。接尾辞
|
| status | string (VideoStatus) Enum: "live" "unprocessed" "processing" "succeeded" "failed" Example: status=succeeded 動画のステータス |
| page | integer >= 1 Default: 1 取得するページ番号 |
| per_page | integer <= 1000 Default: 100 1回のリクエストで取得する件数 |
{- "items": [
- {
- "uuid": "68b91013-47e9-4e68-a965-892549587dfa",
- "measurement_uuid": "d299eea4-d02c-4742-a97a-795346a0c005",
- "measurement": {
- "uuid": "2cc7de37-6f71-4458-887e-10e618a6fcfb",
- "name": "meas1",
- "description": "description of measurement",
- "basetime": "string",
- "basetime_type": "edge_rtc",
- "edge_uuid": "00de1861-6614-4435-af07-da9b4338d57c",
- "duration": 100000000,
- "max_elapsed_time": 100000000,
- "protected": true,
- "sequences": {
- "received_chunks_ratio": 0.5,
- "received_data_points": 123456789,
- "expected_data_points": 123456789,
- "status": "measuring"
}, - "created_at": "2017-02-11T01:23:45Z",
- "updated_at": "2017-02-11T01:23:45Z",
- "processed_ratio": 0.9,
- "ended": true,
- "status": "measuring"
}, - "edge_uuid": "a8afa022-7e60-4f6a-8686-5b99d8785d25",
- "channel": 1,
- "codec": "h264",
- "source_data_type": "h264",
- "source_data_name": "h264_camera_1",
- "offset_time": 0,
- "duration": 10000,
- "fps": 29.98,
- "width": 1920,
- "height": 1080,
- "status": "succeeded",
- "hls": {
- "playlist": "/path-to/playlist.m3u8",
- "playlist_with_endlist_tag": "/path-to/playlist_with_endlist_tag.m3u8"
}, - "mp4s": [
- {
- "uuid": "0108aeb1-f486-400f-9bcd-f176eee8b7e3",
- "start_offset": 0,
- "duration": 10000,
- "trimmed": false,
- "file_path": "/api/media/68b91013-47e9-4e68-a965-892549587dfa/mp4s/0108aeb1-f486-400f-9bcd-f176eee8b7e3/measurement.mp4",
- "thumbnail": "/thumbnail.jpg",
- "status": "unprocessed",
- "created_at": "2000-01-01T00:00:00Z",
- "updated_at": "2000-01-01T00:00:00Z"
}
], - "jpegs": [
- {
- "uuid": "3279bdfb-9079-417e-8f94-ee8126da5933",
- "start_offset": 5000,
- "duration": 10000,
- "trimmed": true,
- "fps": 15,
- "quality": "high",
- "thumbnail": "/thumbnail.jpg",
- "status": "succeeded",
- "created_at": "2000-01-01T00:00:00Z",
- "updated_at": "2000-01-01T00:00:00Z"
}
], - "created_at": "2000-01-01T00:00:00Z",
- "updated_at": "2000-01-01T00:00:00Z"
}
], - "page": {
- "total_count": 1
}
}動画を取得します。
| project_uuid required | string Example: 75c55669-b2ab-4f14-a871-8571c6afa1ef プロジェクトのUUID |
| video_uuid required | string Example: 68b91013-47e9-4e68-a965-892549587dfa 変換元の動画(video)のUUID |
{- "uuid": "68b91013-47e9-4e68-a965-892549587dfa",
- "measurement_uuid": "d299eea4-d02c-4742-a97a-795346a0c005",
- "measurement": {
- "uuid": "2cc7de37-6f71-4458-887e-10e618a6fcfb",
- "name": "meas1",
- "description": "description of measurement",
- "basetime": "string",
- "basetime_type": "edge_rtc",
- "edge_uuid": "00de1861-6614-4435-af07-da9b4338d57c",
- "duration": 100000000,
- "max_elapsed_time": 100000000,
- "protected": true,
- "sequences": {
- "received_chunks_ratio": 0.5,
- "received_data_points": 123456789,
- "expected_data_points": 123456789,
- "status": "measuring"
}, - "created_at": "2017-02-11T01:23:45Z",
- "updated_at": "2017-02-11T01:23:45Z",
- "processed_ratio": 0.9,
- "ended": true,
- "status": "measuring"
}, - "edge_uuid": "a8afa022-7e60-4f6a-8686-5b99d8785d25",
- "channel": 1,
- "codec": "h264",
- "source_data_type": "h264",
- "source_data_name": "h264_camera_1",
- "offset_time": 0,
- "duration": 10000,
- "fps": 29.98,
- "width": 1920,
- "height": 1080,
- "status": "succeeded",
- "hls": {
- "playlist": "/path-to/playlist.m3u8",
- "playlist_with_endlist_tag": "/path-to/playlist_with_endlist_tag.m3u8"
}, - "mp4s": [
- {
- "uuid": "0108aeb1-f486-400f-9bcd-f176eee8b7e3",
- "start_offset": 0,
- "duration": 10000,
- "trimmed": false,
- "file_path": "/api/media/68b91013-47e9-4e68-a965-892549587dfa/mp4s/0108aeb1-f486-400f-9bcd-f176eee8b7e3/measurement.mp4",
- "thumbnail": "/thumbnail.jpg",
- "status": "unprocessed",
- "created_at": "2000-01-01T00:00:00Z",
- "updated_at": "2000-01-01T00:00:00Z"
}
], - "jpegs": [
- {
- "uuid": "3279bdfb-9079-417e-8f94-ee8126da5933",
- "start_offset": 5000,
- "duration": 10000,
- "trimmed": true,
- "fps": 15,
- "quality": "high",
- "thumbnail": "/thumbnail.jpg",
- "status": "succeeded",
- "created_at": "2000-01-01T00:00:00Z",
- "updated_at": "2000-01-01T00:00:00Z"
}
], - "created_at": "2000-01-01T00:00:00Z",
- "updated_at": "2000-01-01T00:00:00Z"
}動画(video)から変換されたMP4データのリストを取得します。
| project_uuid required | string Example: 75c55669-b2ab-4f14-a871-8571c6afa1ef プロジェクトのUUID |
| video_uuid required | string Example: 68b91013-47e9-4e68-a965-892549587dfa 変換元の動画(video)のUUID |
{- "items": [
- {
- "uuid": "0108aeb1-f486-400f-9bcd-f176eee8b7e3",
- "start_offset": 0,
- "duration": 10000,
- "trimmed": false,
- "file_path": "/api/media/68b91013-47e9-4e68-a965-892549587dfa/mp4s/0108aeb1-f486-400f-9bcd-f176eee8b7e3/measurement.mp4",
- "thumbnail": "/thumbnail.jpg",
- "status": "unprocessed",
- "created_at": "2000-01-01T00:00:00Z",
- "updated_at": "2000-01-01T00:00:00Z"
}
], - "page": {
- "total_count": 1
}
}動画(video)を変換してMP4データを作成します。
| project_uuid required | string Example: 75c55669-b2ab-4f14-a871-8571c6afa1ef プロジェクトのUUID |
| video_uuid required | string Example: 68b91013-47e9-4e68-a965-892549587dfa 変換元の動画(video)のUUID |
| trimmed | boolean 時間範囲を指定してその部分のMP4を作成する場合は |
| start_offset | integer 動画の開始時刻からのオフセット(マイクロ秒)。trimmedがtrueの場合は必須です。 |
| duration | integer 長さ(マイクロ秒)。trimmedがtrueの場合は必須です。 |
{- "trimmed": false,
- "start_offset": 0,
- "duration": 10000
}{- "uuid": "0108aeb1-f486-400f-9bcd-f176eee8b7e3",
- "start_offset": 0,
- "duration": 10000,
- "trimmed": false,
- "file_path": "/api/media/68b91013-47e9-4e68-a965-892549587dfa/mp4s/0108aeb1-f486-400f-9bcd-f176eee8b7e3/measurement.mp4",
- "thumbnail": "/thumbnail.jpg",
- "status": "unprocessed",
- "created_at": "2000-01-01T00:00:00Z",
- "updated_at": "2000-01-01T00:00:00Z"
}動画(video)から変換されたMP4データの情報を取得します。
| project_uuid required | string Example: 75c55669-b2ab-4f14-a871-8571c6afa1ef プロジェクトのUUID |
| video_uuid required | string Example: 68b91013-47e9-4e68-a965-892549587dfa 変換元の動画(video)のUUID |
| mp4_uuid required | string Example: 34cd9cc6-4c62-4310-bbfd-04541f59ca0f MP4のUUID |
{- "uuid": "0108aeb1-f486-400f-9bcd-f176eee8b7e3",
- "start_offset": 0,
- "duration": 10000,
- "trimmed": false,
- "file_path": "/api/media/68b91013-47e9-4e68-a965-892549587dfa/mp4s/0108aeb1-f486-400f-9bcd-f176eee8b7e3/measurement.mp4",
- "thumbnail": "/thumbnail.jpg",
- "status": "unprocessed",
- "created_at": "2000-01-01T00:00:00Z",
- "updated_at": "2000-01-01T00:00:00Z"
}動画(video)から変換されたMP4データを削除します。
| project_uuid required | string Example: 75c55669-b2ab-4f14-a871-8571c6afa1ef プロジェクトのUUID |
| video_uuid required | string Example: 68b91013-47e9-4e68-a965-892549587dfa 変換元の動画(video)のUUID |
| mp4_uuid required | string Example: 34cd9cc6-4c62-4310-bbfd-04541f59ca0f MP4のUUID |
動画(video)からMP4データへの変換をキャンセルします。
| project_uuid required | string Example: 75c55669-b2ab-4f14-a871-8571c6afa1ef プロジェクトのUUID |
| video_uuid required | string Example: 68b91013-47e9-4e68-a965-892549587dfa 変換元の動画(video)のUUID |
| mp4_uuid required | string Example: 34cd9cc6-4c62-4310-bbfd-04541f59ca0f MP4のUUID |
{- "uuid": "0108aeb1-f486-400f-9bcd-f176eee8b7e3",
- "start_offset": 0,
- "duration": 10000,
- "trimmed": false,
- "file_path": "/api/media/68b91013-47e9-4e68-a965-892549587dfa/mp4s/0108aeb1-f486-400f-9bcd-f176eee8b7e3/measurement.mp4",
- "thumbnail": "/thumbnail.jpg",
- "status": "unprocessed",
- "created_at": "2000-01-01T00:00:00Z",
- "updated_at": "2000-01-01T00:00:00Z"
}動画(video)から変換されたJPEGデータのリストを取得します。
| project_uuid required | string Example: 75c55669-b2ab-4f14-a871-8571c6afa1ef プロジェクトのUUID |
| video_uuid required | string Example: 68b91013-47e9-4e68-a965-892549587dfa 変換元の動画(video)のUUID |
{- "items": [
- {
- "uuid": "3279bdfb-9079-417e-8f94-ee8126da5933",
- "start_offset": 5000,
- "duration": 10000,
- "trimmed": true,
- "fps": 15,
- "quality": "high",
- "thumbnail": "/thumbnail.jpg",
- "status": "succeeded",
- "created_at": "2000-01-01T00:00:00Z",
- "updated_at": "2000-01-01T00:00:00Z"
}
], - "page": {
- "total_count": 1
}
}動画(video)を変換してJPEGデータを作成します。
| project_uuid required | string Example: 75c55669-b2ab-4f14-a871-8571c6afa1ef プロジェクトのUUID |
| video_uuid required | string Example: 68b91013-47e9-4e68-a965-892549587dfa 変換元の動画(video)のUUID |
| trimmed | boolean 時間範囲を指定してその部分のJPEGを作成する場合は |
| start_offset | integer 計測開始からのオフセット(マイクロ秒)。trimmedがtrueの場合は必須です。 |
| duration | integer 長さ(マイクロ秒)。trimmedがtrueの場合は必須です。 |
| fps | number <float> フレームレート。値が省略された場合は、元のデータと同じフレームレートが使用されます。 |
| quality | string (JpegQuality) Enum: "high" "middle" "low" JPEGの品質。デフォルトは 'middle' です。
|
{- "trimmed": false,
- "start_offset": 0,
- "duration": 10000,
- "fps": 15,
- "quality": "high"
}{- "uuid": "3279bdfb-9079-417e-8f94-ee8126da5933",
- "start_offset": 5000,
- "duration": 10000,
- "trimmed": true,
- "fps": 15,
- "quality": "high",
- "thumbnail": "/thumbnail.jpg",
- "status": "succeeded",
- "created_at": "2000-01-01T00:00:00Z",
- "updated_at": "2000-01-01T00:00:00Z"
}動画(video)から変換されたJPEGデータの情報を取得します。 JPEGファイル自体を取得するには、GET /media/projects/{project_uuid}/videos/{video_uuid}/jpegs/{jpeg_uuid}/images/selected.zip を使用してください。
| project_uuid required | string Example: 75c55669-b2ab-4f14-a871-8571c6afa1ef プロジェクトのUUID |
| video_uuid required | string Example: 68b91013-47e9-4e68-a965-892549587dfa 変換元の動画(video)のUUID |
| jpeg_uuid required | string Example: 3279bdfb-9079-417e-8f94-ee8126da5933 JPEGのUUID |
{- "uuid": "3279bdfb-9079-417e-8f94-ee8126da5933",
- "start_offset": 5000,
- "duration": 10000,
- "trimmed": true,
- "fps": 15,
- "quality": "high",
- "thumbnail": "/thumbnail.jpg",
- "status": "succeeded",
- "created_at": "2000-01-01T00:00:00Z",
- "updated_at": "2000-01-01T00:00:00Z"
}動画(video)から変換されたJPEGデータを削除します。
| project_uuid required | string Example: 75c55669-b2ab-4f14-a871-8571c6afa1ef プロジェクトのUUID |
| video_uuid required | string Example: 68b91013-47e9-4e68-a965-892549587dfa 変換元の動画(video)のUUID |
| jpeg_uuid required | string Example: 3279bdfb-9079-417e-8f94-ee8126da5933 JPEGのUUID |
動画(video)からJPEGデータへの変換をキャンセルします。
| project_uuid required | string Example: 75c55669-b2ab-4f14-a871-8571c6afa1ef プロジェクトのUUID |
| video_uuid required | string Example: 68b91013-47e9-4e68-a965-892549587dfa 変換元の動画(video)のUUID |
| jpeg_uuid required | string Example: 3279bdfb-9079-417e-8f94-ee8126da5933 JPEGのUUID |
{- "uuid": "3279bdfb-9079-417e-8f94-ee8126da5933",
- "start_offset": 5000,
- "duration": 10000,
- "trimmed": true,
- "fps": 15,
- "quality": "high",
- "thumbnail": "/thumbnail.jpg",
- "status": "succeeded",
- "created_at": "2000-01-01T00:00:00Z",
- "updated_at": "2000-01-01T00:00:00Z"
}JPEGデータをZIPファイルにまとめた形で取得します。
| project_uuid required | string Example: 75c55669-b2ab-4f14-a871-8571c6afa1ef プロジェクトのUUID |
| video_uuid required | string Example: 68b91013-47e9-4e68-a965-892549587dfa 変換元の動画(video)のUUID |
| jpeg_uuid required | string Example: 3279bdfb-9079-417e-8f94-ee8126da5933 JPEGのUUID |
| indexes | Array of integers Example: indexes=1 取得したいJPEGのインデックス番号(最初の番号は1)。指定がない場合はすべて取得します。 |
Hookを使用すると、intdash-apiのイベントをHTTPのPOSTリクエストを取得することができます。 Hookを使用する流れは次のとおりです。
また、登録時のシークレットを使用することで、intdashからのリクエストであることを証明することができます。
シークレットを登録するとintdashはリクエストしたペイロードをシークレットでHMAC署名します。
署名は X-Intdash-Signature-256 リクエストヘッダに設定され、アプリケーションへリクエストされます。
アプリケーションはリクエストヘッダに指定された署名を検証することで、intdashからのリクエストであることを判定できます。
フックのリクエストボディスキーマ次のとおりです。
| delivery_uuid required | string <uuid> (HookUUID) |
| hook_uuid required | string <uuid> (HookUUID) |
| resource_type required | string (HookResourceType) |
| action required | string (HookEdgeAction) Enum: "created" "deleted" "updated" |
| edge_uuid required | string <uuid> (HookEdgeUUID) 対象となるエッジUUID。テスト実行時はランダム値となります。 |
| is_test required | boolean (HookIsTest) テスト実行かどうか |
| tenant_id | integer (HookTenantID) 対象となるテナントのID。テナントIDは共有グローバルフックにのみ付与されます。 |
| occurred_at required | string <date-time> (HookReceiverOccurredAt) 発生時刻 |
{- "delivery_uuid": "e42cd906-8e7f-4a1e-8407-f8ca2cc633e1",
- "hook_uuid": "e42cd906-8e7f-4a1e-8407-f8ca2cc633e1",
- "resource_type": "edge",
- "action": "created",
- "edge_uuid": "3d21d4ae-d1c1-45bd-bdb9-2f967f32370c",
- "is_test": true,
- "tenant_id": 0,
- "occurred_at": "2019-08-24T14:15:22Z"
}また、フックリクエストは X-Intdash-Resource-Type ヘッダに、リクエストボディスキーマを決めるため resource_type を付与します。
単一のフックに複数のリソースのイベントを処理する場合は、 X-Intdash-Resource-Type を判別して、型を決めることができます。
フックリクエストを受信し、処理が成功したら 2xx 番台のレスポンスを返却します。 2xx番台以外のレスポンスを返した場合、デリバリは失敗扱いとなります。
フックリクエストのタイムアウトは10秒です。 それよりレスポンスが時間がかかる場合はタイムアウトが発生し、デリバリは失敗扱いとなります。
| hook_uuid | Array of strings <uuid> (HookUUID) [ items <uuid > ] Example: hook_uuid=e42cd906-8e7f-4a1e-8407-f8ca2cc633e1 |
| enabled | Array of booleans (HookEnabled) |
| page | integer Default: 1 Example: page=10 |
| per_page | integer Default: 100 Example: per_page=10 |
{- "items": [
- {
- "uuid": "e42cd906-8e7f-4a1e-8407-f8ca2cc633e1",
- "edges_event": false,
- "measurements_event": false,
- "users_event": false,
- "edge_connections_event": false,
- "project_edges_event": false,
- "project_members_event": false,
- "videos_event": false,
- "tenants_event": false,
- "is_shared_global": true,
- "enabled": true,
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z"
}
], - "page": {
- "next": true,
- "prev": true,
- "next_page": 1,
- "prev_page": 1,
- "total_page": 1,
- "total_count": 1
}
}| url required | string <uri> (HookURL) WebhookのURL |
| secret | string (HookSecret) [ 32 .. 255 ] characters [0-9][a-z][A-Z][-_].* シークレット。 ペイロードの署名に使用します。詳細は Hooks Request を参照してください。 空の場合はサーバーが鍵を生成します。 |
| edges_event | boolean (HookEdgesEvent) エッジイベントを表します。
エッジイベントは Hooks Request の |
| measurements_event | boolean (HookMeasurementsEvent) 計測イベントを表します。
計測イベントは Hooks Request の |
| users_event | boolean (HookUsersEvent) ユーザーイベントを表します。
ユーザーイベントは Hooks Request の |
| edge_connections_event | boolean (HookEdgeConnectionsEvent) エッジ接続イベントを表します。
エッジ接続イベントは Hooks Request の |
| project_edges_event | boolean (HookProjectEdgesEvent) プロジェクトエッジのイベントを表します。
プロジェクトエッジイベントは Hooks Request の |
| project_members_event | boolean (HookProjectMemberEvent) プロジェクトメンバーのイベントを表します。
プロジェクトメンバーイベントは Hooks Request の |
| videos_event | boolean (HookVideosEvent) ビデオイベントを表します。
ビデオイベントは Hooks Request の |
{- "secret": "stringstringstringstringstringst",
- "edges_event": false,
- "measurements_event": false,
- "users_event": false,
- "edge_connections_event": false,
- "project_edges_event": false,
- "project_members_event": false,
- "videos_event": false
}{- "uuid": "e42cd906-8e7f-4a1e-8407-f8ca2cc633e1",
- "edges_event": false,
- "measurements_event": false,
- "users_event": false,
- "edge_connections_event": false,
- "project_edges_event": false,
- "project_members_event": false,
- "videos_event": false,
- "tenants_event": false,
- "is_shared_global": true,
- "enabled": true,
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "secret": "string"
}| hook_uuid required | string <uuid> Example: 1acd5659-5786-4f8d-bca9-6842fdb5b138 |
{- "uuid": "e42cd906-8e7f-4a1e-8407-f8ca2cc633e1",
- "edges_event": false,
- "measurements_event": false,
- "users_event": false,
- "edge_connections_event": false,
- "project_edges_event": false,
- "project_members_event": false,
- "videos_event": false,
- "tenants_event": false,
- "is_shared_global": true,
- "enabled": true,
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z"
}| hook_uuid required | string <uuid> Example: 1acd5659-5786-4f8d-bca9-6842fdb5b138 |
| url | string <uri> (HookURL) WebhookのURL |
| secret | string (HookSecret) [ 32 .. 255 ] characters [0-9][a-z][A-Z][-_].* シークレット。 ペイロードの署名に使用します。詳細は Hooks Request を参照してください。 空の場合はサーバーが鍵を生成します。 |
| edges_event | boolean (HookEdgesEvent) エッジイベントを表します。
エッジイベントは Hooks Request の |
| measurements_event | boolean (HookMeasurementsEvent) 計測イベントを表します。
計測イベントは Hooks Request の |
| users_event | boolean (HookUsersEvent) ユーザーイベントを表します。
ユーザーイベントは Hooks Request の |
| edge_connections_event | boolean (HookEdgeConnectionsEvent) エッジ接続イベントを表します。
エッジ接続イベントは Hooks Request の |
| project_edges_event | boolean (HookProjectEdgesEvent) プロジェクトエッジのイベントを表します。
プロジェクトエッジイベントは Hooks Request の |
| project_members_event | boolean (HookProjectMemberEvent) プロジェクトメンバーのイベントを表します。
プロジェクトメンバーイベントは Hooks Request の |
| videos_event | boolean (HookVideosEvent) ビデオイベントを表します。
ビデオイベントは Hooks Request の |
{- "secret": "stringstringstringstringstringst",
- "edges_event": false,
- "measurements_event": false,
- "users_event": false,
- "edge_connections_event": false,
- "project_edges_event": false,
- "project_members_event": false,
- "videos_event": false
}{- "uuid": "e42cd906-8e7f-4a1e-8407-f8ca2cc633e1",
- "edges_event": false,
- "measurements_event": false,
- "users_event": false,
- "edge_connections_event": false,
- "project_edges_event": false,
- "project_members_event": false,
- "videos_event": false,
- "tenants_event": false,
- "is_shared_global": true,
- "enabled": true,
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z"
}| hook_uuid required | string <uuid> Example: 1acd5659-5786-4f8d-bca9-6842fdb5b138 |
{- "uuid": "e42cd906-8e7f-4a1e-8407-f8ca2cc633e1",
- "edges_event": false,
- "measurements_event": false,
- "users_event": false,
- "edge_connections_event": false,
- "project_edges_event": false,
- "project_members_event": false,
- "videos_event": false,
- "tenants_event": false,
- "is_shared_global": true,
- "enabled": true,
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z"
}| hook_uuid required | string <uuid> Example: 1acd5659-5786-4f8d-bca9-6842fdb5b138 |
{- "uuid": "e42cd906-8e7f-4a1e-8407-f8ca2cc633e1",
- "edges_event": false,
- "measurements_event": false,
- "users_event": false,
- "edge_connections_event": false,
- "project_edges_event": false,
- "project_members_event": false,
- "videos_event": false,
- "tenants_event": false,
- "is_shared_global": true,
- "enabled": true,
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z"
}| hook_uuid required | string <uuid> Example: 1acd5659-5786-4f8d-bca9-6842fdb5b138 |
| resource_type | string (HookResourceType) |
| action | string (HookEdgeAction) Enum: "created" "deleted" "updated" |
{- "resource_type": "edge",
- "action": "created"
}{- "uuid": "e42cd906-8e7f-4a1e-8407-f8ca2cc633e1",
- "hook_uuid": "e42cd906-8e7f-4a1e-8407-f8ca2cc633e1",
- "redelivered_by": "a373d0a8-0003-479e-9115-9724b9d72de8",
- "status": "processing",
- "reason": "string",
- "is_test": true,
- "request": {
- "headers": "X-Header1: HeaderValue1\nX-Header2: HeaderValue2",
- "body": "{\"example\":\"value\"}"
}, - "response": {
- "status": 0,
- "headers": "X-Header1: HeaderValue1\nX-Header2: HeaderValue2",
- "body": "{\"example\":\"value\"}"
}, - "finished_at": "2019-08-24T14:15:22Z",
- "created_at": "2019-08-24T14:15:22Z"
}| hook_uuid required | string <uuid> Example: 1acd5659-5786-4f8d-bca9-6842fdb5b138 |
| hook_delivery_uuid | Array of strings <uuid> (HookUUID) [ items <uuid > ] Example: hook_delivery_uuid=e42cd906-8e7f-4a1e-8407-f8ca2cc633e1 |
| hook_redelivered_by | Array of strings <uuid> (HookUUID) [ items <uuid > ] Example: hook_redelivered_by=e42cd906-8e7f-4a1e-8407-f8ca2cc633e1 |
| is_redeliver | Array of booleans |
| is_test | Array of booleans (HookIsTest) |
| status | Array of strings (HookDeliveryStatus) Items Enum: "processing" "succeeded" "failed" |
| page | integer Default: 1 Example: page=10 |
| per_page | integer Default: 100 Example: per_page=10 |
{- "items": [
- {
- "uuid": "e42cd906-8e7f-4a1e-8407-f8ca2cc633e1",
- "hook_uuid": "e42cd906-8e7f-4a1e-8407-f8ca2cc633e1",
- "redelivered_by": "a373d0a8-0003-479e-9115-9724b9d72de8",
- "status": "processing",
- "reason": "string",
- "is_test": true,
- "request": {
- "headers": "X-Header1: HeaderValue1\nX-Header2: HeaderValue2",
- "body": "{\"example\":\"value\"}"
}, - "response": {
- "status": 0,
- "headers": "X-Header1: HeaderValue1\nX-Header2: HeaderValue2",
- "body": "{\"example\":\"value\"}"
}, - "finished_at": "2019-08-24T14:15:22Z",
- "created_at": "2019-08-24T14:15:22Z"
}
], - "page": {
- "next": true,
- "prev": true,
- "next_page": 1,
- "prev_page": 1,
- "total_page": 1,
- "total_count": 1
}
}| hook_delivery_uuid | Array of strings <uuid> (HookUUID) [ items <uuid > ] Example: hook_delivery_uuid=e42cd906-8e7f-4a1e-8407-f8ca2cc633e1 |
| hook_uuid | Array of strings <uuid> (HookUUID) [ items <uuid > ] Example: hook_uuid=e42cd906-8e7f-4a1e-8407-f8ca2cc633e1 |
| hook_redelivered_by | Array of strings <uuid> (HookUUID) [ items <uuid > ] Example: hook_redelivered_by=e42cd906-8e7f-4a1e-8407-f8ca2cc633e1 |
| is_redeliver | Array of booleans |
| is_test | Array of booleans (HookIsTest) |
| status | Array of strings (HookDeliveryStatus) Items Enum: "processing" "succeeded" "failed" |
| page | integer Default: 1 Example: page=10 |
| per_page | integer Default: 100 Example: per_page=10 |
{- "items": [
- {
- "uuid": "e42cd906-8e7f-4a1e-8407-f8ca2cc633e1",
- "hook_uuid": "e42cd906-8e7f-4a1e-8407-f8ca2cc633e1",
- "redelivered_by": "a373d0a8-0003-479e-9115-9724b9d72de8",
- "status": "processing",
- "reason": "string",
- "is_test": true,
- "request": {
- "headers": "X-Header1: HeaderValue1\nX-Header2: HeaderValue2",
- "body": "{\"example\":\"value\"}"
}, - "response": {
- "status": 0,
- "headers": "X-Header1: HeaderValue1\nX-Header2: HeaderValue2",
- "body": "{\"example\":\"value\"}"
}, - "finished_at": "2019-08-24T14:15:22Z",
- "created_at": "2019-08-24T14:15:22Z"
}
], - "page": {
- "next": true,
- "prev": true,
- "next_page": 1,
- "prev_page": 1,
- "total_page": 1,
- "total_count": 1
}
}| hook_delivery_uuid required | string <uuid> Example: c6e27662-37ab-4e2c-b5fa-9fa7495bb01b |
{- "uuid": "e42cd906-8e7f-4a1e-8407-f8ca2cc633e1",
- "hook_uuid": "e42cd906-8e7f-4a1e-8407-f8ca2cc633e1",
- "redelivered_by": "a373d0a8-0003-479e-9115-9724b9d72de8",
- "status": "processing",
- "reason": "string",
- "is_test": true,
- "request": {
- "headers": "X-Header1: HeaderValue1\nX-Header2: HeaderValue2",
- "body": "{\"example\":\"value\"}"
}, - "response": {
- "status": 0,
- "headers": "X-Header1: HeaderValue1\nX-Header2: HeaderValue2",
- "body": "{\"example\":\"value\"}"
}, - "finished_at": "2019-08-24T14:15:22Z",
- "created_at": "2019-08-24T14:15:22Z"
}| hook_delivery_uuid required | string <uuid> Example: c6e27662-37ab-4e2c-b5fa-9fa7495bb01b |
{- "uuid": "e42cd906-8e7f-4a1e-8407-f8ca2cc633e1",
- "hook_uuid": "e42cd906-8e7f-4a1e-8407-f8ca2cc633e1",
- "redelivered_by": "a373d0a8-0003-479e-9115-9724b9d72de8",
- "status": "processing",
- "reason": "string",
- "is_test": true,
- "request": {
- "headers": "X-Header1: HeaderValue1\nX-Header2: HeaderValue2",
- "body": "{\"example\":\"value\"}"
}, - "response": {
- "status": 0,
- "headers": "X-Header1: HeaderValue1\nX-Header2: HeaderValue2",
- "body": "{\"example\":\"value\"}"
}, - "finished_at": "2019-08-24T14:15:22Z",
- "created_at": "2019-08-24T14:15:22Z"
}| project_uuid required | string <uuid> (HookUUID) Example: c8c9bd69-459d-4d83-8df7-d74afc23ba3e |
| hook_uuid | Array of strings <uuid> (HookUUID) [ items <uuid > ] Example: hook_uuid=e42cd906-8e7f-4a1e-8407-f8ca2cc633e1 |
| enabled | Array of booleans (HookEnabled) |
| page | integer Default: 1 Example: page=10 |
| per_page | integer Default: 100 Example: per_page=10 |
{- "items": [
- {
- "uuid": "e42cd906-8e7f-4a1e-8407-f8ca2cc633e1",
- "measurements_event": false,
- "edge_connections_event": false,
- "project_edges_event": false,
- "project_members_event": false,
- "enabled": true,
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z"
}
], - "page": {
- "next": true,
- "prev": true,
- "next_page": 1,
- "prev_page": 1,
- "total_page": 1,
- "total_count": 1
}
}| project_uuid required | string <uuid> (HookUUID) Example: c8c9bd69-459d-4d83-8df7-d74afc23ba3e |
| url required | string <uri> (HookURL) WebhookのURL |
| secret | string (HookSecret) [ 32 .. 255 ] characters [0-9][a-z][A-Z][-_].* シークレット。 ペイロードの署名に使用します。詳細は Hooks Request を参照してください。 空の場合はサーバーが鍵を生成します。 |
| measurements_event | boolean (HookMeasurementsEvent) 計測イベントを表します。
計測イベントは Hooks Request の |
| edge_connections_event | boolean (HookEdgeConnectionsEvent) エッジ接続イベントを表します。
エッジ接続イベントは Hooks Request の |
| project_edges_event | boolean (HookProjectEdgesEvent) プロジェクトエッジのイベントを表します。
プロジェクトエッジイベントは Hooks Request の |
| project_members_event | boolean (HookProjectMemberEvent) プロジェクトメンバーのイベントを表します。
プロジェクトメンバーイベントは Hooks Request の |
{- "secret": "stringstringstringstringstringst",
- "measurements_event": false,
- "edge_connections_event": false,
- "project_edges_event": false,
- "project_members_event": false
}{- "uuid": "e42cd906-8e7f-4a1e-8407-f8ca2cc633e1",
- "measurements_event": false,
- "edge_connections_event": false,
- "project_edges_event": false,
- "project_members_event": false,
- "enabled": true,
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z",
- "secret": "string"
}| project_uuid required | string <uuid> (HookUUID) Example: c8c9bd69-459d-4d83-8df7-d74afc23ba3e |
| hook_uuid required | string <uuid> Example: 1acd5659-5786-4f8d-bca9-6842fdb5b138 |
{- "uuid": "e42cd906-8e7f-4a1e-8407-f8ca2cc633e1",
- "measurements_event": false,
- "edge_connections_event": false,
- "project_edges_event": false,
- "project_members_event": false,
- "enabled": true,
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z"
}| project_uuid required | string <uuid> (HookUUID) Example: c8c9bd69-459d-4d83-8df7-d74afc23ba3e |
| hook_uuid required | string <uuid> Example: 1acd5659-5786-4f8d-bca9-6842fdb5b138 |
| url | string <uri> (HookURL) WebhookのURL |
| secret | string (HookSecret) [ 32 .. 255 ] characters [0-9][a-z][A-Z][-_].* シークレット。 ペイロードの署名に使用します。詳細は Hooks Request を参照してください。 空の場合はサーバーが鍵を生成します。 |
| measurements_event | boolean (HookMeasurementsEvent) 計測イベントを表します。
計測イベントは Hooks Request の |
| edge_connections_event | boolean (HookEdgeConnectionsEvent) エッジ接続イベントを表します。
エッジ接続イベントは Hooks Request の |
| project_edges_event | boolean (HookProjectEdgesEvent) プロジェクトエッジのイベントを表します。
プロジェクトエッジイベントは Hooks Request の |
| project_members_event | boolean (HookProjectMemberEvent) プロジェクトメンバーのイベントを表します。
プロジェクトメンバーイベントは Hooks Request の |
{- "secret": "stringstringstringstringstringst",
- "measurements_event": false,
- "edge_connections_event": false,
- "project_edges_event": false,
- "project_members_event": false
}{- "uuid": "e42cd906-8e7f-4a1e-8407-f8ca2cc633e1",
- "measurements_event": false,
- "edge_connections_event": false,
- "project_edges_event": false,
- "project_members_event": false,
- "enabled": true,
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z"
}| project_uuid required | string <uuid> (HookUUID) Example: c8c9bd69-459d-4d83-8df7-d74afc23ba3e |
| hook_uuid required | string <uuid> Example: 1acd5659-5786-4f8d-bca9-6842fdb5b138 |
{- "uuid": "e42cd906-8e7f-4a1e-8407-f8ca2cc633e1",
- "measurements_event": false,
- "edge_connections_event": false,
- "project_edges_event": false,
- "project_members_event": false,
- "enabled": true,
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z"
}| project_uuid required | string <uuid> (HookUUID) Example: c8c9bd69-459d-4d83-8df7-d74afc23ba3e |
| hook_uuid required | string <uuid> Example: 1acd5659-5786-4f8d-bca9-6842fdb5b138 |
{- "uuid": "e42cd906-8e7f-4a1e-8407-f8ca2cc633e1",
- "measurements_event": false,
- "edge_connections_event": false,
- "project_edges_event": false,
- "project_members_event": false,
- "enabled": true,
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z"
}| project_uuid required | string <uuid> (HookUUID) Example: c8c9bd69-459d-4d83-8df7-d74afc23ba3e |
| hook_uuid required | string <uuid> Example: 1acd5659-5786-4f8d-bca9-6842fdb5b138 |
| resource_type | string (HookResourceType) |
| action | string (HookEdgeAction) Enum: "created" "deleted" "updated" |
{- "resource_type": "edge",
- "action": "created"
}{- "uuid": "e42cd906-8e7f-4a1e-8407-f8ca2cc633e1",
- "hook_uuid": "e42cd906-8e7f-4a1e-8407-f8ca2cc633e1",
- "redelivered_by": "a373d0a8-0003-479e-9115-9724b9d72de8",
- "status": "processing",
- "reason": "string",
- "is_test": true,
- "request": {
- "headers": "X-Header1: HeaderValue1\nX-Header2: HeaderValue2",
- "body": "{\"example\":\"value\"}"
}, - "response": {
- "status": 0,
- "headers": "X-Header1: HeaderValue1\nX-Header2: HeaderValue2",
- "body": "{\"example\":\"value\"}"
}, - "finished_at": "2019-08-24T14:15:22Z",
- "created_at": "2019-08-24T14:15:22Z"
}| project_uuid required | string <uuid> (HookUUID) Example: c8c9bd69-459d-4d83-8df7-d74afc23ba3e |
| hook_uuid required | string <uuid> Example: 1acd5659-5786-4f8d-bca9-6842fdb5b138 |
| hook_delivery_uuid | Array of strings <uuid> (HookUUID) [ items <uuid > ] Example: hook_delivery_uuid=e42cd906-8e7f-4a1e-8407-f8ca2cc633e1 |
| hook_redelivered_by | Array of strings <uuid> (HookUUID) [ items <uuid > ] Example: hook_redelivered_by=e42cd906-8e7f-4a1e-8407-f8ca2cc633e1 |
| is_redeliver | Array of booleans |
| is_test | Array of booleans (HookIsTest) |
| status | Array of strings (HookDeliveryStatus) Items Enum: "processing" "succeeded" "failed" |
| page | integer Default: 1 Example: page=10 |
| per_page | integer Default: 100 Example: per_page=10 |
{- "items": [
- {
- "uuid": "e42cd906-8e7f-4a1e-8407-f8ca2cc633e1",
- "hook_uuid": "e42cd906-8e7f-4a1e-8407-f8ca2cc633e1",
- "redelivered_by": "a373d0a8-0003-479e-9115-9724b9d72de8",
- "status": "processing",
- "reason": "string",
- "is_test": true,
- "request": {
- "headers": "X-Header1: HeaderValue1\nX-Header2: HeaderValue2",
- "body": "{\"example\":\"value\"}"
}, - "response": {
- "status": 0,
- "headers": "X-Header1: HeaderValue1\nX-Header2: HeaderValue2",
- "body": "{\"example\":\"value\"}"
}, - "finished_at": "2019-08-24T14:15:22Z",
- "created_at": "2019-08-24T14:15:22Z"
}
], - "page": {
- "next": true,
- "prev": true,
- "next_page": 1,
- "prev_page": 1,
- "total_page": 1,
- "total_count": 1
}
}| project_uuid required | string <uuid> (HookUUID) Example: c8c9bd69-459d-4d83-8df7-d74afc23ba3e |
| hook_delivery_uuid | Array of strings <uuid> (HookUUID) [ items <uuid > ] Example: hook_delivery_uuid=e42cd906-8e7f-4a1e-8407-f8ca2cc633e1 |
| hook_uuid | Array of strings <uuid> (HookUUID) [ items <uuid > ] Example: hook_uuid=e42cd906-8e7f-4a1e-8407-f8ca2cc633e1 |
| hook_redelivered_by | Array of strings <uuid> (HookUUID) [ items <uuid > ] Example: hook_redelivered_by=e42cd906-8e7f-4a1e-8407-f8ca2cc633e1 |
| is_redeliver | Array of booleans |
| is_test | Array of booleans (HookIsTest) |
| status | Array of strings (HookDeliveryStatus) Items Enum: "processing" "succeeded" "failed" |
| page | integer Default: 1 Example: page=10 |
| per_page | integer Default: 100 Example: per_page=10 |
{- "items": [
- {
- "uuid": "e42cd906-8e7f-4a1e-8407-f8ca2cc633e1",
- "hook_uuid": "e42cd906-8e7f-4a1e-8407-f8ca2cc633e1",
- "redelivered_by": "a373d0a8-0003-479e-9115-9724b9d72de8",
- "status": "processing",
- "reason": "string",
- "is_test": true,
- "request": {
- "headers": "X-Header1: HeaderValue1\nX-Header2: HeaderValue2",
- "body": "{\"example\":\"value\"}"
}, - "response": {
- "status": 0,
- "headers": "X-Header1: HeaderValue1\nX-Header2: HeaderValue2",
- "body": "{\"example\":\"value\"}"
}, - "finished_at": "2019-08-24T14:15:22Z",
- "created_at": "2019-08-24T14:15:22Z"
}
], - "page": {
- "next": true,
- "prev": true,
- "next_page": 1,
- "prev_page": 1,
- "total_page": 1,
- "total_count": 1
}
}| project_uuid required | string <uuid> (HookUUID) Example: c8c9bd69-459d-4d83-8df7-d74afc23ba3e |
| hook_delivery_uuid required | string <uuid> Example: c6e27662-37ab-4e2c-b5fa-9fa7495bb01b |
{- "uuid": "e42cd906-8e7f-4a1e-8407-f8ca2cc633e1",
- "hook_uuid": "e42cd906-8e7f-4a1e-8407-f8ca2cc633e1",
- "redelivered_by": "a373d0a8-0003-479e-9115-9724b9d72de8",
- "status": "processing",
- "reason": "string",
- "is_test": true,
- "request": {
- "headers": "X-Header1: HeaderValue1\nX-Header2: HeaderValue2",
- "body": "{\"example\":\"value\"}"
}, - "response": {
- "status": 0,
- "headers": "X-Header1: HeaderValue1\nX-Header2: HeaderValue2",
- "body": "{\"example\":\"value\"}"
}, - "finished_at": "2019-08-24T14:15:22Z",
- "created_at": "2019-08-24T14:15:22Z"
}| project_uuid required | string <uuid> (HookUUID) Example: c8c9bd69-459d-4d83-8df7-d74afc23ba3e |
| hook_delivery_uuid required | string <uuid> Example: c6e27662-37ab-4e2c-b5fa-9fa7495bb01b |
{- "uuid": "e42cd906-8e7f-4a1e-8407-f8ca2cc633e1",
- "hook_uuid": "e42cd906-8e7f-4a1e-8407-f8ca2cc633e1",
- "redelivered_by": "a373d0a8-0003-479e-9115-9724b9d72de8",
- "status": "processing",
- "reason": "string",
- "is_test": true,
- "request": {
- "headers": "X-Header1: HeaderValue1\nX-Header2: HeaderValue2",
- "body": "{\"example\":\"value\"}"
}, - "response": {
- "status": 0,
- "headers": "X-Header1: HeaderValue1\nX-Header2: HeaderValue2",
- "body": "{\"example\":\"value\"}"
}, - "finished_at": "2019-08-24T14:15:22Z",
- "created_at": "2019-08-24T14:15:22Z"
}変換結果のリストを取得します。
| project_uuid required | string <uuid> (project-uuid) Example: 11176283-b86f-4f7b-b035-d77bd4c2fc98 プロジェクトのUUID |
| uuid | Array of strings <uuid> (conversion-output-uuids) [ items <uuid > ] Example: uuid=a1b6a490-ba48-40db-950c-305815f7f606 変換結果のUUID |
| job_statuses | Array of strings (conversion-output-job-status) Items Enum: "requested" "accepted" "processing" "canceling" "canceled" "failed" "interrupted" "succeeded" Example: job_statuses=succeeded&job_statuses=processing 変換ジョブのステータス |
| measurement_slice_started_at_from | string <date-time> (conversion-output-measurement-slice-started-at) Example: measurement_slice_started_at_from=2019-10-29T03:04:05.123456789Z 取得対象区間の始点(RFC3339形式、ナノ秒精度)。始点は対象区間に含まれます。 変換結果の始点が、ここで指定した時刻と同じかそれより後の場合、その変換結果は取得対象になります。 このパラメーターを指定する場合は、 |
| measurement_slice_started_at_to | string <date-time> (conversion-output-measurement-slice-started-at) Example: measurement_slice_started_at_to=2019-10-29T03:04:05.123456789Z 取得対象区間の終点(RFC3339形式、ナノ秒精度)。終点は対象区間に含まれません。 変換結果の始点が、ここで指定した時刻よりも前の場合、その変換結果は取得対象になります。 このパラメーターを指定する場合は、 |
| name | Array of strings Example: name=output-name-1&name=output-name-2 変換結果の名前で検索します(部分一致)。複数指定した場合はOR条件になります。 |
| sort | string Default: "created_at" Enum: "name" "created_at" Example: sort=created_at 並べ替えに使用するキー |
| types | Array of strings (conversion-output-type) Items Enum: "mdf_file" "csv_file" "rosbag_file" "parquet_file" Example: types=csv_file&types=mdf_file&types=rosbag_file |
| page | integer <int32> >= 1 Default: 1 Example: page=1 取得するページの番号 |
| per_page | integer <int32> >= 1 Default: 100 Example: per_page=100 1回のリクエストで取得する件数 |
| order | string (order-type) Default: "asc" Enum: "asc" "desc" Example: order=asc 並べ替えの順序 |
{- "items": [
- {
- "uuid": "02d96e01-1dd1-4b68-96ff-867a2740d712",
- "name": "string",
- "description": "description",
- "measurement_snapshot": {
- "uuid": "97e9f614-0dc5-4462-8d1f-fa57b4501ebe",
- "name": "measurement-name",
- "edge_uuid": "bd695c60-bec8-4b95-93c2-89115e641d3a",
- "edge_name": "edge-name",
- "base_time": "2019-08-24T14:15:22Z",
- "base_time_name": "string",
- "start_time": "2019-08-24T14:15:22Z",
- "end_time": "2019-08-24T14:15:22Z",
- "status": "string",
- "videos": [
- {
- "uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f",
- "channel": 1,
- "source_data_name": "string",
- "source_data_type": "string",
- "status": "failed",
- "created_at": "2024-01-02T15:00:00.000000Z",
- "updated_at": "2024-01-03T15:00:00.000000Z"
}
], - "created_at": "2024-01-02T15:00:00.000000Z",
- "updated_at": "2024-01-03T15:00:00.000000Z"
}, - "measurement_slice_started_at": "2019-08-24T14:15:22Z",
- "measurement_slice_ended_at": "2019-08-24T14:15:22Z",
- "type": "mdf_file",
- "job": {
- "status": "succeeded",
- "started_at": "2023-12-31T15:00:00.000000Z",
- "ended_at": "2024-01-01T15:00:00.000000Z",
- "error": {
- "type": "measurement_not_found",
- "measurement_uuid": "ad55f277-8b84-4205-8cfb-3039bba9807e",
- "videos": [
- {
- "data_id": {
- "name": "data-name",
- "type": "data-type"
}
}
], - "cause": "XXXXX"
}
}, - "file": {
- "file_name": "output.zip",
- "file_size": 102400
}, - "created_at": "2024-01-02T15:00:00.000000Z",
- "updated_at": "2024-01-03T15:00:00.000000Z"
}
], - "page": {
- "total_count": 100,
- "page": 2,
- "has_next": true,
- "next": 3,
- "has_previous": true,
- "previous": 1,
- "last": 10,
- "per_page": 10,
- "sort": "sort-column",
- "order": "asc"
}
}計測データを変換します。
| project_uuid required | string <uuid> (project-uuid) Example: 11176283-b86f-4f7b-b035-d77bd4c2fc98 プロジェクトのUUID |
| measurement_uuid required | string <uuid> (measurement-uuid) 計測のUUID |
| type required | string (conversion-output-type) Default: "mdf_file" 変換結果の形式 |
| description | string <= 65535 characters 変換結果に付与する説明 |
| measurement_slice_started_at | string <date-time> (conversion-output-measurement-slice-started-at) 変換対象範囲の始点(RFC3339形式、ナノ秒精度)。デフォルト値は計測の一番優先度の高い基準時刻です。 |
| measurement_slice_ended_at | string <date-time> (conversion-output-measurement-slice-ended-at) 変換対象範囲の終点(RFC3339形式、ナノ秒精度)。デフォルト値は計測の終了時刻です。 |
| name required | string <= 255 characters ^[a-zA-Z0-9-_]+$ 出力結果の名前(出力ファイル名) |
required | Array of objects (create-conversion-output-target) 出力対象データ |
{- "measurement_uuid": "97e9f614-0dc5-4462-8d1f-fa57b4501ebe",
- "type": "mdf_file",
- "description": "description",
- "measurement_slice_started_at": "2019-08-24T14:15:22Z",
- "measurement_slice_ended_at": "2019-08-24T14:15:22Z",
- "name": "output-name",
- "targets": [
- {
- "data_id": {
- "name": "data-name",
- "type": "data-type"
}, - "data_extraction_setting_uuids": [
- "497f6eca-6276-4993-bfeb-53cbbbba6f08"
]
}
]
}{- "uuid": "02d96e01-1dd1-4b68-96ff-867a2740d712",
- "name": "string",
- "description": "description",
- "measurement_snapshot": {
- "uuid": "97e9f614-0dc5-4462-8d1f-fa57b4501ebe",
- "name": "measurement-name",
- "edge_uuid": "bd695c60-bec8-4b95-93c2-89115e641d3a",
- "edge_name": "edge-name",
- "base_time": "2019-08-24T14:15:22Z",
- "base_time_name": "string",
- "start_time": "2019-08-24T14:15:22Z",
- "end_time": "2019-08-24T14:15:22Z",
- "status": "string",
- "videos": [
- {
- "uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f",
- "channel": 1,
- "source_data_name": "string",
- "source_data_type": "string",
- "status": "failed",
- "created_at": "2024-01-02T15:00:00.000000Z",
- "updated_at": "2024-01-03T15:00:00.000000Z"
}
], - "created_at": "2024-01-02T15:00:00.000000Z",
- "updated_at": "2024-01-03T15:00:00.000000Z"
}, - "measurement_slice_started_at": "2019-08-24T14:15:22Z",
- "measurement_slice_ended_at": "2019-08-24T14:15:22Z",
- "type": "mdf_file",
- "job": {
- "status": "succeeded",
- "started_at": "2023-12-31T15:00:00.000000Z",
- "ended_at": "2024-01-01T15:00:00.000000Z",
- "error": {
- "type": "measurement_not_found",
- "measurement_uuid": "ad55f277-8b84-4205-8cfb-3039bba9807e",
- "videos": [
- {
- "data_id": {
- "name": "data-name",
- "type": "data-type"
}
}
], - "cause": "XXXXX"
}
}, - "file": {
- "file_name": "output.zip",
- "file_size": 102400
}, - "created_at": "2024-01-02T15:00:00.000000Z",
- "updated_at": "2024-01-03T15:00:00.000000Z",
- "targets": [
- {
- "data_id": {
- "name": "data-name",
- "type": "data-type"
}, - "data_extraction_settings": [
- {
- "uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f",
- "name": "extraction_name",
- "description": "description",
- "data_id_filters": [
- {
- "name": "data-name",
- "type": "data-type"
}
], - "creation_type": "file",
- "creation_file": {
- "name": "xxxx.dat",
- "type": "vm2m_dat"
}, - "created_at": "2024-01-02T15:00:00.000000Z",
- "updated_at": "2024-01-03T15:00:00.000000Z",
- "type": "can_data_field"
}
]
}
]
}変換結果を取得します。
| project_uuid required | string <uuid> (project-uuid) Example: 11176283-b86f-4f7b-b035-d77bd4c2fc98 プロジェクトのUUID |
| conversion_output_uuid required | string <uuid> (conversion-output-uuid) Example: 02d96e01-1dd1-4b68-96ff-867a2740d712 変換結果のUUID |
{- "uuid": "02d96e01-1dd1-4b68-96ff-867a2740d712",
- "name": "string",
- "description": "description",
- "measurement_snapshot": {
- "uuid": "97e9f614-0dc5-4462-8d1f-fa57b4501ebe",
- "name": "measurement-name",
- "edge_uuid": "bd695c60-bec8-4b95-93c2-89115e641d3a",
- "edge_name": "edge-name",
- "base_time": "2019-08-24T14:15:22Z",
- "base_time_name": "string",
- "start_time": "2019-08-24T14:15:22Z",
- "end_time": "2019-08-24T14:15:22Z",
- "status": "string",
- "videos": [
- {
- "uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f",
- "channel": 1,
- "source_data_name": "string",
- "source_data_type": "string",
- "status": "failed",
- "created_at": "2024-01-02T15:00:00.000000Z",
- "updated_at": "2024-01-03T15:00:00.000000Z"
}
], - "created_at": "2024-01-02T15:00:00.000000Z",
- "updated_at": "2024-01-03T15:00:00.000000Z"
}, - "measurement_slice_started_at": "2019-08-24T14:15:22Z",
- "measurement_slice_ended_at": "2019-08-24T14:15:22Z",
- "type": "mdf_file",
- "job": {
- "status": "succeeded",
- "started_at": "2023-12-31T15:00:00.000000Z",
- "ended_at": "2024-01-01T15:00:00.000000Z",
- "error": {
- "type": "measurement_not_found",
- "measurement_uuid": "ad55f277-8b84-4205-8cfb-3039bba9807e",
- "videos": [
- {
- "data_id": {
- "name": "data-name",
- "type": "data-type"
}
}
], - "cause": "XXXXX"
}
}, - "file": {
- "file_name": "output.zip",
- "file_size": 102400
}, - "created_at": "2024-01-02T15:00:00.000000Z",
- "updated_at": "2024-01-03T15:00:00.000000Z",
- "targets": [
- {
- "data_id": {
- "name": "data-name",
- "type": "data-type"
}, - "data_extraction_settings": [
- {
- "uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f",
- "name": "extraction_name",
- "description": "description",
- "data_id_filters": [
- {
- "name": "data-name",
- "type": "data-type"
}
], - "creation_type": "file",
- "creation_file": {
- "name": "xxxx.dat",
- "type": "vm2m_dat"
}, - "created_at": "2024-01-02T15:00:00.000000Z",
- "updated_at": "2024-01-03T15:00:00.000000Z",
- "type": "can_data_field"
}
]
}
]
}変換結果を削除します。
| project_uuid required | string <uuid> (project-uuid) Example: 11176283-b86f-4f7b-b035-d77bd4c2fc98 プロジェクトのUUID |
| conversion_output_uuid required | string <uuid> (conversion-output-uuid) Example: 02d96e01-1dd1-4b68-96ff-867a2740d712 変換結果のUUID |
{- "error": {
- "cause": "string",
- "errors": [
- "string"
]
}
}変換結果をダウンロードします。
| project_uuid required | string <uuid> (project-uuid) Example: 11176283-b86f-4f7b-b035-d77bd4c2fc98 プロジェクトのUUID |
| conversion_output_uuid required | string <uuid> (conversion-output-uuid) Example: 02d96e01-1dd1-4b68-96ff-867a2740d712 変換結果のUUID |
{- "error": {
- "cause": "string",
- "errors": [
- "string"
]
}
}進行中のデータ変換をキャンセルします。
| project_uuid required | string <uuid> (project-uuid) Example: 11176283-b86f-4f7b-b035-d77bd4c2fc98 プロジェクトのUUID |
| conversion_output_uuid required | string <uuid> (conversion-output-uuid) Example: 02d96e01-1dd1-4b68-96ff-867a2740d712 変換結果のUUID |
{- "uuid": "02d96e01-1dd1-4b68-96ff-867a2740d712",
- "name": "string",
- "description": "description",
- "measurement_snapshot": {
- "uuid": "97e9f614-0dc5-4462-8d1f-fa57b4501ebe",
- "name": "measurement-name",
- "edge_uuid": "bd695c60-bec8-4b95-93c2-89115e641d3a",
- "edge_name": "edge-name",
- "base_time": "2019-08-24T14:15:22Z",
- "base_time_name": "string",
- "start_time": "2019-08-24T14:15:22Z",
- "end_time": "2019-08-24T14:15:22Z",
- "status": "string",
- "videos": [
- {
- "uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f",
- "channel": 1,
- "source_data_name": "string",
- "source_data_type": "string",
- "status": "failed",
- "created_at": "2024-01-02T15:00:00.000000Z",
- "updated_at": "2024-01-03T15:00:00.000000Z"
}
], - "created_at": "2024-01-02T15:00:00.000000Z",
- "updated_at": "2024-01-03T15:00:00.000000Z"
}, - "measurement_slice_started_at": "2019-08-24T14:15:22Z",
- "measurement_slice_ended_at": "2019-08-24T14:15:22Z",
- "type": "mdf_file",
- "job": {
- "status": "succeeded",
- "started_at": "2023-12-31T15:00:00.000000Z",
- "ended_at": "2024-01-01T15:00:00.000000Z",
- "error": {
- "type": "measurement_not_found",
- "measurement_uuid": "ad55f277-8b84-4205-8cfb-3039bba9807e",
- "videos": [
- {
- "data_id": {
- "name": "data-name",
- "type": "data-type"
}
}
], - "cause": "XXXXX"
}
}, - "file": {
- "file_name": "output.zip",
- "file_size": 102400
}, - "created_at": "2024-01-02T15:00:00.000000Z",
- "updated_at": "2024-01-03T15:00:00.000000Z",
- "targets": [
- {
- "data_id": {
- "name": "data-name",
- "type": "data-type"
}, - "data_extraction_settings": [
- {
- "uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f",
- "name": "extraction_name",
- "description": "description",
- "data_id_filters": [
- {
- "name": "data-name",
- "type": "data-type"
}
], - "creation_type": "file",
- "creation_file": {
- "name": "xxxx.dat",
- "type": "vm2m_dat"
}, - "created_at": "2024-01-02T15:00:00.000000Z",
- "updated_at": "2024-01-03T15:00:00.000000Z",
- "type": "can_data_field"
}
]
}
]
}データ変換を再実行します。途中でキャンセルされたデータ変換または終了したデータ変換について、再実行ができます。
| project_uuid required | string <uuid> (project-uuid) Example: 11176283-b86f-4f7b-b035-d77bd4c2fc98 プロジェクトのUUID |
| conversion_output_uuid required | string <uuid> (conversion-output-uuid) Example: 02d96e01-1dd1-4b68-96ff-867a2740d712 変換結果のUUID |
{- "uuid": "02d96e01-1dd1-4b68-96ff-867a2740d712",
- "name": "string",
- "description": "description",
- "measurement_snapshot": {
- "uuid": "97e9f614-0dc5-4462-8d1f-fa57b4501ebe",
- "name": "measurement-name",
- "edge_uuid": "bd695c60-bec8-4b95-93c2-89115e641d3a",
- "edge_name": "edge-name",
- "base_time": "2019-08-24T14:15:22Z",
- "base_time_name": "string",
- "start_time": "2019-08-24T14:15:22Z",
- "end_time": "2019-08-24T14:15:22Z",
- "status": "string",
- "videos": [
- {
- "uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f",
- "channel": 1,
- "source_data_name": "string",
- "source_data_type": "string",
- "status": "failed",
- "created_at": "2024-01-02T15:00:00.000000Z",
- "updated_at": "2024-01-03T15:00:00.000000Z"
}
], - "created_at": "2024-01-02T15:00:00.000000Z",
- "updated_at": "2024-01-03T15:00:00.000000Z"
}, - "measurement_slice_started_at": "2019-08-24T14:15:22Z",
- "measurement_slice_ended_at": "2019-08-24T14:15:22Z",
- "type": "mdf_file",
- "job": {
- "status": "succeeded",
- "started_at": "2023-12-31T15:00:00.000000Z",
- "ended_at": "2024-01-01T15:00:00.000000Z",
- "error": {
- "type": "measurement_not_found",
- "measurement_uuid": "ad55f277-8b84-4205-8cfb-3039bba9807e",
- "videos": [
- {
- "data_id": {
- "name": "data-name",
- "type": "data-type"
}
}
], - "cause": "XXXXX"
}
}, - "file": {
- "file_name": "output.zip",
- "file_size": 102400
}, - "created_at": "2024-01-02T15:00:00.000000Z",
- "updated_at": "2024-01-03T15:00:00.000000Z",
- "targets": [
- {
- "data_id": {
- "name": "data-name",
- "type": "data-type"
}, - "data_extraction_settings": [
- {
- "uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f",
- "name": "extraction_name",
- "description": "description",
- "data_id_filters": [
- {
- "name": "data-name",
- "type": "data-type"
}
], - "creation_type": "file",
- "creation_file": {
- "name": "xxxx.dat",
- "type": "vm2m_dat"
}, - "created_at": "2024-01-02T15:00:00.000000Z",
- "updated_at": "2024-01-03T15:00:00.000000Z",
- "type": "can_data_field"
}
]
}
]
}計測に対して適用可能なデータ抽出設定とその対象データとの組み合わせをリストとして取得します。 また、現在の計測や動画を変換した場合に、完全な状態で出力できるかどうかを確認できます(このAPI呼び出し時点での情報に基づきます)。
| project_uuid required | string <uuid> (project-uuid) Example: 11176283-b86f-4f7b-b035-d77bd4c2fc98 プロジェクトのUUID |
| measurement_uuid required | string <uuid> (measurement-uuid) Example: measurement_uuid=97e9f614-0dc5-4462-8d1f-fa57b4501ebe 計測のUUID |
| output_type | string Enum: "mdf_file" "csv_file" "rosbag_file" 出力形式を指定します。指定した場合、各候補の選択可否情報が付与されます。 |
{- "items": [
- {
- "data_id": {
- "name": "data-name",
- "type": "data-type"
}, - "data_extraction_setting": {
- "uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f",
- "name": "extraction_name",
- "description": "description",
- "data_id_filters": [
- {
- "name": "data-name",
- "type": "data-type"
}
], - "creation_type": "file",
- "creation_file": {
- "name": "xxxx.dat",
- "type": "vm2m_dat"
}, - "created_at": "2024-01-02T15:00:00.000000Z",
- "updated_at": "2024-01-03T15:00:00.000000Z",
- "type": "can_data_field"
}, - "output_availability": "available",
- "selectable": true
}
]
}Get Measurement For Conversion Outputs
| project_uuid required | string <uuid> (project-uuid) Example: 11176283-b86f-4f7b-b035-d77bd4c2fc98 プロジェクトのUUID |
| measurement_uuid required | string <uuid> (measurement-uuid) Example: 97e9f614-0dc5-4462-8d1f-fa57b4501ebe |
{- "uuid": "97e9f614-0dc5-4462-8d1f-fa57b4501ebe",
- "name": "measurement-name",
- "edge_uuid": "bd695c60-bec8-4b95-93c2-89115e641d3a",
- "edge_name": "edge-name",
- "base_time": "2019-08-24T14:15:22Z",
- "base_time_name": "string",
- "start_time": "2019-08-24T14:15:22Z",
- "end_time": "2019-08-24T14:15:22Z",
- "status": "string",
- "videos": [
- {
- "uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f",
- "channel": 1,
- "source_data_name": "string",
- "source_data_type": "string",
- "status": "failed",
- "created_at": "2024-01-02T15:00:00.000000Z",
- "updated_at": "2024-01-03T15:00:00.000000Z"
}
], - "created_at": "2024-01-02T15:00:00.000000Z",
- "updated_at": "2024-01-03T15:00:00.000000Z"
}データ抽出設定のリストを取得します。
| project_uuid required | string <uuid> (project-uuid) Example: 11176283-b86f-4f7b-b035-d77bd4c2fc98 プロジェクトのUUID |
| uuid | Array of strings <uuid> (data-extraction-setting-uuids) [ items <uuid > ] Example: uuid=f14c0b42-5baf-4261-94b2-8cef9e57ef3b&uuid=44b846f5-2af7-4f5a-8c61-69eea0cd514e データ抽出設定のUUID |
| name | Array of strings Example: name=name1&name=name2 データ抽出設定の名前で検索します。ダブルクォーテーション |
| creation_file_name | Array of strings Example: creation_file_name=file-names インポートされたファイル名で検索します(完全一致)。 |
| creation_type | Array of strings (data-extraction-setting-creation-type) Items Enum: "file" "preset" Example: creation_type=file&creation_type=preset データ抽出設定の作成元タイプ
|
| sort | string Default: "created_at" Enum: "name" "created_at" Example: sort=created_at 並べ替えに使用するキー |
| page | integer <int32> >= 1 Default: 1 Example: page=1 取得するページの番号 |
| per_page | integer <int32> >= 1 Default: 100 Example: per_page=100 1回のリクエストで取得する件数 |
| order | string (order-type) Default: "asc" Enum: "asc" "desc" Example: order=asc 並べ替えの順序 |
{- "items": [
- {
- "uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f",
- "name": "extraction_name",
- "description": "description",
- "data_id_filters": [
- {
- "name": "data-name",
- "type": "data-type"
}
], - "creation_type": "file",
- "creation_file": {
- "name": "xxxx.dat",
- "type": "vm2m_dat"
}, - "created_at": "2024-01-02T15:00:00.000000Z",
- "updated_at": "2024-01-03T15:00:00.000000Z",
- "type": "can_data_field"
}
], - "page": {
- "total_count": 100,
- "page": 2,
- "has_next": true,
- "next": 3,
- "has_previous": true,
- "previous": 1,
- "last": 10,
- "per_page": 10,
- "sort": "sort-column",
- "order": "asc"
}
}データ抽出設定を取得します。
| project_uuid required | string <uuid> (project-uuid) Example: 11176283-b86f-4f7b-b035-d77bd4c2fc98 プロジェクトのUUID |
| data_extraction_setting_uuid required | string <uuid> (data-extraction-setting-uuid) Example: d25ac413-2adc-48b6-b901-332a27c10235 データ抽出設定のUUID |
{- "uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f",
- "name": "extraction_name",
- "description": "description",
- "data_id_filters": [
- {
- "name": "data-name",
- "type": "data-type"
}
], - "creation_type": "file",
- "creation_file": {
- "name": "xxxx.dat",
- "type": "vm2m_dat"
}, - "created_at": "2024-01-02T15:00:00.000000Z",
- "updated_at": "2024-01-03T15:00:00.000000Z",
- "type": "can_data_field",
- "can_data_field": {
- "start_bit": 0,
- "length": 0,
- "byte_order": "little",
- "value_type": "+",
- "offset": 0.1,
- "factor": 0.1,
- "minimum": 0.1,
- "maximum": 0.1,
- "number_format": "fixed_point"
}
}データ抽出設定を削除します。
| project_uuid required | string <uuid> (project-uuid) Example: 11176283-b86f-4f7b-b035-d77bd4c2fc98 プロジェクトのUUID |
| data_extraction_setting_uuid required | string <uuid> (data-extraction-setting-uuid) Example: d25ac413-2adc-48b6-b901-332a27c10235 データ抽出設定のUUID |
{- "error": {
- "cause": "string",
- "errors": [
- "string"
]
}
}ファイルをインポートしてデータ抽出設定を作成します。
| project_uuid required | string <uuid> (project-uuid) Example: 11176283-b86f-4f7b-b035-d77bd4c2fc98 プロジェクトのUUID |
| file_type required | string (data-extraction-settings-creation-file-type) インポートするファイルの形式 |
| file required | string <binary> インポートするファイル |
| overwrite required | boolean
|
{- "result": "succeeded",
- "items": [
- {
- "uuid": "095be615-a8ad-4c33-8e9c-c7612fbf6c9f",
- "name": "string",
- "result": "ok"
}
]
}データ抽出設定を作成するためにインポートされたファイルのリストを取得します。
| project_uuid required | string <uuid> (project-uuid) Example: 11176283-b86f-4f7b-b035-d77bd4c2fc98 プロジェクトのUUID |
{- "items": [
- {
- "name": "xxxx.dat",
- "type": "vm2m_dat"
}
]
}{- "items": [
- {
- "uuid": "2e3b63e4-f808-463e-a02c-f4954517490e",
- "name": "company1",
- "description": "description",
- "alias": "tenant-abc",
- "expired_at": "2017-10-03T07:17:10.095527Z",
- "created_at": "2017-10-03T07:17:10.095527Z",
- "updated_at": "2017-10-03T07:17:10.095527Z"
}
], - "page": {
- "total_count": 1
}
}テナントを作成します。
Create a tenant.
| name | string <= 255 characters ^[a-zA-Z0-9_-]*$ Default: "uuidの先頭セグメント" |
| description | string <= 65535 characters |
| initial_username | string Default: "intdash" |
| initial_password | string Default: "random-temporary-password" |
| alias | string <= 255 characters ^[a-zA-Z0-9-]$ テナントのエイリアス(英数字とハイフンのみ、1-255文字)。OAuth2ログイン時にテナントのUUIDの代わりに利用できます。未指定時はUUIDの先頭8文字がデフォルトで設定されます。 |
| expired_at | string <date-time> |
{- "name": "company1",
- "description": "string",
- "initial_username": "intdash",
- "initial_password": "my-password1234",
- "alias": "my-tenant-alias",
- "expired_at": "2000-01-01T00:00:00Z"
}{- "initial_username": "string",
- "initial_password": "string",
- "uuid": "2e3b63e4-f808-463e-a02c-f4954517490e",
- "name": "company1",
- "description": "description",
- "alias": "tenant-abc",
- "expired_at": "2017-10-03T07:17:10.095527Z",
- "created_at": "2017-10-03T07:17:10.095527Z",
- "updated_at": "2017-10-03T07:17:10.095527Z"
}テナントを更新します。
| tenant_uuid required | string Example: 2e3b63e4-f808-463e-a02c-f4954517490e |
Update a tenant.
| name | string <= 255 characters ^[a-zA-Z0-9_-]*$ |
| description | string <= 65535 characters |
| alias | string <= 255 characters ^[a-zA-Z0-9-]$ テナントのエイリアス(英数字とハイフンのみ、1-255文字)。OAuth2ログイン時にテナントのUUIDの代わりに利用できます。 |
| expired_at | string <date-time> |
{- "name": "company1",
- "description": "string",
- "alias": "new-alias",
- "expired_at": "2000-01-01T00:00:00Z"
}{- "uuid": "2e3b63e4-f808-463e-a02c-f4954517490e",
- "name": "company1",
- "description": "description",
- "alias": "tenant-abc",
- "expired_at": "2017-10-03T07:17:10.095527Z",
- "created_at": "2017-10-03T07:17:10.095527Z",
- "updated_at": "2017-10-03T07:17:10.095527Z"
}テナントを削除します。
| tenant_uuid required | string Example: 2e3b63e4-f808-463e-a02c-f4954517490e |
{- "scheduled_at": "2017-10-03T07:17:10.095527Z",
- "created_at": "2017-10-03T07:17:10.095527Z"
}認証ユーザーが所属するテナントの情報を取得します。
{- "uuid": "2e3b63e4-f808-463e-a02c-f4954517490e",
- "name": "company1",
- "description": "description",
- "alias": "tenant-abc",
- "expired_at": "2017-10-03T07:17:10.095527Z",
- "created_at": "2017-10-03T07:17:10.095527Z",
- "updated_at": "2017-10-03T07:17:10.095527Z"
}| start required | string <date-time> Example: start=2000-01-01T00:00:00Z | ||||||||||
| end required | string <date-time> Example: end=2000-01-01T00:00:00Z | ||||||||||
| interval_seconds required | integer Example: interval_seconds=60 | ||||||||||
| name required | string Example: name=iscp2_upstream_publish_data_points_total:edge_uuid 取得するメトリクス名(必須)とグルーピングするラベル名(任意)を指定します。 グルーピングする場合はコロン(:)とラベル名を文字列に追加します。 以下は指定できるメトリクス名とグルーピングできるラベル名の一覧です。
|
{- "items": [
- {
- "name": "metric_name",
- "start": "2000-01-01T00:00:00Z",
- "value": 0,
- "label": {
- "name": "user_uuid",
- "value": "11111111-1111-1111-1111-111111111111"
}
}
]
}{- "min_length": 8,
- "max_length": 255,
- "min_alphabet_num": 0,
- "min_uppercase_alphabet_num": 0,
- "min_lowercase_alphabet_num": 0,
- "min_number_num": 0,
- "min_symbol_num": 0,
- "allowed_same_username": true,
- "allowed_save_previous_password": true,
- "created_at": "2000-01-01T00.00.00Z",
- "updated_at": "2000-01-01T00.00.00Z"
}| min_length | integer <int64> |
| max_length | integer <int64> |
| min_alphabet_num | integer <int64> |
| min_uppercase_alphabet_num | integer <int64> |
| min_lowercase_alphabet_num | integer <int64> |
| min_number_num | integer <int64> |
| min_symbol_num | integer <int64> |
| allowed_same_username | boolean |
| allowed_save_previous_password | boolean |
{- "min_length": 8,
- "max_length": 255,
- "min_alphabet_num": 0,
- "min_uppercase_alphabet_num": 0,
- "min_lowercase_alphabet_num": 0,
- "min_number_num": 0,
- "min_symbol_num": 0,
- "allowed_same_username": true,
- "allowed_save_previous_password": true
}{- "min_length": 8,
- "max_length": 255,
- "min_alphabet_num": 0,
- "min_uppercase_alphabet_num": 0,
- "min_lowercase_alphabet_num": 0,
- "min_number_num": 0,
- "min_symbol_num": 0,
- "allowed_same_username": true,
- "allowed_save_previous_password": true,
- "created_at": "2000-01-01T00.00.00Z",
- "updated_at": "2000-01-01T00.00.00Z"
}テナントのMFA設定を更新します。管理者権限が必要です。
| require_mfa required | boolean テナントでMFAを必須にするかどうか。 |
{- "require_mfa": true
}{- "require_mfa": true
}{- "email_verification_expiration_period": "3h",
- "email_limit_per_user": 1,
- "access_token_expiration_period": "1h",
- "refresh_token_expiration_days": 30,
- "temporary_token_expiration_period": "5m",
- "password_attempt_limit": 5,
- "password_reset_attempt_count_threshold": "24h",
- "password_recovery_expiration_period": "1h",
- "password_default_temporary_expiration_period": "6h",
- "password_default_expiration_days": 36500,
- "api_token_limit_per_user": 3,
- "api_token_default_expiration_period": "876000h",
- "max_groups_count": 1000,
- "max_project_count_per_group": 1000
}自分(ユーザー)のメールアドレスを確認済みにします。 Deprecated: 代わりに/emails/verifiedを使用してください。
| user_email_id required | integer <int64> Example: 1 ユーザーのメールアドレスのID |
| verification_token required | string [ 1 .. 4096 ] characters メールアドレス確認用トークン |
{- "verification_token": "verification.token"
}{- "address": "intdash@example.com",
- "created_at": "2000-01-01T00:00:00Z",
- "id": 1,
- "updated_at": "2000-01-01T00:00:00Z",
- "verified": true
}(Deprecated。このエンドポイントでなく /projects/00000000-0000-0000-0000-000000000000/edge_connection を使用してください)
エッジ接続のリストを取得します。
エッジ接続は、エッジがiSCPプロトコル(/api/iscp/connect エンドポイントなど)を使用してサーバーに接続したときに新規作成され、
3日間更新がないと削除されます。
| edge | Array of strings Example: edge=b55e3351-97e2-4db1-ac90-60fda8b3d144 エッジのUUID |
| group_by_edge | boolean Default: false 最新接続日時でエッジごとにグルーピングするかどうか |
| sort | string Default: "last_lived_at" Enum: "last_lived_at" "created_at" "updated_at" Example: sort=last_lived_at 並べ替えに使用するキー |
| order | string Default: "desc" Enum: "asc" "desc" Example: order=asc 並べ替えの順序 |
| limit | integer Default: 100 Example: limit=100 1回のリクエストで取得する件数 |
| page | integer Default: 1 Example: page=1 取得するページの番号 |
{- "items": [
- {
- "created_at": "2017-02-11T01:23:45Z",
- "edge": {
- "created_at": "2017-02-11T01:23:45Z",
- "description": "edge description",
- "disabled": true,
- "internal": false,
- "last_lived_at": "2017-02-11T01:23:45Z",
- "last_login_at": "2017-02-11T01:23:45Z",
- "name": "edge_name",
- "nickname": "edge_nickname",
- "protected": false,
- "type": "user",
- "updated_at": "2017-02-11T01:23:45Z",
- "uuid": "b55e3351-97e2-4db1-ac90-60fda8b3d144"
}, - "last_lived_at": "2017-02-11T01:23:45Z",
- "updated_at": "2017-02-11T12:34:56Z",
- "uuid": "e0326d93-6e94-4edf-92a2-961cc1c07414"
}
], - "page": null
}(Deprecated。このエンドポイントでなく /projects/00000000-0000-0000-0000-000000000000/edge_connection/{edge_connection_uuid} を使用してください) エッジ接続( /v1/ws/measurements に接続されたエッジの接続情報)を取得します。
| edge_connection_uuid required | string Example: e0326d93-6e94-4edf-92a2-961cc1c07414 エッジ接続のUUID |
{- "created_at": "2017-02-11T01:23:45Z",
- "downstreams": [
- {
- "created_at": "2017-02-11T01:23:45Z",
- "dst_edge_uuid": "c3341333-31ce-40a6-9208-2dde4c869aab",
- "last_received_at": "2017-02-11T01:23:45Z",
- "received_close_request": false,
- "src_edge_uuid": "3c11158e-ce70-41a9-8ed6-dd3a3b94ce3e",
- "stream_id": 1,
- "updated_at": "2017-02-11T12:34:56Z"
}
], - "edge": {
- "created_at": "2017-02-11T01:23:45Z",
- "description": "edge description",
- "disabled": true,
- "internal": false,
- "last_lived_at": "2017-02-11T01:23:45Z",
- "last_login_at": "2017-02-11T01:23:45Z",
- "name": "edge_name",
- "nickname": "edge_nickname",
- "protected": false,
- "type": "user",
- "updated_at": "2017-02-11T01:23:45Z",
- "uuid": "b55e3351-97e2-4db1-ac90-60fda8b3d144"
}, - "last_lived_at": "2017-02-11T01:23:45Z",
- "updated_at": "2017-02-11T12:34:56Z",
- "upstreams": [
- {
- "created_at": "2017-02-11T01:23:45Z",
- "last_received_at": "2017-02-11T01:23:45Z",
- "measurement_uuid": "e6e292d6-013f-4214-9367-6a5673c8c82a",
- "received_close_request": false,
- "resend": false,
- "src_edge_uuid": "3c11158e-ce70-41a9-8ed6-dd3a3b94ce3e",
- "store": false,
- "stream_id": 1,
- "updated_at": "2017-02-11T12:34:56Z"
}
], - "uuid": "e0326d93-6e94-4edf-92a2-961cc1c07414"
}(Deprecated。このエンドポイントでなく /projects/00000000-0000-0000-0000-000000000000/stream を使用してください)
WebSocketを使ってリアルタイムデータを取得します。
同じくWebSocketを使ってリアルタイムデータを扱う /v1/ws/measurements では、
iSCP (intdash Stream Control Protocol)を使用しますが、
本エンドポイントではJSONとしてデータポイントを取得することができます。
| パラメータ名 | 型 | 必須 | デフォルト | 説明 |
|---|---|---|---|---|
| flush_interval | string | true | - | メッセージがフラッシュされる間隔を指定します。 単位は"ns"、"us" (または"µs")、"ms"、"s"、"m"、"h"のいずれかを使用してください (参考: Goのtimeパッケージ)。 指定がない場合は、メッセージごとにフラッシュされます。 |
リクエストメッセージおよびレスポンスメッセージには JSON lines 形式を使用します。
1つのメッセージが1行です。
例:
{ "type" : "message_type", "contents" : { depends on message_type }}
{ "type" : "message_type", "contents" : { depends on message_type }}
{ "type" : "message_type", "contents" : { depends on message_type }}
{ "type" : "message_type", "contents" : { depends on message_type }}
{ "type" : "message_type", "contents" : { depends on message_type }}
.
.
注意: メッセージに改行を含むことはできません。
改行が入ったメッセージの例(悪い例):
{
"type" : "message_type",
"contents" : { depends on message_type }
}
メッセージには、 type 属性および contents 属性が必要です。
contents のスキーマは、 type により決定されます。
| 属性名 | 型 | 必須 | デフォルト | 説明 |
|---|---|---|---|---|
| id | number | false | - | idに指定した値は、レスポンスの ack 属性として返ります。 |
| type | string | true | "open_downstream" |
固定値 |
| contents | object(次の表を参照) | true | - |
contents のスキーマ| 属性名 | 型 | 必須 | デフォルト | 説明 |
|---|---|---|---|---|
| edge | string | true | - | データの送信元エッジを、エッジのUUIDまたはエッジの名前で指定します。 最初に、一致するエッジUUIDが検索され、一致するエッジUUIDがなければ一致する名前が検索されます。 |
| filter | string array | false | [] |
「フィルター」を参照してください。 |
データコードとデータ名を指定することにより、指定にマッチしたデータポイントだけを受信することができます。
ただし、メタデータのデータポイントは、フィルターの設定に関係なくすべて受信されます。
フィルターは以下のフォーマットで設定します: <型コード>:<データ名>
データコードについては、後述の 時系列データのペイロードフォーマット を参照してください。
フィルター設定文字列の各セグメントにはワイルドカード( ** )を使用することができます。
例:
型コードが can_data_field のデータポイント(CAN)を受信する -> can_data_field:**
型コードが string/ で始まるデータポイントを受信する(string/json 、 string/csv など) -> string/**:**
文字列のデータポイントのうち、データ名が my-string のものを受信する -> string:my-string
filter として空の配列が指定された場合は、すべてのデータポイントを受信します。
リクエスト:
{ "type" : "open_downstream", "contents" : { "edge" : "edge_name_or_uuid", "filter" : ["string:a/b"] } }
レスポンス(レスポンスの詳細については、「レスポンス」を参照してください):
{ "type" : "response", "contents": { "code" : 10000, "message": "succeed: open downstream" } }
| 属性名 | 型 | 必須 | デフォルト | 説明 |
|---|---|---|---|---|
| id | number | false | - | idに指定した値は、レスポンスの ack 属性として返ります。 |
| type | string | true | "update_downstream" |
固定値 |
| contents | object(次の表を参照) | true | - |
contents のスキーマ| 属性名 | 型 | 必須 | デフォルト | 説明 |
|---|---|---|---|---|
| filter | string array | true | - | 「フィルター」を参照してください。 |
フィルターを指定する場合のリクエスト:
{ "type" : "update_downstream", "contents" : { "filter" : ["string:a/b"] } }
フィルターを指定せずすべてのデータポイントを受信する場合のリクエスト:
{ "type" : "update_downstream", "contents" : { "filter" : [] } }
レスポンス(レスポンスの詳細については、「レスポンス」を参照してください):
{ "type" : "response", "contents": { "code" : 10000, "message": "succeed:
update downstream" } }
| 属性名 | 型 | 必須 | デフォルト | 説明 | | ---------------- | ------------------------ | ---------- | ----------------- | ------- | | id | number | false | - | idに指定した値は、レスポンスの ack 属性として返ります。 | | type | string | true | "close_downstream" | 固定値|
リクエスト:
{ "type" : "close_downstream"}
レスポンス(レスポンスの詳細については、「レスポンス」を参照してください):
{ "type" : "response", "contents": { "code" : 10000, "message": "succeed: close downstream" } }
リクエストの処理結果が返却されます。
| 属性名 | 型 | 必須 | デフォルト | 説明 |
|---|---|---|---|---|
| type | string | true | "response" |
固定値 |
| ack | number | false | - | リクエストで id が指定されていた場合、その値 |
| contents | object(次の表を参照) | true | - |
contents のスキーマ| 属性名 | 型 | 必須 | デフォルト | 説明 |
|---|---|---|---|---|
| code | number | true | - | 10000 < code < 20000 の場合、成功。 20000 < code < 30000 の場合、不正なリクエスト。50000 < code の場合、予期しないエラー |
| message | string | true | - | リクエストで id が指定されていた場合、その値 |
{ "type" : "response", "contents": { "code" : 10000, "message": "succeed: open downstream" } }
リクエストで id が指定されている場合のレスポンス例( id の値が ack として返ります):
{ "ack": 1, "type" : "response", "contents": { "code" : 10000, "message": "succeed: open downstream" } }
時系列データポイントが格納するペイロードのフォーマットです。各データ型に対する contentsのフォーマットは このページ を参照してください。
各データバイナリには、ペイロードのフォーマットを示すデータ型が付与されます。各データ型には、型を識別するためのコード名が割り当てられます。
単一のデータを格納するデータ型です。
| 名称 | コード | バイト長 | 説明 |
|---|---|---|---|
| Bytes | bytes |
可変 | フォーマットなしバイト列 |
| String | string |
可変 | フォーマットなし文字列 |
| Float64 | float64 |
8 | IEEE754 64ビット浮動小数点数 |
| Int64 | int64 |
8 | 符号付き 64ビット整数 |
| Bool | bool |
1 | 真偽値 |
メディア(動画/音声)関連のデータを格納するデータ型です。
| 名称 | コード | バイト長 | 説明 |
|---|---|---|---|
| JPEG | video/jpeg |
可変 | JPEG 形式の画像データ |
| H264 | video/h264 |
可変 | H264 形式の映像データ |
フォーマット付きのバイナリデータを格納するデータ型です。
| 名称 | コード | バイト長 | 説明 |
|---|---|---|---|
| BSON | bson |
可変 | BSON フォーマット |
| CAN Frame | can_frame |
可変 | CAN フレーム フォーマット |
| CAN Data Field | can_data_field |
可変 | CAN データフィールド フォーマット |
| MAVLink1 Packet | mavlink1_packet |
可変 | MAVLink パケット フォーマット |
| Generic (非推奨) | generic |
可変 | iSCPv1互換 汎用フォーマット |
| Controlpad (非推奨) | control_pad |
可変 | iSCPv1互換 コントロールパッドフォーマット |
| GeneralSensor (非推奨) | general_sensor |
可変 | iSCPv1互換 汎用センサーフォーマット |
フォーマット付きの文字列データを格納するデータ型です。
| 名称 | コード | バイト長 | 説明 |
|---|---|---|---|
| JSON | string/json |
可変 | JSON フォーマット |
| CSV | string/csv |
可変 | CSV フォーマット |
| NMEA | string/nmea |
可変 | NMEA フォーマット |
(Deprecated。このエンドポイントでなく /projects/00000000-0000-0000-0000-000000000000/ws/measurements を使用してください)
iSCP v1(WebSocket上でリアルタイムデータを送受信するintdash独自プロトコル)の使用を開始するためのエンドポイントです。
このリクエストを送ることで、プロトコルがWebSocketに切り替えられ、iSCP v1を使用できます。
"permessage-deflate" (RFC 7692) が使用できます。
iSCP v1の詳細については、別ドキュメント 詳説iSCP 1.0 を参照してください。
「詳説iSCP 1.0」に記載されいていない事項ついては、 アプトポッド にお問い合わせください。
WebSocketを使ってリアルタイムデータを取得します。
同じくWebSocketを使ってリアルタイムデータを扱う /v1/ws/measurements では、 iSCP (intdash Stream Control Protocol)を使用しますが、 本エンドポイントではJSONとしてデータポイントを取得することができます。
| パラメータ名 | 型 | 必須 | デフォルト | 説明 |
|---|---|---|---|---|
| flush_interval | string | true | - | メッセージがフラッシュされる間隔を指定します。 単位は"ns"、"us" (または"µs")、"ms"、"s"、"m"、"h"のいずれかを使用してください (参考: Goのtimeパッケージ)。 指定がない場合は、メッセージごとにフラッシュされます。 |
リクエストメッセージおよびレスポンスメッセージには JSON lines 形式を使用します。 1つのメッセージが1行です。
例:
{ "type" : "message_type", "contents" : { depends on message_type }}
{ "type" : "message_type", "contents" : { depends on message_type }}
{ "type" : "message_type", "contents" : { depends on message_type }}
{ "type" : "message_type", "contents" : { depends on message_type }}
{ "type" : "message_type", "contents" : { depends on message_type }}
.
.
注意: メッセージに改行を含むことはできません。 改行が入ったメッセージの例(悪い例):
{
"type" : "message_type",
"contents" : { depends on message_type }
}
メッセージには、 type 属性および contents 属性が必要です。 contents のスキーマは、 type により決定されます。
| 属性名 | 型 | 必須 | デフォルト | 説明 |
|---|---|---|---|---|
| id | number | false | - | idに指定した値は、レスポンスの ack 属性として返ります。 |
| type | string | true | "open_downstream" |
固定値 |
| contents | object(次の表を参照) | true | - |
contents のスキーマ| 属性名 | 型 | 必須 | デフォルト | 説明 |
|---|---|---|---|---|
| edge | string | true | - | データの送信元エッジを、エッジのUUIDまたはエッジの名前で指定します。 最初に、一致するエッジUUIDが検索され、一致するエッジUUIDがなければ一致する名前が検索されます。 |
| filter | string array | false | [] |
「フィルター」を参照してください。 |
データコードとデータ名を指定することにより、指定にマッチしたデータポイントだけを受信することができます。 ただし、メタデータのデータポイントは、フィルターの設定に関係なくすべて受信されます。
フィルターは以下のフォーマットで設定します: <型コード>:<データ名>
データコードについては、後述の 時系列データのペイロードフォーマット を参照してください。
フィルター設定文字列の各セグメントにはワイルドカード( ** )を使用することができます。
例:
can_data_field のデータポイント(CAN)を受信する -> can_data_field:**string/ で始まるデータポイントを受信する(string/json 、 string/csv など) -> string/**:**my-string のものを受信する -> string:my-stringfilter として空の配列が指定された場合は、すべてのデータポイントを受信します。
リクエスト:
{ "type" : "open_downstream", "contents" : { "edge" : "edge_name_or_uuid", "filter" : ["string:a/b"] } }
レスポンス(レスポンスの詳細については、「レスポンス」を参照してください):
{ "type" : "response", "contents": { "code" : 10000, "message": "succeed: open downstream" } }
| 属性名 | 型 | 必須 | デフォルト | 説明 |
|---|---|---|---|---|
| id | number | false | - | idに指定した値は、レスポンスの ack 属性として返ります。 |
| type | string | true | "update_downstream" |
固定値 |
| contents | object(次の表を参照) | true | - |
contents のスキーマ| 属性名 | 型 | 必須 | デフォルト | 説明 |
|---|---|---|---|---|
| filter | string array | true | - | 「フィルター」を参照してください。 |
フィルターを指定する場合のリクエスト:
{ "type" : "update_downstream", "contents" : { "filter" : ["string:a/b"] } }
フィルターを指定せずすべてのデータポイントを受信する場合のリクエスト:
{ "type" : "update_downstream", "contents" : { "filter" : [] } }
レスポンス(レスポンスの詳細については、「レスポンス」を参照してください):
{ "type" : "response", "contents": { "code" : 10000, "message": "succeed: update downstream" } }
| 属性名 | 型 | 必須 | デフォルト | 説明 |
|---|---|---|---|---|
| id | number | false | - | idに指定した値は、レスポンスの ack 属性として返ります。 |
| type | string | true | "close_downstream" |
固定値 |
リクエスト:
{ "type" : "close_downstream"}
レスポンス(レスポンスの詳細については、「レスポンス」を参照してください):
{ "type" : "response", "contents": { "code" : 10000, "message": "succeed: close downstream" } }
リクエストの処理結果が返却されます。
| 属性名 | 型 | 必須 | デフォルト | 説明 |
|---|---|---|---|---|
| type | string | true | "response" |
固定値 |
| ack | number | false | - | リクエストで id が指定されていた場合、その値 |
| contents | object(次の表を参照) | true | - |
contents のスキーマ| 属性名 | 型 | 必須 | デフォルト | 説明 |
|---|---|---|---|---|
| code | number | true | - | 10000 < code < 20000 の場合、成功。 20000 < code < 30000 の場合、不正なリクエスト。50000 < code の場合、予期しないエラー |
| message | string | true | - | リクエストで id が指定されていた場合、その値 |
{ "type" : "response", "contents": { "code" : 10000, "message": "succeed: open downstream" } }
リクエストで id が指定されている場合のレスポンス例( id の値が ack として返ります):
{ "ack": 1, "type" : "response", "contents": { "code" : 10000, "message": "succeed: open downstream" } }
時系列データポイントが格納するペイロードのフォーマットです。各データ型に対する contentsのフォーマットは このページ を参照してください。
各データバイナリには、ペイロードのフォーマットを示すデータ型が付与されます。各データ型には、型を識別するためのコード名が割り当てられます。
単一のデータを格納するデータ型です。
| 名称 | コード | バイト長 | 説明 |
|---|---|---|---|
| Bytes | bytes |
可変 | フォーマットなしバイト列 |
| String | string |
可変 | フォーマットなし文字列 |
| Float64 | float64 |
8 | IEEE754 64ビット浮動小数点数 |
| Int64 | int64 |
8 | 符号付き 64ビット整数 |
| Bool | bool |
1 | 真偽値 |
メディア(動画/音声)関連のデータを格納するデータ型です。
| 名称 | コード | バイト長 | 説明 |
|---|---|---|---|
| JPEG | video/jpeg |
可変 | JPEG 形式の画像データ |
| H264 | video/h264 |
可変 | H264 形式の映像データ |
フォーマット付きのバイナリデータを格納するデータ型です。
| 名称 | コード | バイト長 | 説明 |
|---|---|---|---|
| BSON | bson |
可変 | BSON フォーマット |
| CAN Frame | can_frame |
可変 | CAN フレーム フォーマット |
| CAN Data Field | can_data_field |
可変 | CAN データフィールド フォーマット |
| MAVLink1 Packet | mavlink1_packet |
可変 | MAVLink パケット フォーマット |
| Generic (非推奨) | generic |
可変 | iSCPv1互換 汎用フォーマット |
| Controlpad (非推奨) | control_pad |
可変 | iSCPv1互換 コントロールパッドフォーマット |
| GeneralSensor (非推奨) | general_sensor |
可変 | iSCPv1互換 汎用センサーフォーマット |
フォーマット付きの文字列データを格納するデータ型です。
| 名称 | コード | バイト長 | 説明 |
|---|---|---|---|
| JSON | string/json |
可変 | JSON フォーマット |
| CSV | string/csv |
可変 | CSV フォーマット |
| NMEA | string/nmea |
可変 | NMEA フォーマット |
| project_uuid required | string Example: c78ce0c1-eb57-4f93-a087-ee3b7cee5e06 プロジェクトのUUID |
iSCP v1(WebSocket上でリアルタイムデータを送受信するintdash独自プロトコル)の使用を開始するためのエンドポイントです。
このリクエストを送ることで、プロトコルがWebSocketに切り替えられ、iSCP v1を使用できます。 "permessage-deflate" (RFC 7692) が使用できます。
iSCP v1の詳細については、別ドキュメント 詳説iSCP 1.0 を参照してください。
「詳説iSCP 1.0」に記載されいていない事項ついては、 アプトポッド にお問い合わせください。
| project_uuid required | string Example: c78ce0c1-eb57-4f93-a087-ee3b7cee5e06 プロジェクトのUUID |
エッジを指定し、そのエッジから送信されているデータに含まれるデータ識別子( data_type 、 channel 、 data_id の組み合わせ)のリストを取得します。
| project_uuid required | string Example: 75c55669-b2ab-4f14-a871-8571c6afa1ef プロジェクトのUUID |
| start | integer <int64> Example: start=1505797626000000 取得対象範囲の始点(マイクロ秒単位のUNIX時刻) |
| end | integer <int64> Example: end=1505798226123456 取得対象範囲の終点(マイクロ秒単位のUNIX時刻) |
| edge_uuid | string Example: edge_uuid=24dbdc29-165f-4919-b2ce-7a335282bde2 エッジのUUID |
{- "items": [
- {
- "data_type": 1,
- "channel": 2,
- "data_id": "00000001"
}
]
}計測を指定し、その計測に含まれるデータ識別子( data_type 、 channel 、 data_id の組み合わせ)のリストを取得します。
| project_uuid required | string Example: 75c55669-b2ab-4f14-a871-8571c6afa1ef プロジェクトのUUID |
| measurement_uuid required | string Example: 2cc7de37-6f71-4458-887e-10e618a6fcfb 計測のUUID |
{- "items": [
- {
- "data_type": 1,
- "channel": 2,
- "data_id": "00000001"
}
]
}データポイントを登録します。
| project_uuid required | string Example: 75c55669-b2ab-4f14-a871-8571c6afa1ef プロジェクトのUUID |
このエンドポイント使用時は、 Content-Type を以下にしてください。
application/protobufStoreProto を参照してください。DataPointProto の data_payloadは iSCP v1のデータフォーマットに従います。計測を保護します。保護された計測は削除できません。 See も参照してください。
| project_uuid required | string Example: 75c55669-b2ab-4f14-a871-8571c6afa1ef プロジェクトのUUID |
| measurement_uuid required | string Example: 2cc7de37-6f71-4458-887e-10e618a6fcfb 計測のUUID |
計測の保護を解除します。
| project_uuid required | string Example: 75c55669-b2ab-4f14-a871-8571c6afa1ef プロジェクトのUUID |
| measurement_uuid required | string Example: 2cc7de37-6f71-4458-887e-10e618a6fcfb 計測のUUID |
計測に含まれるセクションのリストを取得します。
| project_uuid required | string Example: 75c55669-b2ab-4f14-a871-8571c6afa1ef プロジェクトのUUID |
| measurement_uuid required | string Example: 2cc7de37-6f71-4458-887e-10e618a6fcfb 計測のUUID |
| filter | string Default: "both" Enum: "processed" "unprocessed" "both" Example: filter=processed 計測セクションの処理ステータス。 |
| limit | integer <int32> Example: limit=1000 1回のリクエストで取得する件数 |
{- "items": [
- {
- "serial_number": 0,
- "processed": true,
- "created_at": "2017-02-11T01:23:45Z",
- "updated_at": "2017-02-11T12:34:56Z"
}, - {
- "serial_number": 1,
- "processed": true,
- "created_at": "2017-02-11T01:23:45Z",
- "updated_at": "2017-02-11T12:34:56Z"
}, - {
- "serial_number": 2,
- "processed": false
}
], - "total_count": 100
}( Deprecated このエンドポイントではなく、GET /measurements/jobs を使用してください。) 計測のアップロードのリストを取得します。
| project_uuid required | string Example: 75c55669-b2ab-4f14-a871-8571c6afa1ef プロジェクトのUUID |
| limit | integer <int32> Example: limit=1000 1回のリクエストで取得する件数 |
| sort | any Default: "created_at" Enum: "created_at" "updated_at" Example: sort=created_at 並べ替えに使用するキー |
| file_type | Array of strings Items Enum: "csv" "mp4" "pbstream" "pbstream_gz" Example: file_type=csv&file_type=pbstream_gz 対象ファイルの種類(複数指定時は OR 条件) |
| include_no_measurement | boolean Default: false 計測が存在しないジョブを含めるかどうか(デフォルトは含めない) |
| source_type | Array of strings Items Enum: "file" "zip" "stream" Example: source_type=file&source_type=zip アップロードのソース種別でフィルタ(複数指定時は OR 条件)。未指定時は |
| page | integer <int32> Example: page=1 取得するページの番号 |
| order | string Enum: "asc" "desc" Example: order=asc 並べ替えの順序 |
{- "items": [
- {
- "uuid": "d9135580-4a6b-4fbd-971b-8fdce27b617c",
- "meas_uuid": "a72c674a-e8e9-43bc-940f-a034853363e1",
- "state": "succeed",
- "message": "Succeed",
- "file_name": "sample.csv",
- "created_at": "2017-02-11T01:23:45Z",
- "updated_at": "2017-02-11T12:34:56Z"
}
], - "page": {
- "total_count": 1,
- "first": true,
- "last": true,
- "next": "/path?xxx=1&bbb=2&page=3",
- "previous": "/path?xxx=1&bbb=2&page=1"
}
}(Deprecated このエンドポイントではなく、POST /measurements/file_upload を使用してください。)
CSVまたはMP4(MP4はexperimental)ファイルをアップロードし、計測を作成します。 計測には、指定されたエッジUUIDが関連付けられます。
base_time (基準時刻)は、RFC3339による表現か、UNIX時刻(マイクロ秒)を指定してください。
基準時刻が指定されていない場合は、CSVファイルのデータ行の1行目の時刻が基準時刻として使用されます。
CSVファイルのデータは、時刻順にソートされている必要があります。
meas_end パラメーターの設定は任意です。指定しない場合、 true となります。
CSVファイルの例:
time, col1, col2, col3, col4, col5, col6, col7, col8, col9, col10
1539263579, val11, 12, 13.12345, val14, 15, 16.12345, val17, 18, 19.12345, val110
1539263580, val21, 22, 23.12345, val24, 25, 26.12345, val27, 28, 29.12345, val210
1539263581, val31, 32, 33.12345, val34, 35, 36.12345, val37, 38, 39.12345, val310
1539263582, val41, 42, 43.12345, val44, 45, 46.12345, val47, 48, 49.12345, val410
空白行がある場合、行番号のカウントは加算されますが、その行は処理されません。 例えば、以下のような場合の空白行は無視されます。
time, col1, col2, col3, col4, col5, col6, col7, col8, col9, col10
1539263579, val11, 12, 13.12345, val14, 15, 16.12345, val17, 18, 19.12345, val110
1539263581, val31, 32, 33.12345, val34, 35, 36.12345, val37, 38, 39.12345, val310
1539263582, val41, 42, 43.12345, val44, 45, 46.12345, val47, 48, 49.12345, val410
Go parser library も参照してください。
時刻の列には、RFC3339による表現か、UNIX時刻(秒)を使用することができます。
値の内部で , を使用したい場合は、その値全体を " で囲んでください。
また、値の内部で " を使用したい場合は、値全体を " で囲み、さらに、 " を "" のように表記してください。
値を " で囲まないと、CSVファイルのパースの際にエラーが発生します。
エスケープの例:
time,col1
1539263579,"ab,cde" .....OK (parsed as 'ab,cde')
1539263579,"ab""cde" .....OK (parsed as 'ab"cde')
1539263579, abcde .....OK (parsed as ' abcde')
1539263579," abcde" .....OK (parsed as ' abcde')
1539263579,ab"cde .....NG
1539263579, "abcde" .....NG
1539263579,ab,cde .....NG(wrong number of fields)
| project_uuid required | string Example: 75c55669-b2ab-4f14-a871-8571c6afa1ef プロジェクトのUUID |
| edge_uuid required | string <uuid> エッジのUUID |
| base_time | string <date-time> 計測の基準時刻。MP4ファイルをアップロードする場合は必須です。 |
| base_time_type | string Default: "edge_rtc" Enum: "edge_rtc" "ntp" "gps" "api_first_received" "volatile" "manual" "undefined" 基準時刻のタイプ |
| channel | integer 計測のチャンネル(十進表記の文字列) |
| meas_end | boolean
|
| label_data_type | string <json> (LabelDataType) 列名とデータタイプの対応をJSON形式で指定します。 データタイプには任意の文字列を指定できます。 以下の既知のデータタイプは、サーバー側でバイナリエンコードされます:
上記以外のデータタイプを指定した場合、セル値はBase64デコードを試み、 成功した場合はデコード結果がペイロードとなります。 Base64デコードに失敗した場合は、セル値のUTF-8バイト列がそのままペイロードとなります。
例:
|
| data_file required | string <binary> アップロードするファイル |
{- "meas_upload_uuid": "d9135580-4a6b-4fbd-971b-8fdce27b617c",
- "job_uuid": "d9135580-4a6b-4fbd-971b-8fdce27b617c",
- "file_name": "filename.csv"
}CSVファイルをアップロードし、計測にデータを追加します。
| project_uuid required | string Example: 75c55669-b2ab-4f14-a871-8571c6afa1ef プロジェクトのUUID |
| measurement_uuid required | string Example: 2cc7de37-6f71-4458-887e-10e618a6fcfb 計測のUUID |
meas_end パラメーターの設定は任意です。指定しない場合、 true となります。
| channel | integer 作成された計測のチャンネル |
| meas_end | boolean
|
| label_data_type | string <json> (LabelDataType) 列名とデータタイプの対応をJSON形式で指定します。 データタイプには任意の文字列を指定できます。 以下の既知のデータタイプは、サーバー側でバイナリエンコードされます:
上記以外のデータタイプを指定した場合、セル値はBase64デコードを試み、 成功した場合はデコード結果がペイロードとなります。 Base64デコードに失敗した場合は、セル値のUTF-8バイト列がそのままペイロードとなります。
例:
|
| data_file required | string <binary> アップロードするファイル |
{- "meas_upload_uuid": "d9135580-4a6b-4fbd-971b-8fdce27b617c",
- "job_uuid": "d9135580-4a6b-4fbd-971b-8fdce27b617c",
- "file_name": "filename.csv"
}(Deprecated このエンドポイントではなく、 GET /measurements/{measurement_uuid} を使用してください。) 計測UUIDを指定して、その計測に付与されたマーカーの一覧を取得します。
| project_uuid required | string Example: 75c55669-b2ab-4f14-a871-8571c6afa1ef プロジェクトのUUID |
| measurement_uuid required | string Example: 2cc7de37-6f71-4458-887e-10e618a6fcfb 計測のUUID |
{- "items": [
- {
- "created_at": "2017-02-11T01:23:45Z",
- "created_by": "adbbd1ff-1e13-4b12-b125-e213945a65f8",
- "description": "description",
- "detail": {
- "end_elapsed_time": 200,
- "start_elapsed_time": 100
}, - "elapsed_time": 1000,
- "name": "name",
- "tag": {
- "key1": "value1",
- "key2": "value2"
}, - "type": "range",
- "updated_at": "2017-02-11T12:34:56Z",
- "updated_by": "adbbd1ff-1e13-4b12-b125-e213945a65f8",
- "uuid": "887326ce-a2a2-4db6-8c06-2f8447f0f29e"
}, - {
- "created_at": "2017-02-11T01:23:45Z",
- "created_by": "adbbd1ff-1e13-4b12-b125-e213945a65f8",
- "description": "description",
- "detail": {
- "occurred_elapsed_time": 100
}, - "elapsed_time": 1000,
- "name": "name",
- "tag": {
- "key1": "value1",
- "key2": "value2"
}, - "type": "range",
- "updated_at": "2017-02-11T12:34:56Z",
- "updated_by": "adbbd1ff-1e13-4b12-b125-e213945a65f8",
- "uuid": "887326ce-a2a2-4db6-8c06-2f8447f0f29e"
}
]
}Deprecated このエンドポイントではなく、 GET /measurements/{measurement_uuid} を使用してください。
| project_uuid required | string Example: 75c55669-b2ab-4f14-a871-8571c6afa1ef プロジェクトのUUID |
| measurement_uuid required | string Example: 2cc7de37-6f71-4458-887e-10e618a6fcfb 計測のUUID |
| measurement_marker_uuid required | string Example: 27a841d8-78c0-4e5e-b0ee-ec1fafd90ef6 計測マーカーのUUID |
{- "uuid": "cdc1029e-d474-477c-aa6e-b48928fdb825",
- "name": "name",
- "description": "description",
- "type": "point",
- "detail": {
- "occurred_elapsed_time": 3
}, - "tag": {
- "tagkey1": "tagValue1",
- "tagkey2": "tagValue2"
}, - "created_at": "2017-02-11T01:23:45Z",
- "created_by": "adbbd1ff-1e13-4b12-b125-e213945a65f8",
- "updated_at": "2017-02-11T12:34:56Z",
- "updated_by": "adbbd1ff-1e13-4b12-b125-e213945a65f8"
}信号定義のリストを取得します。
| project_uuid required | string Example: 75c55669-b2ab-4f14-a871-8571c6afa1ef プロジェクトのUUID |
| label | Array of strings Example: label=label1 ラベルが指定した文字列から始まる信号定義を取得します。 文字列をダブルクォーテーションで囲むと、完全一致のものだけを取得します。 |
| sort | string Enum: "label" "created_at" "updated_at" Example: sort=label 並べ替えに使用するキー |
| order | string Enum: "asc" "desc" Example: order=asc 並べ替えの順序 |
| limit | integer <int32> Example: limit=100 1回のリクエストで取得する件数 |
| page | integer <int32> Example: page=1 取得するページの番号 |
{- "items": [
- {
- "channel": 1,
- "conversion": {
- "options": {
- "bitsize": 8,
- "endian": "big",
- "offset": 0,
- "scale": 1,
- "sign": "signed",
- "startbit": 0
}, - "type": "num_fixed_point"
}, - "created_at": "2017-02-11T01:23:45Z",
- "data_id": "00000001",
- "data_type": 1,
- "description": "this is signal1",
- "display": {
- "format": "%6.3f",
- "max": 10,
- "min": -10,
- "unit": "m/s2"
}, - "hash": "sha256:8ddad69061d8...",
- "label": "signal1",
- "updated_at": "2017-02-11T12:34:56Z",
- "uuid": "2cc7de37-6f71-4458-887e-10e618a6fcfb"
}
], - "page": {
- "first": true,
- "last": true,
- "next": "/path?xxx=1&bbb=2&page=3",
- "previous": "/path?xxx=1&bbb=2&page=1",
- "total_count": 1
}
}信号定義を作成します。
label が重複する場合、または uuid が重複する場合は、
ステータスコード 409 Conflict が返却されます。| project_uuid required | string Example: 75c55669-b2ab-4f14-a871-8571c6afa1ef プロジェクトのUUID |
| channel | integer <int32> チャンネル |
object or object or object or object or object or object (SignalConversion) | |
| data_id | string データID |
| data_type | integer <int32> データタイプ |
| description | string 信号定義の説明 |
object (SignalDisplay) | |
| label | string 信号定義のラベル |
| uuid | string 信号定義のUUID |
{- "channel": 1,
- "conversion": {
- "options": {
- "bitsize": 8,
- "endian": "big",
- "offset": 0,
- "scale": 1,
- "sign": "signed",
- "startbit": 0
}, - "type": "num_fixed_point"
}, - "data_id": "00000001",
- "data_type": 1,
- "description": "description of signal",
- "display": {
- "format": "%6.3f",
- "max": 10,
- "min": -10,
- "unit": "m/s2"
}, - "label": "signal",
- "uuid": "022a9941-d7ff-44ee-a9ff-55a623880a40"
}{- "channel": 1,
- "conversion": {
- "options": {
- "bitsize": 8,
- "endian": "big",
- "offset": 0,
- "scale": 1,
- "sign": "signed",
- "startbit": 0
}, - "type": "num_fixed_point"
}, - "created_at": "2017-02-11T01:23:45Z",
- "data_id": "00000001",
- "data_type": 1,
- "description": "this is signal1",
- "display": {
- "format": "%6.3f",
- "max": 10,
- "min": -10,
- "unit": "m/s2"
}, - "hash": "sha256:8ddad69061d8...",
- "label": "signal1",
- "updated_at": "2017-02-11T12:34:56Z",
- "uuid": "c1c3fd05-89c6-4da8-abdb-7d31aec2af18"
}信号定義を取得します。
| project_uuid required | string Example: 75c55669-b2ab-4f14-a871-8571c6afa1ef プロジェクトのUUID |
| signal_uuid required | string Example: a74b933c-7c3a-4e9f-bf16-299a96d26562 信号定義のUUID |
{- "channel": 1,
- "conversion": {
- "options": {
- "bitsize": 8,
- "endian": "big",
- "offset": 0,
- "scale": 1,
- "sign": "signed",
- "startbit": 0
}, - "type": "num_fixed_point"
}, - "created_at": "2017-02-11T01:23:45Z",
- "data_id": "00000001",
- "data_type": 1,
- "description": "this is signal1",
- "display": {
- "format": "%6.3f",
- "max": 10,
- "min": -10,
- "unit": "m/s2"
}, - "hash": "sha256:8ddad69061d8...",
- "label": "signal1",
- "updated_at": "2017-02-11T12:34:56Z",
- "uuid": "c1c3fd05-89c6-4da8-abdb-7d31aec2af18"
}信号定義を更新します。
| project_uuid required | string Example: 75c55669-b2ab-4f14-a871-8571c6afa1ef プロジェクトのUUID |
| signal_uuid required | string Example: a74b933c-7c3a-4e9f-bf16-299a96d26562 信号定義のUUID |
| channel | integer <int32> チャンネル |
object or object or object or object or object or object (SignalConversion) | |
| data_id | string データID |
| data_type | integer <int32> データタイプ |
| description | string 信号定義の説明 |
object (SignalDisplay) | |
| label | string 信号定義のラベル |
{- "channel": 1,
- "conversion": {
- "options": {
- "bitsize": 8,
- "endian": "big",
- "offset": 0,
- "scale": 1,
- "sign": "signed",
- "startbit": 0
}, - "type": "num_fixed_point"
}, - "data_id": "00000001",
- "data_type": 1,
- "description": "description of signal",
- "display": {
- "format": "%6.3f",
- "max": 10,
- "min": -10,
- "unit": "m/s2"
}, - "label": "signal"
}{- "channel": 1,
- "conversion": {
- "options": {
- "bitsize": 8,
- "endian": "big",
- "offset": 0,
- "scale": 1,
- "sign": "signed",
- "startbit": 0
}, - "type": "num_fixed_point"
}, - "created_at": "2017-02-11T01:23:45Z",
- "data_id": "00000001",
- "data_type": 1,
- "description": "this is signal1",
- "display": {
- "format": "%6.3f",
- "max": 10,
- "min": -10,
- "unit": "m/s2"
}, - "hash": "sha256:8ddad69061d8...",
- "label": "signal1",
- "updated_at": "2017-02-11T12:34:56Z",
- "uuid": "c1c3fd05-89c6-4da8-abdb-7d31aec2af18"
}(Deprecated。このエンドポイントでなく /projects/00000000-0000-0000-0000-000000000000/data を使用してください)
データポイントのリストを取得します。
返却されるデータポイントはJSON形式です。データポイントごとに改行で区切られます。
| name | string Deprecated Example: name=8f40b21c-f2c4-4fa5-8fe3-325491a59597 非推奨: このパラメータは非推奨です。代わりに どの計測またはどのエッジのデータポイントを取得するかを、以下のいずれかを使って指定します:
最初に、指定されたnameに一致する計測UUIDがあるかが検索されます。なければ一致するエッジUUIDがあるかが検索され、それもなければ一致するエッジの名前があるかが検索されます。 |
| meas_uuid | string <uuid> Example: meas_uuid=2cc7de37-6f71-4458-887e-10e618a6fcfb 計測のUUID Name(非推奨)、MeasUUID、EdgeUUIDのいずれか必須です。 |
| edge_uuid | string <uuid> Example: edge_uuid=24dbdc29-165f-4919-b2ce-7a335282bde2 エッジUUID Name(非推奨)、MeasUUID、EdgeUUIDのいずれか必須です。 |
| start | string Example: start=2019-10-29T03:04:05.123456Z 取得対象区間の始点(始点は対象区間に含まれます)。以下のいずれかの形式で指定します。
|
| end | string Example: end=2019-10-29T03:04:05.234567Z 取得対象区間の終点(終点は対象区間に含まれません)。以下のいずれかの形式で指定します。
|
| data_id_filter | Array of strings Example: data_id_filter=string:string-data-name 取得したいデータポイントの条件をiSCPv2のデータIDフィルターのフォーマットで指定します。 データIDフィルターのフォーマットは データ型( フィルター文字列は
セグメントとワイルドカードの使用
使用例
iSCPv2のデータIDとフィルターについての詳細は以下のリンクを参照します。 参考 iSCP v1形式で保存されたデータの場合 iSCP v1形式で保存されたデータポイントの
例:
|
| idq | Array of strings Deprecated Example: idq=data_type:data_name 非推奨 です。
各セグメントにはワイルドカード(*)を使用することができます。 例:
参考1 iSCP v2形式で保存されたデータの場合 iSCP v2形式で保存されたデータポイントの
例:
参考2 iSCP v1形式で保存されたデータの場合 iSCP v1形式で保存されたデータポイントの
例:
|
| since | string Example: since=2019-10-29T03:04:05.341268Z 指定した時刻以降に更新された計測のみを取得します。 以下のいずれかの形式で指定します。
|
| exit_on_error | string Default: "false" Example: exit_on_error=false
|
| label | Array of strings Example: label=label 信号定義のラベル |
| limit | integer <int64> 1回のリクエストで取得する件数。デフォルトは無制限。 |
| order | string Enum: "asc" "desc" Example: order=asc 並べ替えの順序。デフォルトは |
| paginate | boolean Default: false Example: paginate=true カーソルページネーションを有効にします。
|
| time_format | string Enum: "ns" "us" "ms" "s" "rfc3339" Example: time_format=rfc3339 レスポンスの時刻表示形式。デフォルトは |
"string"(Deprecated。このエンドポイントでなく /projects/00000000-0000-0000-0000-000000000000/data_ids を使用してください)
データポイントのデータID( data_type, data_id )のリストを取得します。
name で計測UUIDを指定した場合、 start / end パラメーターは無視されます。
name でエッジUUIDまたはエッジの名前を指定した場合、 start / end パラメーターを使ってそのエッジの計測をさらに絞り込むことができます。
この場合、 start / end で指定された区間内に基準時刻を持つ計測のみが対象となり、その計測に含まれるデータIDが取得されます。
| name | string Deprecated Example: name=8f40b21c-f2c4-4fa5-8fe3-325491a59597 非推奨: このパラメータは非推奨です。代わりに どの計測またはどのエッジのデータポイントを取得するかを、以下のいずれかを使って指定します:
最初に、指定されたnameに一致する計測UUIDがあるかが検索されます。なければ一致するエッジUUIDがあるかが検索され、それもなければ一致するエッジの名前があるかが検索されます。 |
| start | string Example: start=2019-10-29T03:04:05.123456Z 取得対象区間の始点(始点は対象区間に含まれます)。以下のいずれかの形式で指定します。
|
| end | string Example: end=2019-10-29T03:04:05.234567Z 取得対象区間の終点(終点は対象区間に含まれません)。以下のいずれかの形式で指定します。
|
{- "items": [
- {
- "data_type": "data_type",
- "data_name": "data_name",
- "data_id": "data_id"
}
]
}(Deprecated。このエンドポイントでなく /projects/00000000-0000-0000-0000-000000000000/getids を使用してください)
エッジを指定し、そのエッジから送信されているデータに含まれるデータ識別子( data_type 、 channel 、 data_id の組み合わせ)のリストを取得します。
| start | integer <int64> Example: start=1505797626000000 取得対象範囲の始点(マイクロ秒単位のUNIX時刻) |
| end | integer <int64> Example: end=1505798226123456 取得対象範囲の終点(マイクロ秒単位のUNIX時刻) |
| edge_uuid | string Example: edge_uuid=24dbdc29-165f-4919-b2ce-7a335282bde2 エッジのUUID |
{- "items": [
- {
- "data_type": 1,
- "channel": 2,
- "data_id": "00000001"
}
]
}(Deprecated。このエンドポイントでなく /projects/00000000-0000-0000-0000-000000000000/measurements/{measurement_uuid}/getids を使用してください) 計測を指定し、その計測に含まれるデータ識別子( data_type 、 channel 、 data_id の組み合わせ)のリストを取得します。
| measurement_uuid required | string Example: 2cc7de37-6f71-4458-887e-10e618a6fcfb 計測のUUID |
{- "items": [
- {
- "data_type": 1,
- "channel": 2,
- "data_id": "00000001"
}
]
}(Deprecated。このエンドポイントでなく /projects/00000000-0000-0000-0000-000000000000/measurements/data を使用してください)
データポイントを登録します。
このエンドポイント使用時は、 Content-Type を以下にしてください。
application/protobufStoreProto を参照してください。DataPointProto の data_payloadは iSCP v1のデータフォーマットに従います。(Deprecated。このエンドポイントでなく /projects/00000000-0000-0000-0000-000000000000/measurements を使用してください)
計測のリストを取得します。
| uuid | Array of strings Example: uuid=5c3ac8b5-3acd-43ea-86cb-4835664b0483 計測のUUID |
| name | string Example: name=measurement1 名前が指定した文字列から始まる計測を取得します。 文字列をダブルクォーテーションで囲むと、完全一致のものだけが取得されます。 |
| edge_uuid | string Example: edge_uuid=e0022b03-023f-4f24-90f1-560be10c423b 計測に関連付けられたエッジのUUID |
| start | string Example: start=2019-10-29T03:04:05.123456Z 計測を取得するための対象区間の始点(始点は対象区間に含まれます)。
計測の基準時刻が、ここで指定した時刻と同じかそれより後の場合、その計測は取得対象になります。
ただし、 以下のいずれかの形式で指定します。
|
| end | string Example: end=2019-10-29T03:04:05.234567Z 計測を取得するための対象区間の終点(終点は対象区間に含まれません)。
計測の基準時刻が、ここで指定した時刻よりも前の場合、その計測は取得対象になります。
ただし、 以下のいずれかの形式で指定します。
|
| partial_match | boolean Default: false Example: partial_match=true
以下の図の例では、
|
| basetime_type | string Enum: "edge_rtc" "ntp" "gps" "api_first_received" "volatile" "manual" Example: basetime_type=ntp 計測の基準時刻のタイプ |
| ended | boolean 計測が終了している(ended)かどうかを指定して計測を取得します。 エッジにおいてデータの取得が終了している場合、その計測は「終了(ended)」となります。 計測は終了(ended)していても、まだサーバーに送信されていないデータがエッジに残っている可能性があります。
|
| since | string Example: since=2019-10-29T03:04:05.341268Z 指定した時刻以降に更新された計測のみを取得します。 以下のいずれかの形式で指定します。
|
| duration_start | integer <int64> Example: duration_start=100 計測時間の最小値(マイクロ秒)。これより短い計測は取得しません。 |
| duration_end | integer <int64> Example: duration_end=100000 計測時間の最大値(マイクロ秒)。これより長い計測は取得しません。 |
| status | Array of strings Items Enum: "measuring" "resending" "finished" Example: status=measuring 計測のステータス |
| limit | integer <int32> Default: 1000 Example: limit=1000 1回のリクエストで取得する件数。ただし、0を指定するとデフォルトの値が使用されます。 |
| sort | string Default: "base_time" Enum: "name" "description" "ended" "duration" "base_time" "processed_ratio" "created_at" "updated_at" Example: sort=base_time 並べ替えに使用するキー |
| page | integer <int32> Example: page=1 取得するページの番号 |
| order | string Enum: "asc" "desc" Example: order=asc 並べ替えの順序 |
{- "items": [
- {
- "uuid": "2cc7de37-6f71-4458-887e-10e618a6fcfb",
- "name": "meas1",
- "description": "description of measurement",
- "basetime": "2019-08-24T14:15:22Z",
- "basetime_type": "edge_rtc",
- "max_priority_basetime_id": 1,
- "edge_uuid": "00de1861-6614-4435-af07-da9b4338d57c",
- "duration": 100000000,
- "duration_usec": 1000,
- "start_time": "2019-08-24T14:15:22Z",
- "end_time": "2019-08-24T14:15:22Z",
- "max_elapsed_time": 10,
- "min_elapsed_time": -10,
- "completed": true,
- "protected": true,
- "sequences": {
- "received_chunks_ratio": 0.5,
- "received_data_points": 123456789,
- "expected_data_points": 123456789,
- "status": "measuring"
}, - "markers": [
- {
- "uuid": "string",
- "name": "string",
- "description": "string",
- "type": "point",
- "tag": { },
- "created_at": "string",
- "created_by": "string",
- "updated_at": "string",
- "updated_by": "string",
- "detail": {
- "occurred_elapsed_time": 0
}
}
], - "created_at": "2017-02-11T01:23:45Z",
- "updated_at": "2017-02-11T01:23:45Z",
- "processed_ratio": 0.9,
- "ended": true,
- "status": "measuring",
- "received_data_points": 0,
- "start_time_or_base_time": "2019-08-24T14:15:22Z",
- "end_time_or_base_time": "2019-08-24T14:15:22Z",
- "duration_usec_from_start_time_or_base_time": 0,
- "total_payload_size": 10000000
}
], - "page": {
- "total_count": 0,
- "first": true,
- "last": true,
- "next": "string",
- "previous": "string"
}
}(Deprecated。このエンドポイントでなく /projects/00000000-0000-0000-0000-000000000000/measurements を使用してください)
計測を作成します。
| name | string 計測の名前 |
| description | string 計測の説明 |
| basetime required | string <date-time> 時系列データの経過時間に対して基準となる時刻。基準時刻(RFC3339形式) |
| basetime_type required | string (MeasurementBaseTimeType) Enum: "edge_rtc" "ntp" "gps" "api_first_received" "volatile" "manual" "undefined" 計測の基準時刻タイプ。この属性に加えて、 |
| basetime_priority | integer (MeasBaseTimePriority) [ 0 .. 255 ] 基準時刻の優先度 |
| basetime_name | string (MeasBaseTimeName) [ 0 .. 255 ] characters 基準時刻の名前 |
| basetime_elapsed_time | integer <int64> (MeasBaseTimeElapsedTime) 基準時刻を受信した基準時刻からの経過時間(ナノ秒)。 |
| edge_uuid required | string この計測に関連付けられたエッジのUUID |
| protected required | boolean Deprecated
|
{- "name": "meas1",
- "description": "description of measurement",
- "basetime": "2017-02-11T01:23:45.678901Z",
- "basetime_type": "ntp",
- "edge_uuid": "00de1861-6614-4435-af07-da9b4338d57c",
- "protected": false
}{- "uuid": "2cc7de37-6f71-4458-887e-10e618a6fcfb",
- "name": "meas1",
- "description": "description of measurement",
- "edge_uuid": "00de1861-6614-4435-af07-da9b4338d57c",
- "duration": 100000000,
- "ended": true,
- "status": "measuring",
- "basetime": "2017-02-11T01:23:45.678901Z",
- "basetime_type": "ntp",
- "processed_ratio": 0.9,
- "received_data_points": null,
- "markers": [
- {
- "uuid": "27a841d8-78c0-4e5e-b0ee-ec1fafd90ef6",
- "name": "Name3",
- "description": "Description3",
- "tag": {
- "tagkey1": "tagValue1",
- "tagkey2": "tagValue2"
}, - "type": "range",
- "detail": {
- "start_elapsed_time": 3,
- "end_elapsed_time": 7
}, - "created_at": "2000-01-02T03:04:07Z",
- "created_by": "e3f57626-93d6-4274-a51f-1ac538357a8a",
- "updated_at": "2020-04-15T14:15:23.135268Z",
- "updated_by": "447af3b3-a311-4047-9d7c-110a0fac505b"
}, - {
- "uuid": "cdc1029e-d474-477c-aa6e-b48928fdb825",
- "name": "Name2",
- "description": "Description2",
- "tag": {
- "tagkey1": "tagValue1",
- "tagkey2": "tagValue2"
}, - "type": "point",
- "detail": {
- "occurred_elapsed_time": 3
}, - "created_at": "2000-01-02T03:04:06Z",
- "created_by": "e3f57626-93d6-4274-a51f-1ac538357a8a",
- "updated_at": "2020-04-15T14:15:23.064981Z",
- "updated_by": "447af3b3-a311-4047-9d7c-110a0fac505b"
}
], - "protected": false,
- "created_at": "2017-02-11T01:23:45Z",
- "updated_at": "2017-02-11T12:34:56Z"
}(Deprecated。このエンドポイントでなく /projects/00000000-0000-0000-0000-000000000000/measurements/{measurement_uuid} を使用してください)
計測を削除します。
| measurement_uuid required | string Example: 2cc7de37-6f71-4458-887e-10e618a6fcfb 計測のUUID |
(Deprecated。このエンドポイントでなく /projects/00000000-0000-0000-0000-000000000000/measurements/{measurement_uuid} を使用してください) 計測を取得します。
| measurement_uuid required | string Example: 2cc7de37-6f71-4458-887e-10e618a6fcfb 計測のUUID |
{- "uuid": "2cc7de37-6f71-4458-887e-10e618a6fcfb",
- "name": "meas1",
- "description": "description of measurement",
- "edge_uuid": "00de1861-6614-4435-af07-da9b4338d57c",
- "duration": 100000000,
- "ended": true,
- "status": "measuring",
- "basetime": "2017-02-11T01:23:45.678901Z",
- "basetime_type": "ntp",
- "processed_ratio": 0.9,
- "received_data_points": null,
- "markers": [
- {
- "uuid": "887326ce-a2a2-4db6-8c06-2f8447f0f29e",
- "name": "name",
- "description": "description",
- "type": "point",
- "detail": {
- "occurred_elapsed_time": 100
}, - "tag": {
- "key1": "value1",
- "key2": "value2"
}, - "elapsed_time": 1000,
- "created_at": "2017-02-11T01:23:45Z",
- "created_by": "adbbd1ff-1e13-4b12-b125-e213945a65f8",
- "updated_at": "2017-02-11T12:34:56Z",
- "updated_by": "adbbd1ff-1e13-4b12-b125-e213945a65f8"
}
], - "protected": false,
- "created_at": "2017-02-11T01:23:45Z",
- "updated_at": "2017-02-11T12:34:56Z"
}(Deprecated。このエンドポイントでなく /projects/00000000-0000-0000-0000-000000000000/measurements/{measurement_uuid} を使用してください) 指定したUUIDの計測を作成します。
| measurement_uuid required | string Example: 2cc7de37-6f71-4458-887e-10e618a6fcfb 計測のUUID |
| name | string 計測の名前 |
| description | string 計測の説明 |
| basetime required | string <date-time> 時系列データの経過時間に対して基準となる時刻。基準時刻(RFC3339形式) |
| basetime_type required | string (MeasurementBaseTimeType) Enum: "edge_rtc" "ntp" "gps" "api_first_received" "volatile" "manual" "undefined" 計測の基準時刻タイプ。この属性に加えて、 |
| basetime_priority | integer (MeasBaseTimePriority) [ 0 .. 255 ] 基準時刻の優先度 |
| basetime_name | string (MeasBaseTimeName) [ 0 .. 255 ] characters 基準時刻の名前 |
| basetime_elapsed_time | integer <int64> (MeasBaseTimeElapsedTime) 基準時刻を受信した基準時刻からの経過時間(ナノ秒)。 |
| edge_uuid required | string この計測に関連付けられたエッジのUUID |
| protected required | boolean Deprecated
|
{- "name": "meas1",
- "description": "description of measurement",
- "basetime": "2017-02-11T01:23:45.678901Z",
- "basetime_type": "ntp",
- "edge_uuid": "00de1861-6614-4435-af07-da9b4338d57c",
- "protected": false
}{- "uuid": "2cc7de37-6f71-4458-887e-10e618a6fcfb",
- "name": "meas1",
- "description": "description of measurement",
- "edge_uuid": "00de1861-6614-4435-af07-da9b4338d57c",
- "duration": 100000000,
- "ended": true,
- "status": "measuring",
- "basetime": "2017-02-11T01:23:45.678901Z",
- "basetime_type": "ntp",
- "processed_ratio": 0.9,
- "received_data_points": null,
- "markers": [
- {
- "uuid": "27a841d8-78c0-4e5e-b0ee-ec1fafd90ef6",
- "name": "Name3",
- "description": "Description3",
- "tag": {
- "tagkey1": "tagValue1",
- "tagkey2": "tagValue2"
}, - "type": "range",
- "detail": {
- "start_elapsed_time": 3,
- "end_elapsed_time": 7
}, - "created_at": "2000-01-02T03:04:07Z",
- "created_by": "e3f57626-93d6-4274-a51f-1ac538357a8a",
- "updated_at": "2020-04-15T14:15:23.135268Z",
- "updated_by": "447af3b3-a311-4047-9d7c-110a0fac505b"
}, - {
- "uuid": "cdc1029e-d474-477c-aa6e-b48928fdb825",
- "name": "Name2",
- "description": "Description2",
- "tag": {
- "tagkey1": "tagValue1",
- "tagkey2": "tagValue2"
}, - "type": "point",
- "detail": {
- "occurred_elapsed_time": 3
}, - "created_at": "2000-01-02T03:04:06Z",
- "created_by": "e3f57626-93d6-4274-a51f-1ac538357a8a",
- "updated_at": "2020-04-15T14:15:23.064981Z",
- "updated_by": "447af3b3-a311-4047-9d7c-110a0fac505b"
}
], - "protected": false,
- "created_at": "2017-02-11T01:23:45Z",
- "updated_at": "2017-02-11T12:34:56Z"
}(Deprecated。このエンドポイントでなく /projects/00000000-0000-0000-0000-000000000000/measurements/{measurement_uuid} を使用してください) 計測に関する情報を更新します。
| measurement_uuid required | string Example: 2cc7de37-6f71-4458-887e-10e618a6fcfb 計測のUUID |
| name | string 計測の名前 |
| description | string 計測の説明 |
| basetime_type | string (MeasurementBaseTimeType) Deprecated Enum: "edge_rtc" "ntp" "gps" "api_first_received" "volatile" "manual" "undefined" 計測の基準時刻タイプ 非推奨 代わりに基準時刻APIを使用して、当該基準時刻の優先度を明示的に設定してください。この値をセットすると、基準時刻タイプの優先度を強制的に一番高いものに変更します。 |
{- "name": "meas1",
- "description": "description of measurement",
- "basetime_type": "ntp",
- "max_priority_basetime_id": 1
}(Deprecated。このエンドポイントでなく /projects/00000000-0000-0000-0000-000000000000/measurements/{measurement_uuid}/complete を使用してください)
計測を回収完了(completed)にします。
completedは、エッジでのデータ取得が終了し(ended)、
かつ、すべてのデータがサーバーに送信されたことを意味します。
| measurement_uuid required | string Example: 2cc7de37-6f71-4458-887e-10e618a6fcfb 計測のUUID |
{- "uuid": "2cc7de37-6f71-4458-887e-10e618a6fcfb",
- "name": "meas1",
- "description": "description of measurement",
- "edge_uuid": "00de1861-6614-4435-af07-da9b4338d57c",
- "duration": 100000000,
- "ended": true,
- "status": "measuring",
- "basetime": "2017-02-11T01:23:45.678901Z",
- "basetime_type": "ntp",
- "processed_ratio": 0.9,
- "received_data_points": null,
- "markers": [
- {
- "uuid": "27a841d8-78c0-4e5e-b0ee-ec1fafd90ef6",
- "name": "Name3",
- "description": "Description3",
- "tag": {
- "tagkey1": "tagValue1",
- "tagkey2": "tagValue2"
}, - "type": "range",
- "detail": {
- "start_elapsed_time": 3,
- "end_elapsed_time": 7
}, - "created_at": "2000-01-02T03:04:07Z",
- "created_by": "e3f57626-93d6-4274-a51f-1ac538357a8a",
- "updated_at": "2020-04-15T14:15:23.135268Z",
- "updated_by": "447af3b3-a311-4047-9d7c-110a0fac505b"
}, - {
- "uuid": "cdc1029e-d474-477c-aa6e-b48928fdb825",
- "name": "Name2",
- "description": "Description2",
- "tag": {
- "tagkey1": "tagValue1",
- "tagkey2": "tagValue2"
}, - "type": "point",
- "detail": {
- "occurred_elapsed_time": 3
}, - "created_at": "2000-01-02T03:04:06Z",
- "created_by": "e3f57626-93d6-4274-a51f-1ac538357a8a",
- "updated_at": "2020-04-15T14:15:23.064981Z",
- "updated_by": "447af3b3-a311-4047-9d7c-110a0fac505b"
}
], - "protected": false,
- "created_at": "2017-02-11T01:23:45Z",
- "updated_at": "2017-02-11T12:34:56Z"
}(Deprecated。このエンドポイントでなく /projects/00000000-0000-0000-0000-000000000000/measurements/{measurement_uuid}/end を使用してください)
計測終了(ended)とします。endedは、エッジにおけるデータの取得が終了していることを表します。
(サーバーに回収されていないデータがまだエッジに残っている可能性はあります。サーバーへのデータの回収が完了した状態は、completedと呼びます。)
| measurement_uuid required | string Example: 2cc7de37-6f71-4458-887e-10e618a6fcfb 計測のUUID |
{- "received_chunks_ratio": 0.5,
- "received_data_points": 123456789,
- "expected_data_points": 123456789,
- "status": "measuring"
}(Deprecated。このエンドポイントでなく /projects/00000000-0000-0000-0000-000000000000/measurements/{measurement_uuid}/protected を使用してください) 計測の保護を解除します。
| measurement_uuid required | string Example: 2cc7de37-6f71-4458-887e-10e618a6fcfb 計測のUUID |
(Deprecated。このエンドポイントでなく /projects/00000000-0000-0000-0000-000000000000/measurements/{measurement_uuid}/protected を使用してください) 計測を保護します。保護された計測は削除できません。 See も参照してください。
| measurement_uuid required | string Example: 2cc7de37-6f71-4458-887e-10e618a6fcfb 計測のUUID |
(Deprecated。このエンドポイントでなく /projects/00000000-0000-0000-0000-000000000000/measurements/{measurement_uuid}/basetimes を使用してください)
計測の基準時刻のリストを取得します。
| measurement_uuid required | string Example: 2cc7de37-6f71-4458-887e-10e618a6fcfb 計測のUUID |
{- "items": [
- {
- "type": "ntp",
- "basetime": "2017-02-11T01:23:45.678901Z",
- "created_at": "2017-02-11T01:23:45Z",
- "updated_at": "2017-02-11T01:23:45Z"
}
]
}(Deprecated。このエンドポイントでなく /projects/00000000-0000-0000-0000-000000000000/measurements/{measurement_uuid}/basetimes/{type} を使用してください)
基準時刻を削除します。
指定された基準時刻が使用中の場合(その計測の basetime_type として設定されている場合)は、
その基準時刻は削除できません(ステータスコード 409 が返却されます)。
このような場合は、他の基準時刻をその計測の basetime_type にしてから、削除したい基準時刻を削除してください。
| measurement_uuid required | string Example: 2cc7de37-6f71-4458-887e-10e618a6fcfb 計測のUUID |
| type required | string Enum: "edge_rtc" "ntp" "gps" "api_first_received" "volatile" "manual" Example: ntp 基準時刻のタイプ |
(Deprecated。このエンドポイントでなく /projects/00000000-0000-0000-0000-000000000000/measurements/{measurement_uuid}/basetimes/{type} を使用してください) 基準時刻タイプを指定して計測の基準時刻を取得します。
| measurement_uuid required | string Example: 2cc7de37-6f71-4458-887e-10e618a6fcfb 計測のUUID |
| type required | string Enum: "edge_rtc" "ntp" "gps" "api_first_received" "volatile" "manual" Example: ntp 基準時刻のタイプ |
{- "type": "ntp",
- "basetime": "2017-02-11T01:23:45.678901Z",
- "created_at": "2017-02-11T01:23:45Z",
- "updated_at": "2017-02-11T01:23:45Z"
}(Deprecated。このエンドポイントでなく /projects/00000000-0000-0000-0000-000000000000/measurements/{measurement_uuid}/basetimes/{type} を使用してください)
基準時刻を更新します。
この計測において、使用する基準時刻が設定されていない( basetime_type が undefined )の場合は、
新しい基準時刻を basetime_type に設定します。
| measurement_uuid required | string Example: 2cc7de37-6f71-4458-887e-10e618a6fcfb 計測のUUID |
| type required | string Enum: "edge_rtc" "ntp" "gps" "api_first_received" "volatile" "manual" Example: ntp 基準時刻のタイプ |
| basetime | string <date-time> (MeasBaseTimeBaseTime) 時系列データの経過時間に対して基準となる時刻。基準時刻(RFC3339形式) |
| priority | integer (MeasBaseTimePriority) [ 0 .. 255 ] 基準時刻の優先度 |
| name | string (MeasBaseTimeName) [ 0 .. 255 ] characters 基準時刻の名前 |
| elapsed_time | integer <int64> (MeasBaseTimeElapsedTime) 基準時刻を受信した基準時刻からの経過時間(ナノ秒)。 |
{- "basetime": "2017-02-11T01:23:45Z"
}{- "type": "ntp",
- "basetime": "2017-02-11T01:23:45.678901Z",
- "created_at": "2017-02-11T01:23:45Z",
- "updated_at": "2017-02-11T01:23:45Z"
}(Deprecated。このエンドポイントでなく /projects/00000000-0000-0000-0000-000000000000/measurements/{measurement_uuid}/sections を使用してください)
計測に含まれるセクションのリストを取得します。
| measurement_uuid required | string Example: 2cc7de37-6f71-4458-887e-10e618a6fcfb 計測のUUID |
| filter | string Default: "both" Enum: "processed" "unprocessed" "both" Example: filter=processed 計測セクションの処理ステータス。 |
| limit | integer <int32> Example: limit=1000 1回のリクエストで取得する件数 |
{- "items": [
- {
- "serial_number": 0,
- "processed": true,
- "created_at": "2017-02-11T01:23:45Z",
- "updated_at": "2017-02-11T12:34:56Z"
}, - {
- "serial_number": 1,
- "processed": true,
- "created_at": "2017-02-11T01:23:45Z",
- "updated_at": "2017-02-11T12:34:56Z"
}, - {
- "serial_number": 2,
- "processed": false
}
], - "total_count": 100
}(Deprecated。このエンドポイントでなく /projects/00000000-0000-0000-0000-000000000000/measurements/{measurement_uuid}/sequences を使用してください) 計測シーケンスのリストを取得します。
| measurement_uuid required | string Example: 2cc7de37-6f71-4458-887e-10e618a6fcfb 計測のUUID |
{- "items": [
- {
- "uuid": "0b849907-9f04-4c87-b176-b73fb527e935",
- "expected_data_points": 123456789,
- "received_data_points": 123456789,
- "received_chunks_count": 10,
- "final_sequence_number": 10,
- "created_at": "2000-01-01T00:00:00Z",
- "updated_at": "2000-01-01T00:00:00Z"
}
], - "page": {
- "total_count": 0
}
}(Deprecated。このエンドポイントでなく /projects/00000000-0000-0000-0000-000000000000/measurements/{measurement_uuid}/sequences/{sequence_uuid} を使用してください) 計測シーケンスを取得します。
| measurement_uuid required | string Example: 2cc7de37-6f71-4458-887e-10e618a6fcfb 計測のUUID |
| sequences_uuid required | string Example: 0b849907-9f04-4c87-b176-b73fb527e935 計測シーケンスのUUID |
{- "uuid": "0b849907-9f04-4c87-b176-b73fb527e935",
- "expected_data_points": 123456789,
- "received_data_points": 123456789,
- "received_chunks_count": 10,
- "final_sequence_number": 10,
- "created_at": "2000-01-01T00:00:00Z",
- "updated_at": "2000-01-01T00:00:00Z"
}(Deprecated。このエンドポイントでなく /projects/00000000-0000-0000-0000-000000000000/measurements/{measurement_uuid}/sequences/{sequence_uuid} を使用してください) 計測シーケンスを更新します。
| measurement_uuid required | string Example: 2cc7de37-6f71-4458-887e-10e618a6fcfb 計測のUUID |
| sequences_uuid required | string Example: 0b849907-9f04-4c87-b176-b73fb527e935 計測シーケンスのUUID |
| expected_data_points | integer <int64> >= 0 この計測シーケンスでサーバーが受信することが想定されるデータポイントの総数 (既に受信済みのデータポイントを含む) 符号なし64bit整数。 |
| final_sequence_number | integer <int64> [ 0 .. 4294967295 ] この計測シーケンスに含まれるチャンクに付与された最後のシーケンス番号 |
{- "expected_data_points": 123456789,
- "final_sequence_number": 10
}{- "uuid": "0b849907-9f04-4c87-b176-b73fb527e935",
- "expected_data_points": 123456789,
- "received_data_points": 123456789,
- "received_chunks_count": 10,
- "final_sequence_number": 10,
- "created_at": "2000-01-01T00:00:00Z",
- "updated_at": "2000-01-01T00:00:00Z"
}(Deprecated。このエンドポイントでなく /projects/00000000-0000-0000-0000-000000000000/measurements/{measurement_uuid}/sequences/{sequence_uuid} を使用してください) 計測シーケンスを置換します。
| measurement_uuid required | string Example: 2cc7de37-6f71-4458-887e-10e618a6fcfb 計測のUUID |
| sequences_uuid required | string Example: 0b849907-9f04-4c87-b176-b73fb527e935 計測シーケンスのUUID |
| expected_data_points | integer <int64> >= 0 この計測シーケンスでサーバーが受信することが想定されるデータポイントの総数 (既に受信済みのデータポイントを含む) 符号なし64bit整数。 |
| final_sequence_number | integer <int64> [ 0 .. 4294967295 ] この計測シーケンスに含まれるチャンクに付与された最後のシーケンス番号 |
{- "expected_data_points": 123456789,
- "final_sequence_number": 10
}{- "uuid": "0b849907-9f04-4c87-b176-b73fb527e935",
- "expected_data_points": 123456789,
- "received_data_points": 123456789,
- "received_chunks_count": 10,
- "final_sequence_number": 10,
- "created_at": "2000-01-01T00:00:00Z",
- "updated_at": "2000-01-01T00:00:00Z"
}(Deprecated。このエンドポイントでなく /projects/00000000-0000-0000-0000-000000000000/measurements/sequence/chunks を使用してください) 計測シーケンスにチャンクを作成します。
protocol.protoのStoreDataChunksをJSONでシリアライズしたものです。
StoreDataPointのpayloadは iSCP v2のデータフォーマットに従います。この資料は現在準備中です。
"string"{- "items": [
- {
- "sequence_number": 1,
- "result": "ok"
}
], - "total_count": 1
}(Deprecated。このエンドポイントでなく /projects/00000000-0000-0000-0000-000000000000/measurements/jobs を使用してください)
ジョブ(CSVファイルを計測に変換するジョブなど)のリストを取得します。
| limit | integer <int32> Example: limit=1000 1回のリクエストで取得する件数 |
| sort | any Default: "created_at" Enum: "created_at" "updated_at" Example: sort=created_at 並べ替えに使用するキー |
| status | Array of strings Items Enum: "ready" "processing" "succeeded" "failed" "cancelled" Example: status=succeeded ジョブのステータス |
| page | integer <int32> Example: page=1 取得するページの番号 |
| order | string Enum: "asc" "desc" Example: order=asc 並べ替えの順序 |
{- "items": [
- {
- "uuid": "d9135580-4a6b-4fbd-971b-8fdce27b617c",
- "meas_uuid": "a72c674a-e8e9-43bc-940f-a034853363e1",
- "measurement": {
- "uuid": "2cc7de37-6f71-4458-887e-10e618a6fcfb",
- "name": "meas1",
- "description": "description of measurement",
- "edge_uuid": "00de1861-6614-4435-af07-da9b4338d57c",
- "duration": 100000000,
- "ended": true,
- "status": "measuring",
- "basetime": "2017-02-11T01:23:45.678901Z",
- "basetime_type": "ntp",
- "processed_ratio": 0.9,
- "received_data_points": null,
- "markers": [
- {
- "uuid": "27a841d8-78c0-4e5e-b0ee-ec1fafd90ef6",
- "name": "Name3",
- "description": "Description3",
- "tag": {
- "tagkey1": "tagValue1",
- "tagkey2": "tagValue2"
}, - "type": "range",
- "detail": {
- "start_elapsed_time": 3,
- "end_elapsed_time": 7
}, - "created_at": "2000-01-02T03:04:07Z",
- "created_by": "e3f57626-93d6-4274-a51f-1ac538357a8a",
- "updated_at": "2020-04-15T14:15:23.135268Z",
- "updated_by": "447af3b3-a311-4047-9d7c-110a0fac505b"
}, - {
- "uuid": "cdc1029e-d474-477c-aa6e-b48928fdb825",
- "name": "Name2",
- "description": "Description2",
- "tag": {
- "tagkey1": "tagValue1",
- "tagkey2": "tagValue2"
}, - "type": "point",
- "detail": {
- "occurred_elapsed_time": 3
}, - "created_at": "2000-01-02T03:04:06Z",
- "created_by": "e3f57626-93d6-4274-a51f-1ac538357a8a",
- "updated_at": "2020-04-15T14:15:23.064981Z",
- "updated_by": "447af3b3-a311-4047-9d7c-110a0fac505b"
}
], - "protected": false,
- "created_at": "2017-02-11T01:23:45Z",
- "updated_at": "2017-02-11T12:34:56Z"
}
}
], - "page": {
- "total_count": 1,
- "first": true,
- "last": true,
- "next": "/path?xxx=1&bbb=2&page=3",
- "previous": "/path?xxx=1&bbb=2&page=1"
}
}(Deprecated。このエンドポイントでなく /projects/00000000-0000-0000-0000-000000000000/measurements/jobs/{job_uuid} を使用してください) ジョブを削除します。
| job_uuid required | string Example: ddba7729-3a53-42bb-a4cf-6d19a3e66deb ジョブのUUID |
(Deprecated。このエンドポイントでなく /projects/00000000-0000-0000-0000-000000000000/measurements/jobs/{job_uuid} を使用してください) ジョブを取得します。
| job_uuid required | string Example: ddba7729-3a53-42bb-a4cf-6d19a3e66deb ジョブのUUID |
{- "uuid": "d9135580-4a6b-4fbd-971b-8fdce27b617c",
- "meas_uuid": "a72c674a-e8e9-43bc-940f-a034853363e1",
- "status": "succeeded",
- "message": "Succeeded",
- "file_name": "sample.csv",
- "created_at": "2017-02-11T01:23:45Z",
- "updated_at": "2017-02-11T12:34:56Z"
}(Deprecated。このエンドポイントでなく /projects/00000000-0000-0000-0000-000000000000/measurements/jobs/{job_uuid}/cancel を使用してください) ジョブをキャンセルします。
| job_uuid required | string Example: ddba7729-3a53-42bb-a4cf-6d19a3e66deb ジョブのUUID |
(Deprecated。このエンドポイントでなく /projects/00000000-0000-0000-0000-000000000000/measurements/markers を使用してください) 計測マーカーのリストを取得します。
| uuid | Array of strings Example: uuid=c14f84c1-b7a5-459b-bd1e-35982e4a4f38 計測マーカーのUUID |
| name | Array of strings Example: name=measurement marker1 計測マーカーの名前 |
| start_unix_micro | integer <int64> Example: start_unix_micro=1000 取得対象区間の始点(マイクロ秒単位のUNIX時刻)(始点は対象区間に含まれます)。 範囲マーカーについては、マーカーの始点が取得対象区間に入っている場合に取得されます。 |
| end_unix_micro | integer <int64> Example: end_unix_micro=1000 取得対象区間の終点(マイクロ秒単位のUNIX時刻)(終点は対象区間に含まれません)。 範囲マーカーについては、マーカーの始点が取得対象区間に入っている場合に取得されます。 |
| tag.<key> | Array of strings Example: tag.<key>=include_tag_value タグのキーと値を使って条件を指定し、条件に一致する計測マーカーを取得します。
キーのみを指定した場合は、指定されたキーを持つ計測マーカーを取得します。 キーと値を指定した場合は、指定されたキーを持ち、その値として指定された値を含む計測マーカーを取得します。
例:
|
| !tag.<key> | Array of strings Example: !tag.<key>=exclude_tag_value タグのキーを使って条件を指定し、条件に一致する計測キャプチャを除外します。
タグの値は無視されます。
|
| limit | integer <int32> Example: limit=1000 1回のリクエストで取得する件数 |
| sort | any Default: "base_time" Enum: "name" "base_time" "created_at" "updated_at" Example: sort=created_at 並べ替えに使用するキー |
| page | integer <int32> Example: page=1 取得するページの番号 |
| order | string Enum: "asc" "desc" Example: order=asc 並べ替えの順序 |
{- "items": [
- {
- "uuid": "27a841d8-78c0-4e5e-b0ee-ec1fafd90ef6",
- "name": "name",
- "description": "description",
- "type": "range",
- "detail": {
- "start_elapsed_time": 3,
- "end_elapsed_time": 4
}, - "tag": {
- "tagkey1": "tagValue1",
- "tagkey2": "tagValue2"
}, - "created_at": "2017-02-11T01:23:45Z",
- "created_by": "adbbd1ff-1e13-4b12-b125-e213945a65f8",
- "updated_at": "2017-02-11T12:34:56Z",
- "updated_by": "adbbd1ff-1e13-4b12-b125-e213945a65f8"
}, - {
- "uuid": "cdc1029e-d474-477c-aa6e-b48928fdb825",
- "name": "name",
- "description": "description",
- "type": "point",
- "detail": {
- "occurred_elapsed_time": 3
}, - "tag": {
- "tagkey1": "tagValue1",
- "tagkey2": "tagValue2"
}, - "created_at": "2017-02-11T01:23:45Z",
- "created_by": "adbbd1ff-1e13-4b12-b125-e213945a65f8",
- "updated_at": "2017-02-11T12:34:56Z",
- "updated_by": "adbbd1ff-1e13-4b12-b125-e213945a65f8"
}
], - "page": {
- "total_count": 1,
- "first": true,
- "last": true,
- "next": "/path?xxx=1&bbb=2&page=3",
- "previous": "/path?xxx=1&bbb=2&page=1"
}
}(Deprecated。このエンドポイントでなく /projects/00000000-0000-0000-0000-000000000000/measurements/markers/{measurement_marker_uuid} を使用してください) 計測マーカーを削除します。
| measurement_marker_uuid required | string Example: 27a841d8-78c0-4e5e-b0ee-ec1fafd90ef6 計測マーカーのUUID |
(Deprecated。このエンドポイントでなく /projects/00000000-0000-0000-0000-000000000000/measurements/markers/{measurement_marker_uuid} を使用してください) 計測マーカーを取得します。
| measurement_marker_uuid required | string Example: 27a841d8-78c0-4e5e-b0ee-ec1fafd90ef6 計測マーカーのUUID |
{- "uuid": "cdc1029e-d474-477c-aa6e-b48928fdb825",
- "name": "name",
- "description": "description",
- "type": "point",
- "detail": {
- "occurred_elapsed_time": 3
}, - "tag": {
- "tagkey1": "tagValue1",
- "tagkey2": "tagValue2"
}, - "created_at": "2017-02-11T01:23:45Z",
- "created_by": "adbbd1ff-1e13-4b12-b125-e213945a65f8",
- "updated_at": "2017-02-11T12:34:56Z",
- "updated_by": "adbbd1ff-1e13-4b12-b125-e213945a65f8"
}(Deprecated。このエンドポイントでなく /projects/00000000-0000-0000-0000-000000000000/measurements/markers/{measurement_marker_uuid} を使用してください) 計測マーカーを更新します。
| measurement_marker_uuid required | string Example: 27a841d8-78c0-4e5e-b0ee-ec1fafd90ef6 計測マーカーのUUID |
| name | string 計測マーカーの名前 |
| description | string 計測マーカーの説明 |
| type | string 計測マーカーのタイプ
|
| tag | object この計測マーカーに付与するタグ。タグはキーと値からなるペア(いずれもstring)で設定します。 複数のタグを一度に設定することができます。 値の中にオブジェクトを入れる(ネストする)ことはできません。
|
object (MeasurementMarkerDetailPoint) |
{- "name": "name",
- "description": "description",
- "type": "point",
- "detail": {
- "occurred_elapsed_time": 100
}, - "tag": {
- "tagkey1": "tagValue1",
- "tagkey2": "tagValue2"
}
}{- "uuid": "cdc1029e-d474-477c-aa6e-b48928fdb825",
- "name": "name",
- "description": "description",
- "type": "point",
- "detail": {
- "occurred_elapsed_time": 3
}, - "tag": {
- "tagkey1": "tagValue1",
- "tagkey2": "tagValue2"
}, - "created_at": "2017-02-11T01:23:45Z",
- "created_by": "adbbd1ff-1e13-4b12-b125-e213945a65f8",
- "updated_at": "2017-02-11T12:34:56Z",
- "updated_by": "adbbd1ff-1e13-4b12-b125-e213945a65f8"
}(Deprecated。このエンドポイントでなく /projects/00000000-0000-0000-0000-000000000000/measurements/markers/{measurement_marker_uuid}/measurement を使用してください)
| measurement_marker_uuid required | string Example: 27a841d8-78c0-4e5e-b0ee-ec1fafd90ef6 計測マーカーのUUID |
{- "uuid": "2cc7de37-6f71-4458-887e-10e618a6fcfb",
- "name": "meas1",
- "description": "description of measurement",
- "edge_uuid": "00de1861-6614-4435-af07-da9b4338d57c",
- "duration": 100000000,
- "ended": true,
- "status": "measuring",
- "basetime": "2017-02-11T01:23:45.678901Z",
- "basetime_type": "ntp",
- "processed_ratio": 0.9,
- "received_data_points": null,
- "markers": [
- {
- "uuid": "27a841d8-78c0-4e5e-b0ee-ec1fafd90ef6",
- "name": "Name3",
- "description": "Description3",
- "tag": {
- "tagkey1": "tagValue1",
- "tagkey2": "tagValue2"
}, - "type": "range",
- "detail": {
- "start_elapsed_time": 3,
- "end_elapsed_time": 7
}, - "created_at": "2000-01-02T03:04:07Z",
- "created_by": "e3f57626-93d6-4274-a51f-1ac538357a8a",
- "updated_at": "2020-04-15T14:15:23.135268Z",
- "updated_by": "447af3b3-a311-4047-9d7c-110a0fac505b"
}, - {
- "uuid": "cdc1029e-d474-477c-aa6e-b48928fdb825",
- "name": "Name2",
- "description": "Description2",
- "tag": {
- "tagkey1": "tagValue1",
- "tagkey2": "tagValue2"
}, - "type": "point",
- "detail": {
- "occurred_elapsed_time": 3
}, - "created_at": "2000-01-02T03:04:06Z",
- "created_by": "e3f57626-93d6-4274-a51f-1ac538357a8a",
- "updated_at": "2020-04-15T14:15:23.064981Z",
- "updated_by": "447af3b3-a311-4047-9d7c-110a0fac505b"
}
], - "protected": false,
- "created_at": "2017-02-11T01:23:45Z",
- "updated_at": "2017-02-11T12:34:56Z"
}( Deprecated このエンドポイントではなく、GET /measurements/jobs を使用してください。) 計測のアップロードのリストを取得します。
| limit | integer <int32> Example: limit=1000 1回のリクエストで取得する件数 |
| sort | any Default: "created_at" Enum: "created_at" "updated_at" Example: sort=created_at 並べ替えに使用するキー |
| file_type | Array of strings Items Enum: "csv" "mp4" "pbstream" "pbstream_gz" Example: file_type=csv&file_type=pbstream_gz 対象ファイルの種類(複数指定時は OR 条件) |
| include_no_measurement | boolean Default: false 計測が存在しないジョブを含めるかどうか(デフォルトは含めない) |
| page | integer <int32> Example: page=1 取得するページの番号 |
| order | string Enum: "asc" "desc" Example: order=asc 並べ替えの順序 |
{- "items": [
- {
- "uuid": "d9135580-4a6b-4fbd-971b-8fdce27b617c",
- "meas_uuid": "a72c674a-e8e9-43bc-940f-a034853363e1",
- "state": "succeed",
- "message": "Succeed",
- "file_name": "sample.csv",
- "created_at": "2017-02-11T01:23:45Z",
- "updated_at": "2017-02-11T12:34:56Z"
}
], - "page": {
- "total_count": 1,
- "first": true,
- "last": true,
- "next": "/path?xxx=1&bbb=2&page=3",
- "previous": "/path?xxx=1&bbb=2&page=1"
}
}CSVまたはMP4(MP4はexperimental)ファイルをアップロードし、計測を作成します。 計測には、指定されたエッジUUIDが関連付けられます。
base_time (基準時刻)は、RFC3339による表現か、UNIX時刻(マイクロ秒)を指定してください。
基準時刻が指定されていない場合は、CSVファイルのデータ行の1行目の時刻が基準時刻として使用されます。
CSVファイルのデータは、時刻順にソートされている必要があります。
meas_end パラメーターの設定は任意です。指定しない場合、 true となります。
CSVファイルの例:
time, col1, col2, col3, col4, col5, col6, col7, col8, col9, col10
1539263579, val11, 12, 13.12345, val14, 15, 16.12345, val17, 18, 19.12345, val110
1539263580, val21, 22, 23.12345, val24, 25, 26.12345, val27, 28, 29.12345, val210
1539263581, val31, 32, 33.12345, val34, 35, 36.12345, val37, 38, 39.12345, val310
1539263582, val41, 42, 43.12345, val44, 45, 46.12345, val47, 48, 49.12345, val410
空白行がある場合、行番号のカウントは加算されますが、その行は処理されません。 例えば、以下のような場合の空白行は無視されます。
time, col1, col2, col3, col4, col5, col6, col7, col8, col9, col10
1539263579, val11, 12, 13.12345, val14, 15, 16.12345, val17, 18, 19.12345, val110
1539263581, val31, 32, 33.12345, val34, 35, 36.12345, val37, 38, 39.12345, val310
1539263582, val41, 42, 43.12345, val44, 45, 46.12345, val47, 48, 49.12345, val410
Go parser library も参照してください。
時刻の列には、RFC3339による表現か、UNIX時刻(秒)を使用することができます。
値の内部で , を使用したい場合は、その値全体を " で囲んでください。
また、値の内部で " を使用したい場合は、値全体を " で囲み、さらに、 " を "" のように表記してください。
値を " で囲まないと、CSVファイルのパースの際にエラーが発生します。
エスケープの例:
time,col1
1539263579,"ab,cde" .....OK (parsed as 'ab,cde')
1539263579,"ab""cde" .....OK (parsed as 'ab"cde')
1539263579, abcde .....OK (parsed as ' abcde')
1539263579," abcde" .....OK (parsed as ' abcde')
1539263579,ab"cde .....NG
1539263579, "abcde" .....NG
1539263579,ab,cde .....NG(wrong number of fields)
| edge_uuid required | string <uuid> エッジのUUID |
| base_time | string <date-time> 計測の基準時刻。MP4ファイルをアップロードする場合は必須です。 |
| base_time_type | string Default: "edge_rtc" Enum: "edge_rtc" "ntp" "gps" "api_first_received" "volatile" "manual" "undefined" 基準時刻のタイプ |
| channel | integer 計測のチャンネル(十進表記の文字列) |
| meas_end | boolean
|
| label_data_type | string <json> (LabelDataType) 列名とデータタイプの対応をJSON形式で指定します。 データタイプには任意の文字列を指定できます。 以下の既知のデータタイプは、サーバー側でバイナリエンコードされます:
上記以外のデータタイプを指定した場合、セル値はBase64デコードを試み、 成功した場合はデコード結果がペイロードとなります。 Base64デコードに失敗した場合は、セル値のUTF-8バイト列がそのままペイロードとなります。
例:
|
| data_file required | string <binary> アップロードするファイル |
{- "meas_upload_uuid": "d9135580-4a6b-4fbd-971b-8fdce27b617c",
- "job_uuid": "d9135580-4a6b-4fbd-971b-8fdce27b617c",
- "file_name": "filename.csv"
}(Deprecated。このエンドポイントでなく /projects/00000000-0000-0000-0000-000000000000/measurements/{measurement_uuid}/upload を使用してください)
CSVファイルをアップロードし、計測にデータを追加します。
| measurement_uuid required | string Example: 2cc7de37-6f71-4458-887e-10e618a6fcfb 計測のUUID |
meas_end パラメーターの設定は任意です。指定しない場合、 true となります。
| channel | integer 作成された計測のチャンネル |
| meas_end | boolean
|
| label_data_type | string <json> (LabelDataType) 列名とデータタイプの対応をJSON形式で指定します。 データタイプには任意の文字列を指定できます。 以下の既知のデータタイプは、サーバー側でバイナリエンコードされます:
上記以外のデータタイプを指定した場合、セル値はBase64デコードを試み、 成功した場合はデコード結果がペイロードとなります。 Base64デコードに失敗した場合は、セル値のUTF-8バイト列がそのままペイロードとなります。
例:
|
| data_file required | string <binary> アップロードするファイル |
{- "meas_upload_uuid": "d9135580-4a6b-4fbd-971b-8fdce27b617c",
- "job_uuid": "d9135580-4a6b-4fbd-971b-8fdce27b617c",
- "file_name": "filename.csv"
}(Deprecated。このエンドポイントでなく /projects/00000000-0000-0000-0000-000000000000/measurements/{measurement_uuid}/markers を使用してください) 計測マーカーを削除します。
| measurement_uuid required | string Example: 2cc7de37-6f71-4458-887e-10e618a6fcfb 計測のUUID |
(Deprecated このエンドポイントではなく、 GET /measurements/{measurement_uuid} を使用してください。) 計測UUIDを指定して、その計測に付与されたマーカーの一覧を取得します。
| measurement_uuid required | string Example: 2cc7de37-6f71-4458-887e-10e618a6fcfb 計測のUUID |
{- "items": [
- {
- "created_at": "2017-02-11T01:23:45Z",
- "created_by": "adbbd1ff-1e13-4b12-b125-e213945a65f8",
- "description": "description",
- "detail": {
- "end_elapsed_time": 200,
- "start_elapsed_time": 100
}, - "elapsed_time": 1000,
- "name": "name",
- "tag": {
- "key1": "value1",
- "key2": "value2"
}, - "type": "range",
- "updated_at": "2017-02-11T12:34:56Z",
- "updated_by": "adbbd1ff-1e13-4b12-b125-e213945a65f8",
- "uuid": "887326ce-a2a2-4db6-8c06-2f8447f0f29e"
}, - {
- "created_at": "2017-02-11T01:23:45Z",
- "created_by": "adbbd1ff-1e13-4b12-b125-e213945a65f8",
- "description": "description",
- "detail": {
- "occurred_elapsed_time": 100
}, - "elapsed_time": 1000,
- "name": "name",
- "tag": {
- "key1": "value1",
- "key2": "value2"
}, - "type": "range",
- "updated_at": "2017-02-11T12:34:56Z",
- "updated_by": "adbbd1ff-1e13-4b12-b125-e213945a65f8",
- "uuid": "887326ce-a2a2-4db6-8c06-2f8447f0f29e"
}
]
}(Deprecated。このエンドポイントでなく /projects/00000000-0000-0000-0000-000000000000/measurements/{measurement_uuid}/markers を使用してください) 計測マーカーを作成します。
| measurement_uuid required | string Example: 2cc7de37-6f71-4458-887e-10e618a6fcfb 計測のUUID |
| name | string 計測マーカーの名前 |
| description | string 計測マーカーの説明 |
| type required | string 計測マーカーのタイプ
|
| tag | object この計測マーカーに付与するタグ。タグはキーと値からなるペア(いずれもstring)で設定します。 複数のタグを一度に設定することができます。 値の中にオブジェクトを入れる(ネストする)ことはできません。
|
required | object (MeasurementMarkerDetailPoint) |
{- "name": "name",
- "description": "description",
- "type": "point",
- "detail": {
- "occurred_elapsed_time": 100
}, - "tag": {
- "tagkey1": "tagValue1",
- "tagkey2": "tagValue2"
}
}{- "uuid": "cdc1029e-d474-477c-aa6e-b48928fdb825",
- "name": "name",
- "description": "description",
- "type": "point",
- "detail": {
- "occurred_elapsed_time": 3
}, - "tag": {
- "tagkey1": "tagValue1",
- "tagkey2": "tagValue2"
}, - "created_at": "2017-02-11T01:23:45Z",
- "created_by": "adbbd1ff-1e13-4b12-b125-e213945a65f8",
- "updated_at": "2017-02-11T12:34:56Z",
- "updated_by": "adbbd1ff-1e13-4b12-b125-e213945a65f8"
}(Deprecated。このエンドポイントでなく /projects/00000000-0000-0000-0000-000000000000/measurements/{measurement_uuid}/markers/{Measurement_marker_uuid} を使用してください) 計測マーカーを削除します。
| measurement_uuid required | string Example: 2cc7de37-6f71-4458-887e-10e618a6fcfb 計測のUUID |
| measurement_marker_uuid required | string Example: 27a841d8-78c0-4e5e-b0ee-ec1fafd90ef6 計測マーカーのUUID |
Deprecated このエンドポイントではなく、 GET /measurements/{measurement_uuid} を使用してください。
| measurement_uuid required | string Example: 2cc7de37-6f71-4458-887e-10e618a6fcfb 計測のUUID |
| measurement_marker_uuid required | string Example: 27a841d8-78c0-4e5e-b0ee-ec1fafd90ef6 計測マーカーのUUID |
{- "uuid": "cdc1029e-d474-477c-aa6e-b48928fdb825",
- "name": "name",
- "description": "description",
- "type": "point",
- "detail": {
- "occurred_elapsed_time": 3
}, - "tag": {
- "tagkey1": "tagValue1",
- "tagkey2": "tagValue2"
}, - "created_at": "2017-02-11T01:23:45Z",
- "created_by": "adbbd1ff-1e13-4b12-b125-e213945a65f8",
- "updated_at": "2017-02-11T12:34:56Z",
- "updated_by": "adbbd1ff-1e13-4b12-b125-e213945a65f8"
}(Deprecated。このエンドポイントでなく /projects/00000000-0000-0000-0000-000000000000/measurements/{measurement_uuid}/markers/{Measurement_marker_uuid} を使用してください) 計測マーカーの情報を更新します。
| measurement_uuid required | string Example: 2cc7de37-6f71-4458-887e-10e618a6fcfb 計測のUUID |
| measurement_marker_uuid required | string Example: 27a841d8-78c0-4e5e-b0ee-ec1fafd90ef6 計測マーカーのUUID |
| name | string 計測マーカーの名前 |
| description | string 計測マーカーの説明 |
| type | string 計測マーカーのタイプ
|
| tag | object この計測マーカーに付与するタグ。タグはキーと値からなるペア(いずれもstring)で設定します。 複数のタグを一度に設定することができます。 値の中にオブジェクトを入れる(ネストする)ことはできません。
|
object (MeasurementMarkerDetailPoint) |
{- "name": "name",
- "description": "description",
- "type": "point",
- "detail": {
- "occurred_elapsed_time": 100
}, - "tag": {
- "tagkey1": "tagValue1",
- "tagkey2": "tagValue2"
}
}{- "uuid": "cdc1029e-d474-477c-aa6e-b48928fdb825",
- "name": "name",
- "description": "description",
- "type": "point",
- "detail": {
- "occurred_elapsed_time": 3
}, - "tag": {
- "tagkey1": "tagValue1",
- "tagkey2": "tagValue2"
}, - "created_at": "2017-02-11T01:23:45Z",
- "created_by": "adbbd1ff-1e13-4b12-b125-e213945a65f8",
- "updated_at": "2017-02-11T12:34:56Z",
- "updated_by": "adbbd1ff-1e13-4b12-b125-e213945a65f8"
}(Deprecated。このエンドポイントでなく /projects/00000000-0000-0000-0000-000000000000/signals を使用してください) 信号定義のリストを取得します。
| label | Array of strings Example: label=label1 ラベルが指定した文字列から始まる信号定義を取得します。 文字列をダブルクォーテーションで囲むと、完全一致のものだけを取得します。 |
| sort | string Enum: "label" "created_at" "updated_at" Example: sort=label 並べ替えに使用するキー |
| order | string Enum: "asc" "desc" Example: order=asc 並べ替えの順序 |
| limit | integer <int32> Example: limit=100 1回のリクエストで取得する件数 |
| page | integer <int32> Example: page=1 取得するページの番号 |
{- "items": [
- {
- "channel": 1,
- "conversion": {
- "options": {
- "bitsize": 8,
- "endian": "big",
- "offset": 0,
- "scale": 1,
- "sign": "signed",
- "startbit": 0
}, - "type": "num_fixed_point"
}, - "created_at": "2017-02-11T01:23:45Z",
- "data_id": "00000001",
- "data_type": 1,
- "description": "this is signal1",
- "display": {
- "format": "%6.3f",
- "max": 10,
- "min": -10,
- "unit": "m/s2"
}, - "hash": "sha256:8ddad69061d8...",
- "label": "signal1",
- "updated_at": "2017-02-11T12:34:56Z",
- "uuid": "2cc7de37-6f71-4458-887e-10e618a6fcfb"
}
], - "page": {
- "first": true,
- "last": true,
- "next": "/path?xxx=1&bbb=2&page=3",
- "previous": "/path?xxx=1&bbb=2&page=1",
- "total_count": 1
}
}(Deprecated。このエンドポイントでなく /projects/00000000-0000-0000-0000-000000000000/signals を使用してください)
信号定義を作成します。
label が重複する場合、または uuid が重複する場合は、
ステータスコード 409 Conflict が返却されます。| channel | integer <int32> チャンネル |
object or object or object or object or object or object (SignalConversion) | |
| data_id | string データID |
| data_type | integer <int32> データタイプ |
| description | string 信号定義の説明 |
object (SignalDisplay) | |
| label | string 信号定義のラベル |
| uuid | string 信号定義のUUID |
{- "channel": 1,
- "conversion": {
- "options": {
- "bitsize": 8,
- "endian": "big",
- "offset": 0,
- "scale": 1,
- "sign": "signed",
- "startbit": 0
}, - "type": "num_fixed_point"
}, - "data_id": "00000001",
- "data_type": 1,
- "description": "description of signal",
- "display": {
- "format": "%6.3f",
- "max": 10,
- "min": -10,
- "unit": "m/s2"
}, - "label": "signal",
- "uuid": "022a9941-d7ff-44ee-a9ff-55a623880a40"
}{- "channel": 1,
- "conversion": {
- "options": {
- "bitsize": 8,
- "endian": "big",
- "offset": 0,
- "scale": 1,
- "sign": "signed",
- "startbit": 0
}, - "type": "num_fixed_point"
}, - "created_at": "2017-02-11T01:23:45Z",
- "data_id": "00000001",
- "data_type": 1,
- "description": "this is signal1",
- "display": {
- "format": "%6.3f",
- "max": 10,
- "min": -10,
- "unit": "m/s2"
}, - "hash": "sha256:8ddad69061d8...",
- "label": "signal1",
- "updated_at": "2017-02-11T12:34:56Z",
- "uuid": "c1c3fd05-89c6-4da8-abdb-7d31aec2af18"
}(Deprecated。このエンドポイントでなく /projects/00000000-0000-0000-0000-000000000000/signals/{signal_uuid} を使用してください) 信号定義を削除します。
| signal_uuid required | string Example: a74b933c-7c3a-4e9f-bf16-299a96d26562 信号定義のUUID |
(Deprecated。このエンドポイントでなく /projects/00000000-0000-0000-0000-000000000000/signals/{signal_uuid} を使用してください) 信号定義を取得します。
| signal_uuid required | string Example: a74b933c-7c3a-4e9f-bf16-299a96d26562 信号定義のUUID |
{- "channel": 1,
- "conversion": {
- "options": {
- "bitsize": 8,
- "endian": "big",
- "offset": 0,
- "scale": 1,
- "sign": "signed",
- "startbit": 0
}, - "type": "num_fixed_point"
}, - "created_at": "2017-02-11T01:23:45Z",
- "data_id": "00000001",
- "data_type": 1,
- "description": "this is signal1",
- "display": {
- "format": "%6.3f",
- "max": 10,
- "min": -10,
- "unit": "m/s2"
}, - "hash": "sha256:8ddad69061d8...",
- "label": "signal1",
- "updated_at": "2017-02-11T12:34:56Z",
- "uuid": "c1c3fd05-89c6-4da8-abdb-7d31aec2af18"
}(Deprecated。このエンドポイントでなく /projects/00000000-0000-0000-0000-000000000000/signals/{signal_uuid} を使用してください) 信号定義を更新します。
| signal_uuid required | string Example: a74b933c-7c3a-4e9f-bf16-299a96d26562 信号定義のUUID |
| channel | integer <int32> チャンネル |
object or object or object or object or object or object (SignalConversion) | |
| data_id | string データID |
| data_type | integer <int32> データタイプ |
| description | string 信号定義の説明 |
object (SignalDisplay) | |
| label | string 信号定義のラベル |
{- "channel": 1,
- "conversion": {
- "options": {
- "bitsize": 8,
- "endian": "big",
- "offset": 0,
- "scale": 1,
- "sign": "signed",
- "startbit": 0
}, - "type": "num_fixed_point"
}, - "data_id": "00000001",
- "data_type": 1,
- "description": "description of signal",
- "display": {
- "format": "%6.3f",
- "max": 10,
- "min": -10,
- "unit": "m/s2"
}, - "label": "signal"
}{- "channel": 1,
- "conversion": {
- "options": {
- "bitsize": 8,
- "endian": "big",
- "offset": 0,
- "scale": 1,
- "sign": "signed",
- "startbit": 0
}, - "type": "num_fixed_point"
}, - "created_at": "2017-02-11T01:23:45Z",
- "data_id": "00000001",
- "data_type": 1,
- "description": "this is signal1",
- "display": {
- "format": "%6.3f",
- "max": 10,
- "min": -10,
- "unit": "m/s2"
}, - "hash": "sha256:8ddad69061d8...",
- "label": "signal1",
- "updated_at": "2017-02-11T12:34:56Z",
- "uuid": "c1c3fd05-89c6-4da8-abdb-7d31aec2af18"
}(Deprecated。このエンドポイントでなく /projects/00000000-0000-0000-0000-000000000000/trashed_measurements を使用してください) ゴミ箱に入っている計測のリストを取得します。
| limit | integer [ 0 .. 50 ] Example: limit=1 1回のリクエストで取得する件数。 |
| page | integer >= 0 Example: page=1 取得するページの番号 |
{- "items": [
- {
- "basetime": "2017-02-11T01:23:45.678901Z",
- "basetime_type": "ntp",
- "created_at": "2017-02-11T01:23:45Z",
- "description": "description of measurement",
- "duration": 100000000,
- "edge_uuid": "00de1861-6614-4435-af07-da9b4338d57c",
- "ended": true,
- "markers": [
- {
- "created_at": "2017-02-11T01:23:45Z",
- "created_by": "adbbd1ff-1e13-4b12-b125-e213945a65f8",
- "description": "description",
- "detail": {
- "occurred_elapsed_time": 100
}, - "elapsed_time": 1000,
- "name": "name",
- "tag": {
- "key1": "value1",
- "key2": "value2"
}, - "type": "point",
- "updated_at": "2017-02-11T12:34:56Z",
- "updated_by": "adbbd1ff-1e13-4b12-b125-e213945a65f8",
- "uuid": "887326ce-a2a2-4db6-8c06-2f8447f0f29e"
}
], - "name": "meas1",
- "processed_ratio": 0.9,
- "protected": false,
- "received_data_points": null,
- "status": "measuring",
- "updated_at": "2017-02-11T12:34:56Z",
- "uuid": "2cc7de37-6f71-4458-887e-10e618a6fcfb"
}
], - "total_count": 1
}(Deprecated。このエンドポイントでなく /projects/00000000-0000-0000-0000-000000000000/trashed_measurements/{measurement_uuid} を使用してください) ゴミ箱に入っている計測と、その計測に関連付けられているデータポイントを直ちに削除します。
| measurement_uuid required | string Example: 86fff159-5887-43c9-bf2d-cd1b522c047d 計測のUUID |
(Deprecated。このエンドポイントでなく /projects/00000000-0000-0000-0000-000000000000/trashed_measurements/{measurement_uuid}/restore を使用してください) ゴミ箱に入っている計測を復元します。
| measurement_uuid required | string Example: 86fff159-5887-43c9-bf2d-cd1b522c047d 計測のUUID |
非推奨 代わりに「Delete Measurement Base Time by ID」を使用してください。 基準時刻を削除します。
指定された基準時刻が使用中の場合(その計測の basetime_type として設定されている場合)は、 その基準時刻は削除できません(ステータスコード 409 が返却されます)。
このような場合は、他の基準時刻をその計測の basetime_type にしてから、削除したい基準時刻を削除してください。
| project_uuid required | string Example: 75c55669-b2ab-4f14-a871-8571c6afa1ef プロジェクトのUUID |
| measurement_uuid required | string Example: 2cc7de37-6f71-4458-887e-10e618a6fcfb 計測のUUID |
| type required | string Enum: "edge_rtc" "ntp" "gps" "api_first_received" "volatile" "manual" Example: ntp 基準時刻のタイプ |
非推奨 代わりに「Get Measurement Base Time by ID」を使用してください。 基準時刻タイプを指定して計測の基準時刻を取得します。
| project_uuid required | string Example: 75c55669-b2ab-4f14-a871-8571c6afa1ef プロジェクトのUUID |
| measurement_uuid required | string Example: 2cc7de37-6f71-4458-887e-10e618a6fcfb 計測のUUID |
| type required | string Enum: "edge_rtc" "ntp" "gps" "api_first_received" "volatile" "manual" Example: ntp 基準時刻のタイプ |
{- "type": "ntp",
- "basetime": "2017-02-11T01:23:45.678901Z",
- "created_at": "2017-02-11T01:23:45Z",
- "updated_at": "2017-02-11T01:23:45Z"
}非推奨 代わりに「Update Measurement Base Time by ID」または「Create Measurement Base Time」を使用してください。 基準時刻を更新します。 この計測において、使用する基準時刻が設定されていない( basetime_type が undefined )の場合は、 新しい基準時刻を basetime_type に設定します。
| project_uuid required | string Example: 75c55669-b2ab-4f14-a871-8571c6afa1ef プロジェクトのUUID |
| measurement_uuid required | string Example: 2cc7de37-6f71-4458-887e-10e618a6fcfb 計測のUUID |
| type required | string Enum: "edge_rtc" "ntp" "gps" "api_first_received" "volatile" "manual" Example: ntp 基準時刻のタイプ |
| basetime | string <date-time> (MeasBaseTimeBaseTime) 時系列データの経過時間に対して基準となる時刻。基準時刻(RFC3339形式) |
| priority | integer (MeasBaseTimePriority) [ 0 .. 255 ] 基準時刻の優先度 |
| name | string (MeasBaseTimeName) [ 0 .. 255 ] characters 基準時刻の名前 |
| elapsed_time | integer <int64> (MeasBaseTimeElapsedTime) 基準時刻を受信した基準時刻からの経過時間(ナノ秒)。 |
{- "basetime": "2000-01-01T00:00:00Z",
- "priority": 255,
- "name": "NTP",
- "elapsed_time": 1000
}{- "id": 1,
- "type": "edge_rtc",
- "basetime": "2000-01-01T00:00:00Z",
- "priority": 255,
- "name": "NTP",
- "elapsed_time": 1000,
- "created_at": "2000-01-01T00:00:00Z",
- "updated_at": "2000-01-01T00:00:00Z"
}Deprecated このエンドポイントではなく GET /media/videos を使用してください
| start | integer Example: start=1234567890 取得対象範囲の始点(マイクロ秒単位のUNIX時刻) |
| end | integer Example: end=1234567890 取得対象範囲の終点(マイクロ秒単位のUNIX時刻) |
| edge_uuid | string Example: edge_uuid=3699e2b9-5d87-4dbd-9b85-098e7dfaee76 エッジのUUID |
| channel | integer Example: channel=1 チャンネル |
| limit | integer Example: limit=1000 1回のリクエストで取得する件数 |
{- "items": [
- {
- "edge_uuid": "6e180e5a-3d7e-476c-907d-3c71bceb8a98",
- "measurement_uuid": "507032c5-c4fb-493b-aef3-ecf6fd67df00",
- "basetime": "2000-01-02T03:04:05Z",
- "basetime_type": "ntp",
- "playlist": "playlist.m3u8",
- "channel": 1,
- "offset_time": 123456,
- "duration": 12345678
}
]
}(Deprecated。代わりに Prefix(/projects/00000000-0000-0000-0000-000000000000/)が付いたエンドポイントを使用してください) HLSへの変換ジョブのリストを取得します。
| uuid | Array of strings Example: uuid=ade4eea8-edc6-3ca5-c557-12a616c2028a 取得したいジョブのUUID |
| meas_uuid | Array of strings Example: meas_uuid=a5170afc-9cc2-5327-e0e1-32746b5a7977 計測のUUID |
| type | Array of strings (JobType) Items Enum: "update" "finalize" "delete" Example: type=update
|
| status | Array of strings (JobStatus) Items Enum: "unprocessed" "processing" "succeeded" "failed" Example: status=succeeded ジョブのステータス |
| limit | number Example: limit=1000 1回のリクエストで取得する件数 |
| page | integer >= 1 Default: 1 取得するページ番号 |
| sort | string Default: "created_at" Enum: "created_at" "updated_at" Example: sort=created_at 並べ替えに使用するキー |
| order | string Enum: "asc" "desc" Example: order=asc 並べ替えの順序 |
{- "items": [
- {
- "uuid": "ade4eea8-edc6-3ca5-c557-12a616c2028a",
- "meas_uuid": "a5170afc-9cc2-5327-e0e1-32746b5a7977",
- "type": "update",
- "status": "unprocessed",
- "message": "ok",
- "created_at": "2000-01-02T03:04:5Z",
- "updated_at": "2000-01-02T03:04:5Z"
}
], - "total_count": 100
}(Deprecated。代わりに Prefix(/projects/00000000-0000-0000-0000-000000000000/)が付いたエンドポイントを使用してください) HLSへの変換ジョブを作成します。
| meas_uuid required | string 計測のUUID |
| type required | string (JobType) Enum: "update" "finalize" "delete"
|
| force_finalize | boolean Default: false 既に動画の最終変換が完了している動画でも、再度最終変換を行うかどうかを指定します。typeが"finalize"の場合にのみ有効です。 |
{- "meas_uuid": "a5170afc-9cc2-5327-e0e1-32746b5a7977",
- "type": "update",
- "force_finalize": false
}{- "uuid": "ade4eea8-edc6-3ca5-c557-12a616c2028a",
- "meas_uuid": "a5170afc-9cc2-5327-e0e1-32746b5a7977",
- "type": "update",
- "status": "unprocessed",
- "message": "ok",
- "created_at": "2000-01-02T03:04:5Z",
- "updated_at": "2000-01-02T03:04:5Z"
}Depricated このエンドポイントの代わりに、Videoオブジェクトの hlsにあるPATHにしたがってPlaylistを取得してください。
| meas_uuid required | string Example: f967c530-f562-410a-991b-031c43142778 計測のUUID |
| channel required | integer Example: 1 チャンネル |
| force_end | boolean Example: force_end=true
|
Deprecated このエンドポイントの代わりに POST /media/videos/{video_uuid}/mp4s を使用してください。 mp4リソース作成後、 MP4オブジェクトの file_pathにあるPATHに従って動画を取得してください
| meas_uuid required | string Example: f967c530-f562-410a-991b-031c43142778 計測のUUID |
| channel required | integer Example: 1 チャンネル |
(Deprecated。代わりに Prefix(/projects/00000000-0000-0000-0000-000000000000/)が付いたエンドポイントを使用してください) 動画(video)のリストを取得します。
| uuid | string Example: uuid=3699e2b9-5d87-4dbd-9b85-098e7dfaee76 動画(video)のUUID |
| meas_uuid | string Example: meas_uuid=3699e2b9-5d87-4dbd-9b85-098e7dfaee76 計測のUUID |
| channel | integer Example: channel=1 計測のチャンネル。チャンネルが存在しない計測データ(iscp-v2)の動画のみを取得したい場合は0を指定します。未指定の場合、チャンネルの有無問わず全ての動画を取得します。 |
| sort | string Default: "create_at+" 並べ替えに使用するキー。接尾辞
|
| status | string (VideoStatus) Enum: "live" "unprocessed" "processing" "succeeded" "failed" Example: status=succeeded 動画のステータス |
| page | integer >= 1 Default: 1 取得するページ番号 |
| per_page | integer <= 1000 Default: 100 1回のリクエストで取得する件数 |
{- "items": [
- {
- "uuid": "68b91013-47e9-4e68-a965-892549587dfa",
- "measurement_uuid": "d299eea4-d02c-4742-a97a-795346a0c005",
- "measurement": {
- "uuid": "2cc7de37-6f71-4458-887e-10e618a6fcfb",
- "name": "meas1",
- "description": "description of measurement",
- "basetime": "string",
- "basetime_type": "edge_rtc",
- "edge_uuid": "00de1861-6614-4435-af07-da9b4338d57c",
- "duration": 100000000,
- "max_elapsed_time": 100000000,
- "protected": true,
- "sequences": {
- "received_chunks_ratio": 0.5,
- "received_data_points": 123456789,
- "expected_data_points": 123456789,
- "status": "measuring"
}, - "created_at": "2017-02-11T01:23:45Z",
- "updated_at": "2017-02-11T01:23:45Z",
- "processed_ratio": 0.9,
- "ended": true,
- "status": "measuring"
}, - "edge_uuid": "a8afa022-7e60-4f6a-8686-5b99d8785d25",
- "channel": 1,
- "codec": "h264",
- "source_data_type": "h264",
- "source_data_name": "h264_camera_1",
- "offset_time": 0,
- "duration": 10000,
- "fps": 29.98,
- "width": 1920,
- "height": 1080,
- "status": "succeeded",
- "hls": {
- "playlist": "/path-to/playlist.m3u8",
- "playlist_with_endlist_tag": "/path-to/playlist_with_endlist_tag.m3u8"
}, - "mp4s": [
- {
- "uuid": "0108aeb1-f486-400f-9bcd-f176eee8b7e3",
- "start_offset": 0,
- "duration": 10000,
- "trimmed": false,
- "file_path": "/api/media/68b91013-47e9-4e68-a965-892549587dfa/mp4s/0108aeb1-f486-400f-9bcd-f176eee8b7e3/measurement.mp4",
- "thumbnail": "/thumbnail.jpg",
- "status": "unprocessed",
- "created_at": "2000-01-01T00:00:00Z",
- "updated_at": "2000-01-01T00:00:00Z"
}
], - "jpegs": [
- {
- "uuid": "3279bdfb-9079-417e-8f94-ee8126da5933",
- "start_offset": 5000,
- "duration": 10000,
- "trimmed": true,
- "fps": 15,
- "quality": "high",
- "thumbnail": "/thumbnail.jpg",
- "status": "succeeded",
- "created_at": "2000-01-01T00:00:00Z",
- "updated_at": "2000-01-01T00:00:00Z"
}
], - "created_at": "2000-01-01T00:00:00Z",
- "updated_at": "2000-01-01T00:00:00Z"
}
], - "page": {
- "total_count": 1
}
}(Deprecated。代わりに Prefix(/projects/00000000-0000-0000-0000-000000000000/)が付いたエンドポイントを使用してください) 動画を取得します。
| video_uuid required | string Example: 68b91013-47e9-4e68-a965-892549587dfa 変換元の動画(video)のUUID |
{- "uuid": "68b91013-47e9-4e68-a965-892549587dfa",
- "measurement_uuid": "d299eea4-d02c-4742-a97a-795346a0c005",
- "measurement": {
- "uuid": "2cc7de37-6f71-4458-887e-10e618a6fcfb",
- "name": "meas1",
- "description": "description of measurement",
- "basetime": "string",
- "basetime_type": "edge_rtc",
- "edge_uuid": "00de1861-6614-4435-af07-da9b4338d57c",
- "duration": 100000000,
- "max_elapsed_time": 100000000,
- "protected": true,
- "sequences": {
- "received_chunks_ratio": 0.5,
- "received_data_points": 123456789,
- "expected_data_points": 123456789,
- "status": "measuring"
}, - "created_at": "2017-02-11T01:23:45Z",
- "updated_at": "2017-02-11T01:23:45Z",
- "processed_ratio": 0.9,
- "ended": true,
- "status": "measuring"
}, - "edge_uuid": "a8afa022-7e60-4f6a-8686-5b99d8785d25",
- "channel": 1,
- "codec": "h264",
- "source_data_type": "h264",
- "source_data_name": "h264_camera_1",
- "offset_time": 0,
- "duration": 10000,
- "fps": 29.98,
- "width": 1920,
- "height": 1080,
- "status": "succeeded",
- "hls": {
- "playlist": "/path-to/playlist.m3u8",
- "playlist_with_endlist_tag": "/path-to/playlist_with_endlist_tag.m3u8"
}, - "mp4s": [
- {
- "uuid": "0108aeb1-f486-400f-9bcd-f176eee8b7e3",
- "start_offset": 0,
- "duration": 10000,
- "trimmed": false,
- "file_path": "/api/media/68b91013-47e9-4e68-a965-892549587dfa/mp4s/0108aeb1-f486-400f-9bcd-f176eee8b7e3/measurement.mp4",
- "thumbnail": "/thumbnail.jpg",
- "status": "unprocessed",
- "created_at": "2000-01-01T00:00:00Z",
- "updated_at": "2000-01-01T00:00:00Z"
}
], - "jpegs": [
- {
- "uuid": "3279bdfb-9079-417e-8f94-ee8126da5933",
- "start_offset": 5000,
- "duration": 10000,
- "trimmed": true,
- "fps": 15,
- "quality": "high",
- "thumbnail": "/thumbnail.jpg",
- "status": "succeeded",
- "created_at": "2000-01-01T00:00:00Z",
- "updated_at": "2000-01-01T00:00:00Z"
}
], - "created_at": "2000-01-01T00:00:00Z",
- "updated_at": "2000-01-01T00:00:00Z"
}(Deprecated。代わりに Prefix(/projects/00000000-0000-0000-0000-000000000000/)が付いたエンドポイントを使用してください) 動画(video)から変換されたJPEGデータのリストを取得します。
| video_uuid required | string Example: 68b91013-47e9-4e68-a965-892549587dfa 変換元の動画(video)のUUID |
{- "items": [
- {
- "uuid": "3279bdfb-9079-417e-8f94-ee8126da5933",
- "start_offset": 5000,
- "duration": 10000,
- "trimmed": true,
- "fps": 15,
- "quality": "high",
- "thumbnail": "/thumbnail.jpg",
- "status": "succeeded",
- "created_at": "2000-01-01T00:00:00Z",
- "updated_at": "2000-01-01T00:00:00Z"
}
], - "page": {
- "total_count": 1
}
}(Deprecated。代わりに Prefix(/projects/00000000-0000-0000-0000-000000000000/)が付いたエンドポイントを使用してください) 動画(video)を変換してJPEGデータを作成します。
| video_uuid required | string Example: 68b91013-47e9-4e68-a965-892549587dfa 変換元の動画(video)のUUID |
| trimmed | boolean 時間範囲を指定してその部分のJPEGを作成する場合は |
| start_offset | integer 計測開始からのオフセット(マイクロ秒)。trimmedがtrueの場合は必須です。 |
| duration | integer 長さ(マイクロ秒)。trimmedがtrueの場合は必須です。 |
| fps | number <float> フレームレート。値が省略された場合は、元のデータと同じフレームレートが使用されます。 |
| quality | string (JpegQuality) Enum: "high" "middle" "low" JPEGの品質。デフォルトは 'middle' です。
|
{- "trimmed": false,
- "start_offset": 0,
- "duration": 10000,
- "fps": 15,
- "quality": "high"
}{- "uuid": "3279bdfb-9079-417e-8f94-ee8126da5933",
- "start_offset": 5000,
- "duration": 10000,
- "trimmed": true,
- "fps": 15,
- "quality": "high",
- "thumbnail": "/thumbnail.jpg",
- "status": "succeeded",
- "created_at": "2000-01-01T00:00:00Z",
- "updated_at": "2000-01-01T00:00:00Z"
}(Deprecated。代わりに Prefix(/projects/00000000-0000-0000-0000-000000000000/)が付いたエンドポイントを使用してください) 動画(video)から変換されたJPEGデータを削除します。
| video_uuid required | string Example: 68b91013-47e9-4e68-a965-892549587dfa 変換元の動画(video)のUUID |
| jpeg_uuid required | string Example: 3279bdfb-9079-417e-8f94-ee8126da5933 JPEGのUUID |
(Deprecated。代わりに Prefix(/projects/00000000-0000-0000-0000-000000000000/)が付いたエンドポイントを使用してください) 動画(video)から変換されたJPEGデータの情報を取得します。 JPEGファイル自体を取得するには、GET /media/videos/{video_uuid}/jpegs/{jpeg_uuid}/images/selected.zip を使用してください。
| video_uuid required | string Example: 68b91013-47e9-4e68-a965-892549587dfa 変換元の動画(video)のUUID |
| jpeg_uuid required | string Example: 3279bdfb-9079-417e-8f94-ee8126da5933 JPEGのUUID |
{- "uuid": "3279bdfb-9079-417e-8f94-ee8126da5933",
- "start_offset": 5000,
- "duration": 10000,
- "trimmed": true,
- "fps": 15,
- "quality": "high",
- "thumbnail": "/thumbnail.jpg",
- "status": "succeeded",
- "created_at": "2000-01-01T00:00:00Z",
- "updated_at": "2000-01-01T00:00:00Z"
}(Deprecated。代わりに Prefix(/projects/00000000-0000-0000-0000-000000000000/)が付いたエンドポイントを使用してください) 動画(video)からJPEGデータへの変換をキャンセルします。
| video_uuid required | string Example: 68b91013-47e9-4e68-a965-892549587dfa 変換元の動画(video)のUUID |
| jpeg_uuid required | string Example: 3279bdfb-9079-417e-8f94-ee8126da5933 JPEGのUUID |
{- "uuid": "3279bdfb-9079-417e-8f94-ee8126da5933",
- "start_offset": 5000,
- "duration": 10000,
- "trimmed": true,
- "fps": 15,
- "quality": "high",
- "thumbnail": "/thumbnail.jpg",
- "status": "succeeded",
- "created_at": "2000-01-01T00:00:00Z",
- "updated_at": "2000-01-01T00:00:00Z"
}(Deprecated。代わりに Prefix(/projects/00000000-0000-0000-0000-000000000000/)が付いたエンドポイントを使用してください) JPEGデータをZIPファイルにまとめた形で取得します。
| video_uuid required | string Example: 68b91013-47e9-4e68-a965-892549587dfa 変換元の動画(video)のUUID |
| jpeg_uuid required | string Example: 3279bdfb-9079-417e-8f94-ee8126da5933 JPEGのUUID |
| indexes | Array of integers Example: indexes=1 取得したいJPEGのインデックス番号(最初の番号は1)。指定がない場合はすべて取得します。 |
(Deprecated。代わりに Prefix(/projects/00000000-0000-0000-0000-000000000000/)が付いたエンドポイントを使用してください) 動画(video)から変換されたMP4データのリストを取得します。
| video_uuid required | string Example: 68b91013-47e9-4e68-a965-892549587dfa 変換元の動画(video)のUUID |
{- "items": [
- {
- "uuid": "0108aeb1-f486-400f-9bcd-f176eee8b7e3",
- "start_offset": 0,
- "duration": 10000,
- "trimmed": false,
- "file_path": "/api/media/68b91013-47e9-4e68-a965-892549587dfa/mp4s/0108aeb1-f486-400f-9bcd-f176eee8b7e3/measurement.mp4",
- "thumbnail": "/thumbnail.jpg",
- "status": "unprocessed",
- "created_at": "2000-01-01T00:00:00Z",
- "updated_at": "2000-01-01T00:00:00Z"
}
], - "page": {
- "total_count": 1
}
}(Deprecated。代わりに Prefix(/projects/00000000-0000-0000-0000-000000000000/)が付いたエンドポイントを使用してください) 動画(video)を変換してMP4データを作成します。
| video_uuid required | string Example: 68b91013-47e9-4e68-a965-892549587dfa 変換元の動画(video)のUUID |
| trimmed | boolean 時間範囲を指定してその部分のMP4を作成する場合は |
| start_offset | integer 動画の開始時刻からのオフセット(マイクロ秒)。trimmedがtrueの場合は必須です。 |
| duration | integer 長さ(マイクロ秒)。trimmedがtrueの場合は必須です。 |
{- "trimmed": false,
- "start_offset": 0,
- "duration": 10000
}{- "uuid": "0108aeb1-f486-400f-9bcd-f176eee8b7e3",
- "start_offset": 0,
- "duration": 10000,
- "trimmed": false,
- "file_path": "/api/media/68b91013-47e9-4e68-a965-892549587dfa/mp4s/0108aeb1-f486-400f-9bcd-f176eee8b7e3/measurement.mp4",
- "thumbnail": "/thumbnail.jpg",
- "status": "unprocessed",
- "created_at": "2000-01-01T00:00:00Z",
- "updated_at": "2000-01-01T00:00:00Z"
}(Deprecated。代わりに Prefix(/projects/00000000-0000-0000-0000-000000000000/)が付いたエンドポイントを使用してください) 動画(video)から変換されたMP4データを削除します。
| video_uuid required | string Example: 68b91013-47e9-4e68-a965-892549587dfa 変換元の動画(video)のUUID |
| mp4_uuid required | string Example: 34cd9cc6-4c62-4310-bbfd-04541f59ca0f MP4のUUID |
(Deprecated。代わりに Prefix(/projects/00000000-0000-0000-0000-000000000000/)が付いたエンドポイントを使用してください) 動画(video)から変換されたMP4データの情報を取得します。
| video_uuid required | string Example: 68b91013-47e9-4e68-a965-892549587dfa 変換元の動画(video)のUUID |
| mp4_uuid required | string Example: 34cd9cc6-4c62-4310-bbfd-04541f59ca0f MP4のUUID |
{- "uuid": "0108aeb1-f486-400f-9bcd-f176eee8b7e3",
- "start_offset": 0,
- "duration": 10000,
- "trimmed": false,
- "file_path": "/api/media/68b91013-47e9-4e68-a965-892549587dfa/mp4s/0108aeb1-f486-400f-9bcd-f176eee8b7e3/measurement.mp4",
- "thumbnail": "/thumbnail.jpg",
- "status": "unprocessed",
- "created_at": "2000-01-01T00:00:00Z",
- "updated_at": "2000-01-01T00:00:00Z"
}(Deprecated。代わりに Prefix(/projects/00000000-0000-0000-0000-000000000000/)が付いたエンドポイントを使用してください) 動画(video)からMP4データへの変換をキャンセルします。
| video_uuid required | string Example: 68b91013-47e9-4e68-a965-892549587dfa 変換元の動画(video)のUUID |
| mp4_uuid required | string Example: 34cd9cc6-4c62-4310-bbfd-04541f59ca0f MP4のUUID |
{- "uuid": "0108aeb1-f486-400f-9bcd-f176eee8b7e3",
- "start_offset": 0,
- "duration": 10000,
- "trimmed": false,
- "file_path": "/api/media/68b91013-47e9-4e68-a965-892549587dfa/mp4s/0108aeb1-f486-400f-9bcd-f176eee8b7e3/measurement.mp4",
- "thumbnail": "/thumbnail.jpg",
- "status": "unprocessed",
- "created_at": "2000-01-01T00:00:00Z",
- "updated_at": "2000-01-01T00:00:00Z"
}Deprecated このエンドポイントの代わりに GET /v1/stream でデータを取得し、WebCodecsを使用して取得したデータをデコードしてください。
| edge_uuid required | string Example: 421fecd4-646b-4ab8-a715-c4b888964b11 エッジのUUID |
| channel required | integer Example: 1 チャンネル |
Deprecated このエンドポイントではなく GET /media/videos を使用してください
| project_uuid required | string Example: 75c55669-b2ab-4f14-a871-8571c6afa1ef プロジェクトのUUID |
| start | integer Example: start=123456789 取得対象範囲の始点(マイクロ秒単位のUNIX時刻) |
| end | integer Example: end=1234567890 取得対象範囲の終点(マイクロ秒単位のUNIX時刻) |
| edge_uuid | string Example: edge_uuid=3699e2b9-5d87-4dbd-9b85-098e7dfaee76 エッジのUUID |
| channel | integer Example: channel=1 チャンネル |
| limit | integer Example: limit=1000 1回のリクエストで取得する件数 |
{- "items": [
- {
- "edge_uuid": "6e180e5a-3d7e-476c-907d-3c71bceb8a98",
- "measurement_uuid": "507032c5-c4fb-493b-aef3-ecf6fd67df00",
- "basetime": "2000-01-02T03:04:05Z",
- "basetime_type": "ntp",
- "playlist": "playlist.m3u8",
- "channel": 1,
- "offset_time": 123456,
- "duration": 12345678
}
]
}Depricated このエンドポイントの代わりに、Videoオブジェクトの hlsにあるPATHにしたがってPlaylistを取得してください。
| project_uuid required | string Example: 75c55669-b2ab-4f14-a871-8571c6afa1ef プロジェクトのUUID |
| meas_uuid required | string Example: f967c530-f562-410a-991b-031c43142778 計測のUUID |
| channel required | integer Example: 1 チャンネル |
| force_end | boolean Example: force_end=true
|
Deprecated このエンドポイントの代わりに POST /media/videos/{video_uuid}/mp4s を使用してください。 mp4リソース作成後、 MP4オブジェクトの file_pathにあるPATHに従って動画を取得してください
| project_uuid required | string Example: 75c55669-b2ab-4f14-a871-8571c6afa1ef プロジェクトのUUID |
| meas_uuid required | string Example: f967c530-f562-410a-991b-031c43142778 計測のUUID |
| channel required | integer Example: 1 チャンネル |
Deprecated このエンドポイントの代わりに GET /v1/stream でデータを取得し、WebCodecsを使用して取得したデータをデコードしてください。
| project_uuid required | string Example: 75c55669-b2ab-4f14-a871-8571c6afa1ef プロジェクトのUUID |
| edge_uuid required | string Example: 421fecd4-646b-4ab8-a715-c4b888964b11 エッジのUUID |
| channel required | integer Example: 1 チャンネル |