Routing

ルーティング設定の参照・更新に関するAPIです。

関連機能: ルーティング

GET Get All Routing Config

全てのルーティング設定をリストで取得します。
GET https://api.legs.iij.jp/api/routing?token=api-token

Parameters

type parameter require example description
query token yes api-token API Token

Response Body 200

show example

POST Create New Routing Config

新規にルーティング設定を作成します。
POST https://api.legs.iij.jp/api/routing?token=api-token

Parameters

type parameter require example description
query token yes api-token API Token
    show example
	
	</span>
</div>
<div class="expand-content" style="display: none;">
    <div class="highlight"><pre style="color:#272822;background-color:#fafafa;-moz-tab-size:4;-o-tab-size:4;tab-size:4"><code class="language-javascript" data-lang="javascript"><span style="color:#111">{</span>

"name": "/create/:id", "urls": [ { "url": "https://legs-echo-test.iij.k8s.iijgio.jp/api/create/{id}", "headers": { "AuthToken": "auth-token" } }, { "url": "https://gw.machinist.iij.jp/gateway" } ] }

Response Body 201

show example

PUT Update Routing Config

IDを指定して単体のルーティング設定を更新します。
PUT https://api.legs.iij.jp/api/routing/{id}?token=api-token

Parameters

type parameter require example description
path id yes 1 更新するルーティング設定のID
query token yes api-token API Token
    show example
	
	</span>
</div>
<div class="expand-content" style="display: none;">
    <div class="highlight"><pre style="color:#272822;background-color:#fafafa;-moz-tab-size:4;-o-tab-size:4;tab-size:4"><code class="language-javascript" data-lang="javascript"><span style="color:#111">{</span>

"name": "/update/:id", "urls": [ { "url": "https://legs-echo-test.iij.k8s.iijgio.jp/api/create/{id}", "headers": { "AuthToken": "auth-token" } } ] }

Response Body 200

show example

DELETE Delete Routing Config

IDを指定して単体のルーティング設定を削除します。
DELETE https://api.legs.iij.jp/api/routing/{id}?token=api-token

Parameters

type parameter require example description
path id yes 1 削除するルーティング設定のID
query token yes api-token API Token
no content