API Reference

Muramasa : TeraCLOUD web engine v2.0

BaDataset

BaDatasetAPIの概要 revision: 2021012501

getDatasetCapacity

契約容量と利用容量の取得

GET /v2/api/ba/dataset/(capacity)[;MatrixParameter] アクセス対象:ノードサーバ データセット APIのBASIC認証版。 # 戻り値 ## JSONフォーマット ```json { "result": 0, "dataset": { "__ROOT__": { "quota": 3286723723264, "used": 54774784, } } } ``` - result 成功したら0。それ以外は内部エラーコードが返る。システムエラー(数字)として処理する。 - dataset データセットに関する情報。 - \_\_ROOT\_\_ データセットのルート。準ずるパラメタは下記の通り。 - quota ユーザの契約容量(単位: Byte)。 - used ユーザの利用容量(単位: Byte)。 ※出力パラメーターは、今後の拡張により増える可能性があります。


/v2/api/ba/dataset/(capacity)

Usage and SDK Samples

curl -X GET -H "Authorization: Basic [[basicHash]]" -H "X-TeraCLOUD-API-KEY: [[apiKey]]" "https://api.teracloud.jp/v2/api/ba/dataset/(capacity)"
curl -X GET -H "Authorization: Basic [[basicHash]]" -H "X-TeraCLOUD-API-KEY: [[apiKey]]" "https://api.teracloud.jp/v2/api/ba/dataset/(capacity)"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.BaDatasetApi;

import java.io.File;
import java.util.*;

public class BaDatasetApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        
        // Configure HTTP basic authorization: BASIC_AUTH
        HttpBasicAuth BASIC_AUTH = (HttpBasicAuth) defaultClient.getAuthentication("BASIC_AUTH");
        BASIC_AUTH.setUsername("YOUR USERNAME");
        BASIC_AUTH.setPassword("YOUR PASSWORD");

        // Configure API key authorization: HEADER_APIKEY
        ApiKeyAuth HEADER_APIKEY = (ApiKeyAuth) defaultClient.getAuthentication("HEADER_APIKEY");
        HEADER_APIKEY.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //HEADER_APIKEY.setApiKeyPrefix("Token");

        // Configure API key authorization: MATRIX_APIKEY
        ApiKeyAuth MATRIX_APIKEY = (ApiKeyAuth) defaultClient.getAuthentication("MATRIX_APIKEY");
        MATRIX_APIKEY.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //MATRIX_APIKEY.setApiKeyPrefix("Token");

        BaDatasetApi apiInstance = new BaDatasetApi();
        try {
            apiInstance.getDatasetCapacity();
        } catch (ApiException e) {
            System.err.println("Exception when calling BaDatasetApi#getDatasetCapacity");
            e.printStackTrace();
        }
    }
}
import org.openapitools.client.api.BaDatasetApi;

public class BaDatasetApiExample {

    public static void main(String[] args) {
        BaDatasetApi apiInstance = new BaDatasetApi();
        try {
            apiInstance.getDatasetCapacity();
        } catch (ApiException e) {
            System.err.println("Exception when calling BaDatasetApi#getDatasetCapacity");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BASIC_AUTH)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];

// Configure API key authorization: (authentication scheme: HEADER_APIKEY)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"X-TeraCLOUD-API-KEY"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"X-TeraCLOUD-API-KEY"];

// Configure API key authorization: (authentication scheme: MATRIX_APIKEY)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"api_key"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"api_key"];


BaDatasetApi *apiInstance = [[BaDatasetApi alloc] init];

// 契約容量と利用容量の取得
[apiInstance getDatasetCapacityWithCompletionHandler: 
              ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var MuramasaTeraCloudWebEngineV20 = require('muramasa__tera_cloud_web_engine_v20');
var defaultClient = MuramasaTeraCloudWebEngineV20.ApiClient.instance;

// Configure HTTP basic authorization: BASIC_AUTH
var BASIC_AUTH = defaultClient.authentications['BASIC_AUTH'];
BASIC_AUTH.username = 'YOUR USERNAME'
BASIC_AUTH.password = 'YOUR PASSWORD'

// Configure API key authorization: HEADER_APIKEY
var HEADER_APIKEY = defaultClient.authentications['HEADER_APIKEY'];
HEADER_APIKEY.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//HEADER_APIKEY.apiKeyPrefix['X-TeraCLOUD-API-KEY'] = "Token"

// Configure API key authorization: MATRIX_APIKEY
var MATRIX_APIKEY = defaultClient.authentications['MATRIX_APIKEY'];
MATRIX_APIKEY.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//MATRIX_APIKEY.apiKeyPrefix['api_key'] = "Token"

var api = new MuramasaTeraCloudWebEngineV20.BaDatasetApi()
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.getDatasetCapacity(callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class getDatasetCapacityExample
    {
        public void main()
        {
            
            // Configure HTTP basic authorization: BASIC_AUTH
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: HEADER_APIKEY
            Configuration.Default.ApiKey.Add("X-TeraCLOUD-API-KEY", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("X-TeraCLOUD-API-KEY", "Bearer");
            // Configure API key authorization: MATRIX_APIKEY
            Configuration.Default.ApiKey.Add("api_key", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("api_key", "Bearer");

            var apiInstance = new BaDatasetApi();

            try
            {
                // 契約容量と利用容量の取得
                apiInstance.getDatasetCapacity();
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling BaDatasetApi.getDatasetCapacity: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure HTTP basic authorization: BASIC_AUTH
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');
// Configure API key authorization: HEADER_APIKEY
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('X-TeraCLOUD-API-KEY', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('X-TeraCLOUD-API-KEY', 'Bearer');
// Configure API key authorization: MATRIX_APIKEY
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('api_key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('api_key', 'Bearer');

$api_instance = new OpenAPITools\Client\Api\BaDatasetApi();

try {
    $api_instance->getDatasetCapacity();
} catch (Exception $e) {
    echo 'Exception when calling BaDatasetApi->getDatasetCapacity: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::BaDatasetApi;

# Configure HTTP basic authorization: BASIC_AUTH
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';
# Configure API key authorization: HEADER_APIKEY
$WWW::OPenAPIClient::Configuration::api_key->{'X-TeraCLOUD-API-KEY'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'X-TeraCLOUD-API-KEY'} = "Bearer";
# Configure API key authorization: MATRIX_APIKEY
$WWW::OPenAPIClient::Configuration::api_key->{'api_key'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'api_key'} = "Bearer";

my $api_instance = WWW::OPenAPIClient::BaDatasetApi->new();

eval { 
    $api_instance->getDatasetCapacity();
};
if ($@) {
    warn "Exception when calling BaDatasetApi->getDatasetCapacity: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint

# Configure HTTP basic authorization: BASIC_AUTH
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'
# Configure API key authorization: HEADER_APIKEY
openapi_client.configuration.api_key['X-TeraCLOUD-API-KEY'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['X-TeraCLOUD-API-KEY'] = 'Bearer'
# Configure API key authorization: MATRIX_APIKEY
openapi_client.configuration.api_key['api_key'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['api_key'] = 'Bearer'

# create an instance of the API class
api_instance = openapi_client.BaDatasetApi()

try: 
    # 契約容量と利用容量の取得
    api_instance.get_dataset_capacity()
except ApiException as e:
    print("Exception when calling BaDatasetApi->getDatasetCapacity: %s\n" % e)
extern crate BaDatasetApi;

pub fn main() {

    let mut context = BaDatasetApi::Context::default();
    let result = client.getDatasetCapacity(&context).wait();
    println!("{:?}", result);

}

Scopes

Parameters

Responses


BaUser

BaUserAPIの概要 revision: 2020111801

getUser

ユーザの諸情報を取得 ※最終ログイン日時の更新を含む

GET /v2/api/ba/user[;MatrixParameter] アクセス対象:APIサーバ ユーザ APIのBASIC認証版。 BASIC認証を使う従来型のWebDavクライアントの場合はSSOログインを行わない為、最終ログイン日時が更新されません。 最終ログイン日時が更新されない場合、未使用ユーザと判断されるため一定期間が経過した際にアカウント削除の対象となります。 curl等で当該のエンドポイントを定期的に呼び出し、最終ログイン日時を更新してください。 # 戻り値 ## JSONフォーマット ```json { "user" : "userid", "introduce_code" : "XA76A", "node" : "ise.teracloud.jp", "webdav_url" : "https://ise.teracloud.jp/dav/", "capacity" : 1101, "api_key" : { "name" : "アプリケーション名", "note" : "アプリケーションの説明", "vendor" : "アプリケーションデベロッパー名", "activated_time" : 2015-02-15 09:05:42.0, "bonus" : { "since" : 2015-02-15 09:05:56.0, "until" : 2016-02-14 23:59:59.0, "increase_capacity" : 100 } }, "result" : 0, "revision" : 2020111801 } ``` - result 成功したら0。それ以外は内部エラーコードが返る。システムエラー(数字)として処理する。 - revision APIのリビジョン番号。バージョンによる後方互換性は基本的には保たれるため、通常は無視しても良い。 - user ユーザID。 - introduce_code そのユーザの紹介者コード(半角英数字)。ユーザ毎に完全にユニークではない。この紹介者コードを友人に紹介し、マイページに入力することで、双方にボーナスが付与される。 - node そのユーザが収容されているノードサーバのFQDN。ノード系APIはこちらのサーバに向けて実行してください。 - webdav_url そのユーザのWebDAV URL。 - capacity 契約容量。そのユーザが利用できる容量(単位: GB)。 - api_key API KEYに準ずる拡張パラメタ。 API KEYに準ずる拡張パラメタは下記の通り。 - activated_time このAPI KEYを初めて使った日時。(yyyy-MM-dd HH:mm:ss.s)。 - vendor アプリケーションのベンダー名。 - name アプリケーション名。 - note アプリケーションの説明文。 - bonus API KEYに関連するボーナス。bonusは特殊なAPI KEYに付与されます。API KEYの付与の時にBonusを与えたいデベロッパーは、こちらを参照。※リンク先は現在準備中です。 - API KEYに関連するボーナスは下記の通り。 - since API KEYに特典がある場合、適用された日時(yyyy-MM-dd HH:mm:ss.s)未来の日付もあり得る。 - capacity 契約容量。そのユーザが利用できる容量(単位: GB)。 - until API KEYに特典がある場合、その期限となる日時(yyyy-MM-dd HH:mm:ss.s)この期限が過ぎるとボーナスの効果がなくなるが、この値は常に戻る。 - increase_capacity API KEYの特典によって増加する容量(単位: GB)。 ※出力パラメーターは、今後の拡張や特典の内容により増える可能性があります。


/v2/api/ba/user

Usage and SDK Samples

curl -X GET -H "Authorization: Basic [[basicHash]]" -H "X-TeraCLOUD-API-KEY: [[apiKey]]" "https://api.teracloud.jp/v2/api/ba/user"
curl -X GET -H "Authorization: Basic [[basicHash]]" -H "X-TeraCLOUD-API-KEY: [[apiKey]]" "https://api.teracloud.jp/v2/api/ba/user"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.BaUserApi;

import java.io.File;
import java.util.*;

public class BaUserApiExample {

    public static void main(String[] args) {
        ApiClient defaultClient = Configuration.getDefaultApiClient();
        
        // Configure HTTP basic authorization: BASIC_AUTH
        HttpBasicAuth BASIC_AUTH = (HttpBasicAuth) defaultClient.getAuthentication("BASIC_AUTH");
        BASIC_AUTH.setUsername("YOUR USERNAME");
        BASIC_AUTH.setPassword("YOUR PASSWORD");

        // Configure API key authorization: HEADER_APIKEY
        ApiKeyAuth HEADER_APIKEY = (ApiKeyAuth) defaultClient.getAuthentication("HEADER_APIKEY");
        HEADER_APIKEY.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //HEADER_APIKEY.setApiKeyPrefix("Token");

        // Configure API key authorization: MATRIX_APIKEY
        ApiKeyAuth MATRIX_APIKEY = (ApiKeyAuth) defaultClient.getAuthentication("MATRIX_APIKEY");
        MATRIX_APIKEY.setApiKey("YOUR API KEY");
        // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
        //MATRIX_APIKEY.setApiKeyPrefix("Token");

        BaUserApi apiInstance = new BaUserApi();
        try {
            apiInstance.getUser();
        } catch (ApiException e) {
            System.err.println("Exception when calling BaUserApi#getUser");
            e.printStackTrace();
        }
    }
}
import org.openapitools.client.api.BaUserApi;

public class BaUserApiExample {

    public static void main(String[] args) {
        BaUserApi apiInstance = new BaUserApi();
        try {
            apiInstance.getUser();
        } catch (ApiException e) {
            System.err.println("Exception when calling BaUserApi#getUser");
            e.printStackTrace();
        }
    }
}
Configuration *apiConfig = [Configuration sharedConfig];
// Configure HTTP basic authorization (authentication scheme: BASIC_AUTH)
[apiConfig setUsername:@"YOUR_USERNAME"];
[apiConfig setPassword:@"YOUR_PASSWORD"];

// Configure API key authorization: (authentication scheme: HEADER_APIKEY)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"X-TeraCLOUD-API-KEY"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"X-TeraCLOUD-API-KEY"];

// Configure API key authorization: (authentication scheme: MATRIX_APIKEY)
[apiConfig setApiKey:@"YOUR_API_KEY" forApiKeyIdentifier:@"api_key"];
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
//[apiConfig setApiKeyPrefix:@"Bearer" forApiKeyIdentifier:@"api_key"];


BaUserApi *apiInstance = [[BaUserApi alloc] init];

// ユーザの諸情報を取得 ※最終ログイン日時の更新を含む
[apiInstance getUserWithCompletionHandler: 
              ^(NSError* error) {
                            if (error) {
                                NSLog(@"Error: %@", error);
                            }
                        }];
var MuramasaTeraCloudWebEngineV20 = require('muramasa__tera_cloud_web_engine_v20');
var defaultClient = MuramasaTeraCloudWebEngineV20.ApiClient.instance;

// Configure HTTP basic authorization: BASIC_AUTH
var BASIC_AUTH = defaultClient.authentications['BASIC_AUTH'];
BASIC_AUTH.username = 'YOUR USERNAME'
BASIC_AUTH.password = 'YOUR PASSWORD'

// Configure API key authorization: HEADER_APIKEY
var HEADER_APIKEY = defaultClient.authentications['HEADER_APIKEY'];
HEADER_APIKEY.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//HEADER_APIKEY.apiKeyPrefix['X-TeraCLOUD-API-KEY'] = "Token"

// Configure API key authorization: MATRIX_APIKEY
var MATRIX_APIKEY = defaultClient.authentications['MATRIX_APIKEY'];
MATRIX_APIKEY.apiKey = "YOUR API KEY"
// Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null)
//MATRIX_APIKEY.apiKeyPrefix['api_key'] = "Token"

var api = new MuramasaTeraCloudWebEngineV20.BaUserApi()
var callback = function(error, data, response) {
  if (error) {
    console.error(error);
  } else {
    console.log('API called successfully.');
  }
};
api.getUser(callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;

namespace Example
{
    public class getUserExample
    {
        public void main()
        {
            
            // Configure HTTP basic authorization: BASIC_AUTH
            Configuration.Default.Username = "YOUR_USERNAME";
            Configuration.Default.Password = "YOUR_PASSWORD";
            // Configure API key authorization: HEADER_APIKEY
            Configuration.Default.ApiKey.Add("X-TeraCLOUD-API-KEY", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("X-TeraCLOUD-API-KEY", "Bearer");
            // Configure API key authorization: MATRIX_APIKEY
            Configuration.Default.ApiKey.Add("api_key", "YOUR_API_KEY");
            // Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
            // Configuration.Default.ApiKeyPrefix.Add("api_key", "Bearer");

            var apiInstance = new BaUserApi();

            try
            {
                // ユーザの諸情報を取得 ※最終ログイン日時の更新を含む
                apiInstance.getUser();
            }
            catch (Exception e)
            {
                Debug.Print("Exception when calling BaUserApi.getUser: " + e.Message );
            }
        }
    }
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');

// Configure HTTP basic authorization: BASIC_AUTH
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setUsername('YOUR_USERNAME');
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setPassword('YOUR_PASSWORD');
// Configure API key authorization: HEADER_APIKEY
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('X-TeraCLOUD-API-KEY', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('X-TeraCLOUD-API-KEY', 'Bearer');
// Configure API key authorization: MATRIX_APIKEY
OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKey('api_key', 'YOUR_API_KEY');
// Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
// OpenAPITools\Client\Configuration::getDefaultConfiguration()->setApiKeyPrefix('api_key', 'Bearer');

$api_instance = new OpenAPITools\Client\Api\BaUserApi();

try {
    $api_instance->getUser();
} catch (Exception $e) {
    echo 'Exception when calling BaUserApi->getUser: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::BaUserApi;

# Configure HTTP basic authorization: BASIC_AUTH
$WWW::OPenAPIClient::Configuration::username = 'YOUR_USERNAME';
$WWW::OPenAPIClient::Configuration::password = 'YOUR_PASSWORD';
# Configure API key authorization: HEADER_APIKEY
$WWW::OPenAPIClient::Configuration::api_key->{'X-TeraCLOUD-API-KEY'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'X-TeraCLOUD-API-KEY'} = "Bearer";
# Configure API key authorization: MATRIX_APIKEY
$WWW::OPenAPIClient::Configuration::api_key->{'api_key'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::OPenAPIClient::Configuration::api_key_prefix->{'api_key'} = "Bearer";

my $api_instance = WWW::OPenAPIClient::BaUserApi->new();

eval { 
    $api_instance->getUser();
};
if ($@) {
    warn "Exception when calling BaUserApi->getUser: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint

# Configure HTTP basic authorization: BASIC_AUTH
openapi_client.configuration.username = 'YOUR_USERNAME'
openapi_client.configuration.password = 'YOUR_PASSWORD'
# Configure API key authorization: HEADER_APIKEY
openapi_client.configuration.api_key['X-TeraCLOUD-API-KEY'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['X-TeraCLOUD-API-KEY'] = 'Bearer'
# Configure API key authorization: MATRIX_APIKEY
openapi_client.configuration.api_key['api_key'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# openapi_client.configuration.api_key_prefix['api_key'] = 'Bearer'

# create an instance of the API class
api_instance = openapi_client.BaUserApi()

try: 
    # ユーザの諸情報を取得 ※最終ログイン日時の更新を含む
    api_instance.get_user()
except ApiException as e:
    print("Exception when calling BaUserApi->getUser: %s\n" % e)
extern crate BaUserApi;

pub fn main() {

    let mut context = BaUserApi::Context::default();
    let result = client.getUser(&context).wait();
    println!("{:?}", result);

}

Scopes

Parameters

Responses