装置API (1.0)
Download OpenAPI specification:Download
概要
- 本APIでは、docomo business RINKが提供するルーター(RINKルーター01)リソースの参照・操作が可能です。
ルーター一覧取得
テナント内の全てのルーターリソースを参照するAPI
query Parameters
limit | integer [ 1 .. 100 ] Default: 10 ページあたりの表示件数の指定(デフォルト10, 最大100) |
offset | integer >= 0 Default: 0 表示するページ番号の指定(デフォルト0) |
terminalId | string ルーターリソースのID. 指定なしならテナント内のすべての ルーターリソースが検索対象 キーバリューペアを繰り返し指定することで複数のルーターリソースを指定可能 (例: ルーターId=ox1234567890&ルーターId=ox1234567891) |
cutomerNote | string customerNoteの部分一致検索 |
sortKey | string Enum: "terminalId" "customerNote" "mobileId" "ipoeId" "vpnId" "guaranteeId" "resourceStatus" "orderId" "updateTime" "breakOut" ソート項目の指定. レスポンスボディの項目から |
direction | string ソート順の指定. asc: 昇順, desc: 降順 |
resourceStatus | string Enum: "inactive" "active" "terminated" リソースステータス |
header Parameters
X-Auth-Token required | string ^[0-9a-f]{32}$ Example: dc03494823a841338430052e9ee95e07 クライアントが Keystone を利用して取得した認証 Token |
Responses
User Found
Bad Request
Unauthorized
Forbidden
Not Found
Internal Server Error
Response samples
- 200
{- "terminals": [
- {
- "terminalId": "Z123456789",
- "ref": "/v1/terminals/Z000000001",
- "tenantId": "550e8400e29b41d4a716446655440000",
- "resourceStatus": "inactive",
- "orderId": "Z123456789",
- "orderStatus": "applied",
- "creationTime": "2019-05-21T10:05:48+09:00",
- "updateTime": "2019-05-21T10:05:48+09:00",
- "serviceStartTime": "2019-05-21T10:05:48+09:00",
- "customerNote": "東京支店ルーター",
- "defaultGateway": {
- "nexthopNetwork": "internet",
- "nexthopIpv4Address": "192.168.0.254",
- "vpnRouting": false
}, - "breakOut": [
- "teams"
], - "breakOutDnsServers": [
- "192.0.2.1"
], - "deliveryName": "電報 太郎",
- "deliveryDepartmentName": "電報部電報課",
- "deliveryPostalCode": "100-0004",
- "deliveryAddress": "東京都千代田区大手町2-3-1",
- "deliveryPhoneNumber": "03-1234-5678",
- "deliveryAddressKana": "トウキョウトチヨダクオオテマチ2−3−1",
- "deliveryDate": "2023-04-01",
- "removalName": "電報 太郎",
- "removalDepartmentName": "東京都千代田区大手町2-3-1",
- "removalPostalCode": "100-0004",
- "removalAddress": "東京都千代田区大手町2-3-1",
- "removalAddressKana": "東京都千代田区大手町2-3-1",
- "removalPhoneNumber": "03-1234-5678",
- "installationPostalCode": "100-0004",
- "installationAddress": "千代田区大手町2-3-1",
- "vpnId": "V123456789",
- "ipoeId": "Z123456789",
- "ipoeIpv4Address": "192.0.2.2/32",
- "mobileId": "Z123456789",
- "guarantee": {
- "guaranteeId": "Z123456789",
- "internet": {
- "globalIpAddress": "192.0.2.1",
- "act": {
- "connectedIpv4Prefix": "203.0.113.0/30",
- "peConnectedIPv4Address": "203.0.113.1/30",
- "cpeConnectedIpv4Address": "203.0.113.2/30",
- "vlan": 2000
}, - "sby": {
- "connectedIpv4Prefix": "203.0.113.4/30",
- "peConnectedIPv4Address": "203.0.113.5/30",
- "cpeConnectedIpv4Address": "203.0.113.6/30",
- "vlan": 2001
}
}, - "vpn": {
- "act": {
- "connectedIpv4Prefix": "192.0.2.8/30",
- "peConnectedIPv4Address": "192.0.2.9/30",
- "cpeConnectedIpv4Address": "192.0.2.10/30",
- "vlan": 2002
}, - "sby": {
- "connectedIpv4Prefix": "192.0.2.12/30",
- "peConnectedIPv4Address": "192.0.2.13/30",
- "cpeConnectedIpv4Address": "192.0.2.14/30",
- "vlan": 2003
}
}
}, - "loopbackIpv4Address": "10.0.0.1",
- "mobile": {
- "mobileId": "Z123456789",
- "msisdn": "090-0000-0000",
- "picName": "電報 太郎",
- "picNameKana": "デンポウ タロウ",
- "picPhoneNumber": "080-0000-0000",
- "customerReceiptRequired": true,
- "callDetailDesired": true,
- "callDetailBreakdownSetting": "showAll",
- "callDetailDestinationNumberSetting": "showAll",
- "rat": "auto"
}, - "terminalDevices": [
- {
- "model": "NXR-610X5G",
- "deviceAttribute": "active",
- "serialNumber": "12345678910",
- "firmwareVersion": {
- "displayName": "202411-01",
- "attribute": "latest"
}
}
], - "primaryCircuit": {
- "circuitType": "ipoe",
- "circuitId": "Z123456789",
- "ref": "/v1/ipoe/hikari-collabo/Z123456789"
}, - "secondaryCircuit": {
- "circuitType": "mobile",
- "circuitId": "Z123456789",
- "ref": "/v1/ipoe/hikari-collabo/Z123456789"
}, - "lans": [
- {
- "type": "primary",
- "ipv4Address": "192.168.0.1",
- "ipv4PrefixLength": "24",
- "vpnRouting": true,
- "vpnNats": [
- {
- "type": "nat",
- "innerIpv4Prefix": "192.168.0.0/24",
- "outerIpv4Prefix": "10.0.0.0/24"
}
]
}
], - "lanStaticRoutes": [
- {
- "destinationIpv4Prefix": "192.168.1.0/24",
- "nexthopIpv4Address": "192.168.0.254",
- "vpnRouting": true,
- "vpnNats": [
- {
- "type": "nat",
- "innerIpv4Prefix": "192.168.0.0/24",
- "outerIpv4Prefix": "10.0.0.0/24"
}
]
}
], - "wanStaticRoutes": [
- {
- "destinationIpv4Prefix": "1.1.1.1/32",
- "nexthopNetwork": "vpn"
}
], - "inet4OutFilters": {
- "defaultPolicy": "accept",
- "accessControlList": [
- {
- "sourceIpv4Prefix": "192.168.0.0/24",
- "destinationIpv4Prefix": "192.168.1.0/24",
- "sourcePort": "any",
- "destinationPort": "any",
- "protocol": "any",
- "action": "discard"
}
]
}, - "vpnInFilters": {
- "defaultPolicy": "accept",
- "accessControlList": [
- {
- "sourceIpv4Prefix": "192.168.0.0/24",
- "destinationIpv4Prefix": "192.168.1.0/24",
- "sourcePort": "any",
- "destinationPort": "any",
- "protocol": "any",
- "action": "discard"
}
]
}, - "vpnOutFilters": {
- "defaultPolicy": "accept",
- "accessControlList": [
- {
- "sourceIpv4Prefix": "192.168.0.0/24",
- "destinationIpv4Prefix": "192.168.1.0/24",
- "sourcePort": "any",
- "destinationPort": "any",
- "protocol": "any",
- "action": "discard"
}
]
}, - "dhcpServer": {
- "ipv4AddressRanges": [
- {
- "start": "192.168.0.101",
- "end": "192.168.0.200"
}
], - "domain": "example.com",
- "primaryDnsServer": "192.168.0.10",
- "secondaryDnsServer": "192.168.0.20",
- "primaryWinsServer": "192.168.0.30",
- "secondaryWinsServer": "192.168.0.40"
}, - "dhcpRelayServers": [
- {
- "serverIpv4Address": "192.168.0.10"
}
]
}
], - "total": 100,
- "offset": 0
}
ルーター申込
ルーターリソースを作成するAPI
header Parameters
X-Auth-Token required | string ^[0-9a-f]{32}$ Example: dc03494823a841338430052e9ee95e07 クライアントが Keystone を利用して取得した認証 Token |
Request Body schema: application/json
request body
customerNote required | string <= 64 characters ルーター名 (全角・半角・記号許容) |
breakOut | Array of strings [ 1 .. 8 ] items 特定通信ブレイクアウトを指定 特定アプリケーションをローカルブレイクアウトする場合に利用 ネクストホップネットワークがVPNのとき、指定可能 breakOutListリソースでユーザ定義のリストを作成し、それを指定することも可能
|
breakOutDnsServers | Array of strings [ 1 .. 4 ] items ローカルブレイクアウト用のDNSサーバ指定 ローカルブレイクアウトを利用する場合指定必須 |
deliveryName required | string 配送先 担当者名 |
deliveryDepartmentName required | string 配送先 担当者部課名 |
deliveryPostalCode required | string ^[0-9]{3}-[0-9]{4}$ 配送先 郵便番号 |
deliveryAddress required | string 配送先 住所 |
deliveryPhoneNumber | string ^0[5789]0-[0-9]{4}-[0-9]{4}$|^0([0-9]-[0-9]{4}|[0-9]{2}-[0-9]{3}|[0-9]{3}-[0-9]{2}|[0-9]{4}-[0-9])-[0-9]{4}$ 配送先 電話番号 |
deliveryAddressKana required | string 配送先 住所カナ |
deliveryDate required | string <date> 配送希望日、10営業日以降から指定可能。ただし12/28~1/3は暦日に含まない。 |
installationPostalCode required | string ^[0-9]{3}-[0-9]{4}$ 設置場所郵便番号 |
installationAddress required | string 設置場所住所 |
primaryCircuitType required | string Enum: "ipoe" "mobile" "guarantee" メインで利用している回線種別。ベストエフォートIPoE接続か、モバイル接続か、ギャランティ接続。 |
secondaryCircuitType | string Enum: "mobile" "ipoe"
|
ipoeId | string ^Z[0-9]{9}$ 紐付けるベストエフォートIPoE接続ID |
vpnId | string ^V[0-9]{9}$ 紐付けるVPN接続のリソースID |
guarantee | object (TerminalGuaranteeCreate) ギャランティ接続関連の申込情報 |
mobile | object (モバイル回線新規申込) 新規申込リクエストの body 文 |
loopbackIpv4Address required | string ^((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])$ |
lans required | Array of objects (TerminalLan) [ 1 .. 4 ] items ルーター直下セグメント
|
defaultGateway required | object (TerminalDefaultGateway) デフォルトルート設定 |
lanStaticRoutes | Array of objects (TerminalLanStaticRoute) [ 0 .. 30 ] items |
wanStaticRoutes | Array of objects (TerminalWanStaticRoute) [ 0 .. 300 ] items |
vpnInFilters | object (TerminalUserFilter) |
vpnOutFilters | object (TerminalUserFilter) |
inet4OutFilters | object (TerminalUserFilter) |
dhcpServer | object (TerminalDhcpServer) DHCP サーバーの設定 DHCP サーバーと DHCP リレーはどちらか一方のみ指定可。両方を指定した場合エラーとなる。 ルーター設定変更時に一方を指定した場合、もう一方の設定は削除される。 |
dhcpRelayServers | Array of objects (TerminalDhcpRelayServers) [ 1 .. 4 ] items DHCP リレーの設定 DHCP サーバー と DHCP リレーはどちらか一方のみ指定可。両方を指定した場合エラーとなる。 ルーター設定変更時に一方を指定した場合、もう一方の設定は削除される。 |
Responses
Accepted
Bad Request
Unauthorized
Forbidden
Not Found
Internal Server Error
Request samples
- Payload
{- "customerNote": "東京支店ルーター",
- "breakOut": [
- "teams"
], - "breakOutDnsServers": [
- "192.0.2.1"
], - "deliveryName": "電報 太郎",
- "deliveryDepartmentName": "電報部電報課",
- "deliveryPostalCode": "100-0004",
- "deliveryAddress": "東京都千代田区大手町2-3-1",
- "deliveryPhoneNumber": "03-1234-5678",
- "deliveryAddressKana": "トウキョウトチヨダクオオテマチ2−3−1",
- "deliveryDate": "2023-04-01",
- "installationPostalCode": "100-0004",
- "installationAddress": "東京都千代田区大手町2-3-1",
- "primaryCircuitType": "ipoe",
- "secondaryCircuitType": "mobile",
- "ipoeId": "Z123456789",
- "vpnId": "V123456789",
- "guarantee": {
- "guaranteeId": "Z123456789",
- "vpn": {
- "act": {
- "connectedIpv4Prefix": "192.0.2.8/30"
}, - "sby": {
- "connectedIpv4Prefix": "192.0.2.12/30"
}
}
}, - "mobile": {
- "japanCorporateNumber": "1234567890123",
- "contractIdentificationDocumentType": "sealCertificate",
- "contractIdentificationDocumentId": "550e8400e29b41d4a716446655440000",
- "picName": "電報 太郎",
- "picNameKana": "デンポウ タロウ",
- "picPostalCode": "100-0004",
- "picAddress": "東京都千代田区大手町2-3-1",
- "picAddressKana": "トウキョウトチヨダクオオテマチ2-3-1",
- "picPhoneNumber": "080-0000-0000",
- "picDateOfBirth": "2010-06-01",
- "picIdentificationDocumentType": "indivisualNumberCard",
- "picIdentificationNumber": "123456789012",
- "picIdentificationFrontDocumentId": "550e8400e29b41d4a716446655440000",
- "picIdentificationBackDocumentId": "550e8400e29b41d4a716446655440000",
- "picIdentificationAdditionalDocumentId": "550e8400e29b41d4a716446655440000",
- "picAuxiliaryIdentificationDocumentType": "utilityBillReceipt",
- "picAuxiliaryIdentificationDocumentId": "550e8400e29b41d4a716446655440000",
- "picEmployeeCode": "1234567",
- "picEmploymentDocumentType": "employeeIdCard",
- "picEmploymentDocumentId": "550e8400e29b41d4a716446655440000",
- "networkPinCode": "1234",
- "customerReceiptRequired": true,
- "callDetailDesired": true,
- "callDetailBreakdownSetting": "showAll",
- "callDetailDestinationNumberSetting": "showAll",
- "rat": "auto"
}, - "loopbackIpv4Address": "10.0.0.1",
- "lans": [
- {
- "type": "primary",
- "ipv4Address": "192.168.0.1",
- "ipv4PrefixLength": "24",
- "vpnRouting": true,
- "vpnNats": [
- {
- "type": "nat",
- "innerIpv4Prefix": "192.168.0.0/24",
- "outerIpv4Prefix": "10.0.0.0/24"
}
]
}
], - "defaultGateway": {
- "nexthopNetwork": "internet",
- "nexthopIpv4Address": "192.168.0.254",
- "vpnRouting": false
}, - "lanStaticRoutes": [
- {
- "destinationIpv4Prefix": "192.168.1.0/24",
- "nexthopIpv4Address": "192.168.0.254",
- "vpnRouting": true,
- "vpnNats": [
- {
- "type": "nat",
- "innerIpv4Prefix": "192.168.0.0/24",
- "outerIpv4Prefix": "10.0.0.0/24"
}
]
}
], - "wanStaticRoutes": [
- {
- "destinationIpv4Prefix": "1.1.1.1/32",
- "nexthopNetwork": "vpn"
}
], - "vpnInFilters": {
- "defaultPolicy": "accept",
- "accessControlList": [
- {
- "sourceIpv4Prefix": "192.168.0.0/24",
- "destinationIpv4Prefix": "192.168.1.0/24",
- "sourcePort": "any",
- "destinationPort": "any",
- "protocol": "any",
- "action": "discard"
}
]
}, - "vpnOutFilters": {
- "defaultPolicy": "accept",
- "accessControlList": [
- {
- "sourceIpv4Prefix": "192.168.0.0/24",
- "destinationIpv4Prefix": "192.168.1.0/24",
- "sourcePort": "any",
- "destinationPort": "any",
- "protocol": "any",
- "action": "discard"
}
]
}, - "inet4OutFilters": {
- "defaultPolicy": "accept",
- "accessControlList": [
- {
- "sourceIpv4Prefix": "192.168.0.0/24",
- "destinationIpv4Prefix": "192.168.1.0/24",
- "sourcePort": "any",
- "destinationPort": "any",
- "protocol": "any",
- "action": "discard"
}
]
}, - "dhcpServer": {
- "ipv4AddressRanges": [
- {
- "start": "192.168.0.101",
- "end": "192.168.0.200"
}
], - "domain": "example.com",
- "primaryDnsServer": "192.168.0.10",
- "secondaryDnsServer": "192.168.0.20",
- "primaryWinsServer": "192.168.0.30",
- "secondaryWinsServer": "192.168.0.40"
}, - "dhcpRelayServers": [
- {
- "serverIpv4Address": "192.168.0.10"
}
]
}
Response samples
- 202
{- "terminalId": "Z123456789",
- "ref": "/v1/terminals/Z000000001",
- "tenantId": "550e8400e29b41d4a716446655440000",
- "resourceStatus": "inactive",
- "orderId": "Z123456789",
- "orderStatus": "applied",
- "creationTime": "2019-05-21T10:05:48+09:00",
- "updateTime": "2019-05-21T10:05:48+09:00",
- "serviceStartTime": "2019-05-21T10:05:48+09:00",
- "customerNote": "東京支店ルーター",
- "defaultGateway": {
- "nexthopNetwork": "internet",
- "nexthopIpv4Address": "192.168.0.254",
- "vpnRouting": false
}, - "breakOut": [
- "teams"
], - "breakOutDnsServers": [
- "192.0.2.1"
], - "deliveryName": "電報 太郎",
- "deliveryDepartmentName": "電報部電報課",
- "deliveryPostalCode": "100-0004",
- "deliveryAddress": "東京都千代田区大手町2-3-1",
- "deliveryPhoneNumber": "03-1234-5678",
- "deliveryAddressKana": "トウキョウトチヨダクオオテマチ2−3−1",
- "deliveryDate": "2023-04-01",
- "removalName": "電報 太郎",
- "removalDepartmentName": "東京都千代田区大手町2-3-1",
- "removalPostalCode": "100-0004",
- "removalAddress": "東京都千代田区大手町2-3-1",
- "removalAddressKana": "東京都千代田区大手町2-3-1",
- "removalPhoneNumber": "03-1234-5678",
- "installationPostalCode": "100-0004",
- "installationAddress": "千代田区大手町2-3-1",
- "vpnId": "V123456789",
- "ipoeId": "Z123456789",
- "ipoeIpv4Address": "192.0.2.2/32",
- "mobileId": "Z123456789",
- "guarantee": {
- "guaranteeId": "Z123456789",
- "internet": {
- "globalIpAddress": "192.0.2.1",
- "act": {
- "connectedIpv4Prefix": "203.0.113.0/30",
- "peConnectedIPv4Address": "203.0.113.1/30",
- "cpeConnectedIpv4Address": "203.0.113.2/30",
- "vlan": 2000
}, - "sby": {
- "connectedIpv4Prefix": "203.0.113.4/30",
- "peConnectedIPv4Address": "203.0.113.5/30",
- "cpeConnectedIpv4Address": "203.0.113.6/30",
- "vlan": 2001
}
}, - "vpn": {
- "act": {
- "connectedIpv4Prefix": "192.0.2.8/30",
- "peConnectedIPv4Address": "192.0.2.9/30",
- "cpeConnectedIpv4Address": "192.0.2.10/30",
- "vlan": 2002
}, - "sby": {
- "connectedIpv4Prefix": "192.0.2.12/30",
- "peConnectedIPv4Address": "192.0.2.13/30",
- "cpeConnectedIpv4Address": "192.0.2.14/30",
- "vlan": 2003
}
}
}, - "loopbackIpv4Address": "10.0.0.1",
- "mobile": {
- "mobileId": "Z123456789",
- "msisdn": "090-0000-0000",
- "picName": "電報 太郎",
- "picNameKana": "デンポウ タロウ",
- "picPhoneNumber": "080-0000-0000",
- "customerReceiptRequired": true,
- "callDetailDesired": true,
- "callDetailBreakdownSetting": "showAll",
- "callDetailDestinationNumberSetting": "showAll",
- "rat": "auto"
}, - "terminalDevices": [
- {
- "model": "NXR-610X5G",
- "deviceAttribute": "active",
- "serialNumber": "12345678910",
- "firmwareVersion": {
- "displayName": "202411-01",
- "attribute": "latest"
}
}
], - "primaryCircuit": {
- "circuitType": "ipoe",
- "circuitId": "Z123456789",
- "ref": "/v1/ipoe/hikari-collabo/Z123456789"
}, - "secondaryCircuit": {
- "circuitType": "mobile",
- "circuitId": "Z123456789",
- "ref": "/v1/ipoe/hikari-collabo/Z123456789"
}, - "lans": [
- {
- "type": "primary",
- "ipv4Address": "192.168.0.1",
- "ipv4PrefixLength": "24",
- "vpnRouting": true,
- "vpnNats": [
- {
- "type": "nat",
- "innerIpv4Prefix": "192.168.0.0/24",
- "outerIpv4Prefix": "10.0.0.0/24"
}
]
}
], - "lanStaticRoutes": [
- {
- "destinationIpv4Prefix": "192.168.1.0/24",
- "nexthopIpv4Address": "192.168.0.254",
- "vpnRouting": true,
- "vpnNats": [
- {
- "type": "nat",
- "innerIpv4Prefix": "192.168.0.0/24",
- "outerIpv4Prefix": "10.0.0.0/24"
}
]
}
], - "wanStaticRoutes": [
- {
- "destinationIpv4Prefix": "1.1.1.1/32",
- "nexthopNetwork": "vpn"
}
], - "inet4OutFilters": {
- "defaultPolicy": "accept",
- "accessControlList": [
- {
- "sourceIpv4Prefix": "192.168.0.0/24",
- "destinationIpv4Prefix": "192.168.1.0/24",
- "sourcePort": "any",
- "destinationPort": "any",
- "protocol": "any",
- "action": "discard"
}
]
}, - "vpnInFilters": {
- "defaultPolicy": "accept",
- "accessControlList": [
- {
- "sourceIpv4Prefix": "192.168.0.0/24",
- "destinationIpv4Prefix": "192.168.1.0/24",
- "sourcePort": "any",
- "destinationPort": "any",
- "protocol": "any",
- "action": "discard"
}
]
}, - "vpnOutFilters": {
- "defaultPolicy": "accept",
- "accessControlList": [
- {
- "sourceIpv4Prefix": "192.168.0.0/24",
- "destinationIpv4Prefix": "192.168.1.0/24",
- "sourcePort": "any",
- "destinationPort": "any",
- "protocol": "any",
- "action": "discard"
}
]
}, - "dhcpServer": {
- "ipv4AddressRanges": [
- {
- "start": "192.168.0.101",
- "end": "192.168.0.200"
}
], - "domain": "example.com",
- "primaryDnsServer": "192.168.0.10",
- "secondaryDnsServer": "192.168.0.20",
- "primaryWinsServer": "192.168.0.30",
- "secondaryWinsServer": "192.168.0.40"
}, - "dhcpRelayServers": [
- {
- "serverIpv4Address": "192.168.0.10"
}
]
}
ルーター一括申込
ルーターリソースを一括作成するリクエストを実行するAPI
header Parameters
X-Auth-Token required | string ^[0-9a-f]{32}$ Example: dc03494823a841338430052e9ee95e07 クライアントが Keystone を利用して取得した認証 Token |
Request Body schema: application/json
request body
mobile | object (モバイル回線新規申込) 新規申込リクエストの body 文 |
terminals required | Array of objects (TerminalCreateForBulk) |
Responses
Accepted
Bad Request
Unauthorized
Forbidden
Not Found
Internal Server Error
Request samples
- Payload
{- "mobile": {
- "japanCorporateNumber": "1234567890123",
- "contractIdentificationDocumentType": "sealCertificate",
- "contractIdentificationDocumentId": "550e8400e29b41d4a716446655440000",
- "picName": "電報 太郎",
- "picNameKana": "デンポウ タロウ",
- "picPostalCode": "100-0004",
- "picAddress": "東京都千代田区大手町2-3-1",
- "picAddressKana": "トウキョウトチヨダクオオテマチ2-3-1",
- "picPhoneNumber": "080-0000-0000",
- "picDateOfBirth": "2010-06-01",
- "picIdentificationDocumentType": "indivisualNumberCard",
- "picIdentificationNumber": "123456789012",
- "picIdentificationFrontDocumentId": "550e8400e29b41d4a716446655440000",
- "picIdentificationBackDocumentId": "550e8400e29b41d4a716446655440000",
- "picIdentificationAdditionalDocumentId": "550e8400e29b41d4a716446655440000",
- "picAuxiliaryIdentificationDocumentType": "utilityBillReceipt",
- "picAuxiliaryIdentificationDocumentId": "550e8400e29b41d4a716446655440000",
- "picEmployeeCode": "1234567",
- "picEmploymentDocumentType": "employeeIdCard",
- "picEmploymentDocumentId": "550e8400e29b41d4a716446655440000",
- "networkPinCode": "1234",
- "customerReceiptRequired": true,
- "callDetailDesired": true,
- "callDetailBreakdownSetting": "showAll",
- "callDetailDestinationNumberSetting": "showAll"
}, - "terminals": [
- {
- "customerNote": "東京支店ルーター",
- "breakOut": [
- "teams"
], - "breakOutDnsServers": [
- "192.0.2.1"
], - "deliveryName": "電報 太郎",
- "deliveryDepartmentName": "電報部電報課",
- "deliveryPostalCode": "100-0004",
- "deliveryAddress": "東京都千代田区大手町2-3-1",
- "deliveryPhoneNumber": "03-1234-5678",
- "deliveryAddressKana": "トウキョウトチヨダクオオテマチ2−3−1",
- "deliveryDate": "2023-04-01",
- "installationPostalCode": "100-0004",
- "installationAddress": "東京都千代田区大手町2-3-1",
- "primaryCircuitType": "ipoe",
- "secondaryCircuitType": "mobile",
- "ipoeId": "Z123456789",
- "vpnId": "V123456789",
- "loopbackIpv4Address": "10.0.0.1",
- "lans": [
- {
- "type": "primary",
- "ipv4Address": "192.168.0.1",
- "ipv4PrefixLength": "24",
- "vpnRouting": true,
- "vpnNats": [
- {
- "type": "nat",
- "innerIpv4Prefix": "192.168.0.0/24",
- "outerIpv4Prefix": "10.0.0.0/24"
}
]
}
], - "defaultGateway": {
- "nexthopNetwork": "internet",
- "nexthopIpv4Address": "192.168.0.254",
- "vpnRouting": false
}, - "dhcpServer": {
- "ipv4AddressRanges": [
- {
- "start": "192.168.0.101",
- "end": "192.168.0.200"
}
], - "domain": "example.com",
- "primaryDnsServer": "192.168.0.10",
- "secondaryDnsServer": "192.168.0.20",
- "primaryWinsServer": "192.168.0.30",
- "secondaryWinsServer": "192.168.0.40"
}, - "dhcpRelayServers": [
- {
- "serverIpv4Address": "192.168.0.10"
}
]
}
]
}
Response samples
- 202
{- "bulkOrderId": "62ec2b62646740b5809f695dea7b2bbf",
- "requestTime": "2023-12-01T00:00:00+00:00"
}
ルーター一括変更
ルーターリソースを一括変更するリクエストを実行するAPI
Request Body schema: application/json
terminalIds | Array of strings [ 1 .. 100 ] items 変更対象のルーターIDリスト |
vpnId | string Z[0-9]{9} 紐付いているVPNリソースID。SDPF-NWではリソースに対して大文字Zから始まる残り数字9桁の10桁の番号を付与する。Z番号と呼ぶ。 |
breakOut | Array of strings [ 1 .. 8 ] items ローカルブレイクアウトアプリケーション指定 特定アプリケーションをローカルブレイクアウトする場合に利用 defaultGatewayがvpnのとき、指定可能 breakOutListリソースでユーザ定義のリストを作成し、それを指定することも可能
|
breakOutDnsServers | Array of strings [ 1 .. 4 ] items ローカルブレイクアウト用のDNSサーバ指定 ローカルブレイクアウトを利用する場合指定必須 |
defaultGateway | object (TerminalDefaultGateway) デフォルトルート設定 |
wanStaticRoutes | Array of objects (TerminalWanStaticRoute) [ 0 .. 300 ] items |
vpnInFilters | object (TerminalUserFilter) |
vpnOutFilters | object (TerminalUserFilter) |
inet4OutFilters | object (TerminalUserFilter) |
dhcpServer | object DHCP サーバの設定 DHCP Server と DHCP Relay Server はどちらか一方のみ指定可。両方を指定した場合エラーとなる。 ルーター設定変更時に一方を指定した場合、もう一方の設定は削除される。 |
dhcpRelayServers | Array of objects (TerminalDhcpRelayServers) [ 1 .. 4 ] items DHCP リレーの設定 DHCP サーバー と DHCP リレーはどちらか一方のみ指定可。両方を指定した場合エラーとなる。 ルーター設定変更時に一方を指定した場合、もう一方の設定は削除される。 |
Responses
Accepted
Request samples
- Payload
{- "terminalIds": [
- "Z000000001",
- "Z000000002",
- "Z000000003"
], - "vpnId": "Z000000004",
- "breakOut": [
- "teams"
], - "breakOutDnsServers": [
- "192.0.2.1"
], - "defaultGateway": {
- "nexthopNetwork": "vpn"
}, - "wanStaticRoutes": [
- {
- "destinationIpv4Prefix": "1.1.1.1/32",
- "nexthopNetwork": "internet"
}
], - "vpnInFilters": {
- "defaultPolicy": "accept",
- "accessControlList": [
- {
- "sourceIpv4Prefix": "192.168.0.0/24",
- "destinationIpv4Prefix": "0.0.0.0/0",
- "sourcePort": "any",
- "destinationPort": "any",
- "protocol": "any",
- "action": "discard"
}
]
}, - "vpnOutFilters": {
- "defaultPolicy": "accept",
- "accessControlList": [
- {
- "sourceIpv4Prefix": "0.0.0.0/0",
- "destinationIpv4Prefix": "192.168.1.0/24",
- "sourcePort": "any",
- "destinationPort": "any",
- "protocol": "any",
- "action": "discard"
}
]
}, - "inet4OutFilters": {
- "defaultPolicy": "accept",
- "accessControlList": [
- {
- "sourceIpv4Prefix": "0.0.0.0/0",
- "destinationIpv4Prefix": "192.0.2.2/32",
- "sourcePort": "any",
- "destinationPort": "any",
- "protocol": "any",
- "action": "discard"
}
]
}, - "dhcpServer": {
- "primaryDnsServer": "192.168.0.10",
- "secondaryDnsServer": "192.168.0.20"
}
}
Response samples
- 202
{- "bulkOrderId": "62ec2b62646740b5809f695dea7b2bbf",
- "requestTime": "2023-12-01T00:00:00+00:00"
}
ルーター一括操作API
ルーターを操作するためのAPI
header Parameters
X-Auth-Token required | string ^[0-9a-f]{32}$ Example: dc03494823a841338430052e9ee95e07 クライアントが Keystone を利用して取得した認証 Token |
Request Body schema: application/json
request body
terminalIds required | Array of strings ルーターリソースID |
operation required | string Value: "breakOutListUpdate" オペレーション操作内容 |
Responses
Accepted
Bad Request
Unauthorized
Forbidden
Not Found
Internal Server Error
Request samples
- Payload
{- "terminalIds": [
- "Z123456789"
], - "operation": "breakOutListUpdate"
}
Response samples
- 202
{- "terminalIds": [
- "Z123456789"
], - "operation": "breakOutListUpdate",
- "requestTime": "2023-12-01T00:00:00+00:00"
}
Response samples
- 200
{- "terminals": [
- {
- "terminalId": "Z123456778",
- "operations": [
- {
- "operation": "reboot",
- "status": "processing",
- "requestTime": "2019-05-21T10:05:50+09:00"
}
]
}
]
}
ルーター一覧取得(ルーターID指定)
テナント内の特定のルーターIDのルーターリソースを参照するAPI
path Parameters
terminalId required | string |
header Parameters
X-Auth-Token required | string ^[0-9a-f]{32}$ Example: dc03494823a841338430052e9ee95e07 クライアントが Keystone を利用して取得した認証 Token |
Responses
responseBody
Bad Request
Unauthorized
Forbidden
Not Found
Internal Server Error
Response samples
- 200
{- "terminalId": "Z123456789",
- "ref": "/v1/terminals/Z000000001",
- "tenantId": "550e8400e29b41d4a716446655440000",
- "resourceStatus": "inactive",
- "orderId": "Z123456789",
- "orderStatus": "applied",
- "creationTime": "2019-05-21T10:05:48+09:00",
- "updateTime": "2019-05-21T10:05:48+09:00",
- "serviceStartTime": "2019-05-21T10:05:48+09:00",
- "customerNote": "東京支店ルーター",
- "defaultGateway": {
- "nexthopNetwork": "internet",
- "nexthopIpv4Address": "192.168.0.254",
- "vpnRouting": false
}, - "breakOut": [
- "teams"
], - "breakOutDnsServers": [
- "192.0.2.1"
], - "deliveryName": "電報 太郎",
- "deliveryDepartmentName": "電報部電報課",
- "deliveryPostalCode": "100-0004",
- "deliveryAddress": "東京都千代田区大手町2-3-1",
- "deliveryPhoneNumber": "03-1234-5678",
- "deliveryAddressKana": "トウキョウトチヨダクオオテマチ2−3−1",
- "deliveryDate": "2023-04-01",
- "removalName": "電報 太郎",
- "removalDepartmentName": "東京都千代田区大手町2-3-1",
- "removalPostalCode": "100-0004",
- "removalAddress": "東京都千代田区大手町2-3-1",
- "removalAddressKana": "東京都千代田区大手町2-3-1",
- "removalPhoneNumber": "03-1234-5678",
- "installationPostalCode": "100-0004",
- "installationAddress": "千代田区大手町2-3-1",
- "vpnId": "V123456789",
- "ipoeId": "Z123456789",
- "ipoeIpv4Address": "192.0.2.2/32",
- "mobileId": "Z123456789",
- "guarantee": {
- "guaranteeId": "Z123456789",
- "internet": {
- "globalIpAddress": "192.0.2.1",
- "act": {
- "connectedIpv4Prefix": "203.0.113.0/30",
- "peConnectedIPv4Address": "203.0.113.1/30",
- "cpeConnectedIpv4Address": "203.0.113.2/30",
- "vlan": 2000
}, - "sby": {
- "connectedIpv4Prefix": "203.0.113.4/30",
- "peConnectedIPv4Address": "203.0.113.5/30",
- "cpeConnectedIpv4Address": "203.0.113.6/30",
- "vlan": 2001
}
}, - "vpn": {
- "act": {
- "connectedIpv4Prefix": "192.0.2.8/30",
- "peConnectedIPv4Address": "192.0.2.9/30",
- "cpeConnectedIpv4Address": "192.0.2.10/30",
- "vlan": 2002
}, - "sby": {
- "connectedIpv4Prefix": "192.0.2.12/30",
- "peConnectedIPv4Address": "192.0.2.13/30",
- "cpeConnectedIpv4Address": "192.0.2.14/30",
- "vlan": 2003
}
}
}, - "loopbackIpv4Address": "10.0.0.1",
- "mobile": {
- "mobileId": "Z123456789",
- "msisdn": "090-0000-0000",
- "picName": "電報 太郎",
- "picNameKana": "デンポウ タロウ",
- "picPhoneNumber": "080-0000-0000",
- "customerReceiptRequired": true,
- "callDetailDesired": true,
- "callDetailBreakdownSetting": "showAll",
- "callDetailDestinationNumberSetting": "showAll",
- "rat": "auto"
}, - "terminalDevices": [
- {
- "model": "NXR-610X5G",
- "deviceAttribute": "active",
- "serialNumber": "12345678910",
- "firmwareVersion": {
- "displayName": "202411-01",
- "attribute": "latest"
}
}
], - "primaryCircuit": {
- "circuitType": "ipoe",
- "circuitId": "Z123456789",
- "ref": "/v1/ipoe/hikari-collabo/Z123456789"
}, - "secondaryCircuit": {
- "circuitType": "mobile",
- "circuitId": "Z123456789",
- "ref": "/v1/ipoe/hikari-collabo/Z123456789"
}, - "lans": [
- {
- "type": "primary",
- "ipv4Address": "192.168.0.1",
- "ipv4PrefixLength": "24",
- "vpnRouting": true,
- "vpnNats": [
- {
- "type": "nat",
- "innerIpv4Prefix": "192.168.0.0/24",
- "outerIpv4Prefix": "10.0.0.0/24"
}
]
}
], - "lanStaticRoutes": [
- {
- "destinationIpv4Prefix": "192.168.1.0/24",
- "nexthopIpv4Address": "192.168.0.254",
- "vpnRouting": true,
- "vpnNats": [
- {
- "type": "nat",
- "innerIpv4Prefix": "192.168.0.0/24",
- "outerIpv4Prefix": "10.0.0.0/24"
}
]
}
], - "wanStaticRoutes": [
- {
- "destinationIpv4Prefix": "1.1.1.1/32",
- "nexthopNetwork": "vpn"
}
], - "inet4OutFilters": {
- "defaultPolicy": "accept",
- "accessControlList": [
- {
- "sourceIpv4Prefix": "192.168.0.0/24",
- "destinationIpv4Prefix": "192.168.1.0/24",
- "sourcePort": "any",
- "destinationPort": "any",
- "protocol": "any",
- "action": "discard"
}
]
}, - "vpnInFilters": {
- "defaultPolicy": "accept",
- "accessControlList": [
- {
- "sourceIpv4Prefix": "192.168.0.0/24",
- "destinationIpv4Prefix": "192.168.1.0/24",
- "sourcePort": "any",
- "destinationPort": "any",
- "protocol": "any",
- "action": "discard"
}
]
}, - "vpnOutFilters": {
- "defaultPolicy": "accept",
- "accessControlList": [
- {
- "sourceIpv4Prefix": "192.168.0.0/24",
- "destinationIpv4Prefix": "192.168.1.0/24",
- "sourcePort": "any",
- "destinationPort": "any",
- "protocol": "any",
- "action": "discard"
}
]
}, - "dhcpServer": {
- "ipv4AddressRanges": [
- {
- "start": "192.168.0.101",
- "end": "192.168.0.200"
}
], - "domain": "example.com",
- "primaryDnsServer": "192.168.0.10",
- "secondaryDnsServer": "192.168.0.20",
- "primaryWinsServer": "192.168.0.30",
- "secondaryWinsServer": "192.168.0.40"
}, - "dhcpRelayServers": [
- {
- "serverIpv4Address": "192.168.0.10"
}
]
}
ルーター変更申込
テナント内の特定のルーターIDのルーターリソースを修正するAPI
path Parameters
terminalId required | string |
header Parameters
X-Auth-Token required | string ^[0-9a-f]{32}$ Example: dc03494823a841338430052e9ee95e07 クライアントが Keystone を利用して取得した認証 Token |
Request Body schema: application/json
request body
customerNote | string <= 64 characters ルーター名 (全角・半角・記号許容) |
breakOut | Array of strings [ 1 .. 8 ] items 特定通信ブレイクアウトを指定 特定アプリケーションをローカルブレイクアウトする場合に利用 ネクストホップネットワークがVPNのとき、指定可能 breakOutListリソースでユーザ定義のリストを作成し、それを指定することも可能
|
breakOutDnsServers | Array of strings [ 1 .. 4 ] items ローカルブレイクアウト用のDNSサーバ指定 ローカルブレイクアウトを利用する場合指定必須 |
installationPostalCode | string ^[0-9]{3}-[0-9]{4}$ 設置場所郵便番号 |
installationAddress | string 設置場所住所 |
primaryCircuitType | string Enum: "ipoe" "mobile" "guarantee" メインで利用している回線種別。ベストエフォートIPoE接続か、モバイル接続か、ギャランティ接続。 |
secondaryCircuitType | string Enum: "mobile" "ipoe"
|
ipoeId | string ^Z[0-9]{9}$ ベストエフォートIPoE接続ID。紐づけを解除する場合は null を入力する。 |
vpnId | string ^V[0-9]{9}$ VPN接続リソースID。docomo business RINKではVPN接続リソースに対して大文字Vから始まる残り数字9桁の10桁の番号を付与する。V番号と呼ぶ。紐づけを解除する場合は null を入力する。 |
guarantee | object (TerminalGuaranteeUpdate) ギャランティ接続関連の変更申込 |
loopbackIpv4Address | string ^((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])$ |
lans | Array of objects (TerminalLan) [ 1 .. 4 ] items |
defaultGateway | object (TerminalDefaultGateway) デフォルトルート設定 |
lanStaticRoutes | Array of objects (TerminalLanStaticRoute) [ 0 .. 30 ] items |
wanStaticRoutes | Array of objects (TerminalWanStaticRoute) [ 0 .. 300 ] items |
vpnInFilters | object (TerminalUserFilter) |
vpnOutFilters | object (TerminalUserFilter) |
inet4OutFilters | object (TerminalUserFilter) |
dhcpServer | object (TerminalDhcpServer) DHCP サーバーの設定 DHCP サーバーと DHCP リレーはどちらか一方のみ指定可。両方を指定した場合エラーとなる。 ルーター設定変更時に一方を指定した場合、もう一方の設定は削除される。 |
dhcpRelayServers | Array of objects (TerminalDhcpRelayServers) [ 1 .. 4 ] items DHCP リレーの設定 DHCP サーバー と DHCP リレーはどちらか一方のみ指定可。両方を指定した場合エラーとなる。 ルーター設定変更時に一方を指定した場合、もう一方の設定は削除される。 |
mobile | object (モバイル回線設定変更) 変更リクエストの body 文 |
Responses
Accepted
Bad Request
Unauthorized
Forbidden
Not Found
Internal Server Error
Request samples
- Payload
{- "customerNote": "東京支店ルーター",
- "breakOut": [
- "teams"
], - "breakOutDnsServers": [
- "192.0.2.1"
], - "installationPostalCode": "100-0004",
- "installationAddress": "東京都千代田区大手町2-3-1",
- "primaryCircuitType": "ipoe",
- "secondaryCircuitType": "mobile",
- "ipoeId": "Z123456789",
- "vpnId": "V123456789",
- "guarantee": {
- "guaranteeId": "Z123456789",
- "vpn": {
- "act": {
- "connectedIpv4Prefix": "192.0.2.8/30"
}, - "sby": {
- "connectedIpv4Prefix": "192.0.2.12/30"
}
}
}, - "loopbackIpv4Address": "10.0.0.1",
- "lans": [
- {
- "type": "primary",
- "ipv4Address": "192.168.0.1",
- "ipv4PrefixLength": "24",
- "vpnRouting": true,
- "vpnNats": [
- {
- "type": "nat",
- "innerIpv4Prefix": "192.168.0.0/24",
- "outerIpv4Prefix": "10.0.0.0/24"
}
]
}
], - "defaultGateway": {
- "nexthopNetwork": "internet",
- "nexthopIpv4Address": "192.168.0.254",
- "vpnRouting": false
}, - "lanStaticRoutes": [
- {
- "destinationIpv4Prefix": "192.168.1.0/24",
- "nexthopIpv4Address": "192.168.0.254",
- "vpnRouting": true,
- "vpnNats": [
- {
- "type": "nat",
- "innerIpv4Prefix": "192.168.0.0/24",
- "outerIpv4Prefix": "10.0.0.0/24"
}
]
}
], - "wanStaticRoutes": [
- {
- "destinationIpv4Prefix": "1.1.1.1/32",
- "nexthopNetwork": "vpn"
}
], - "vpnInFilters": {
- "defaultPolicy": "accept",
- "accessControlList": [
- {
- "sourceIpv4Prefix": "192.168.0.0/24",
- "destinationIpv4Prefix": "192.168.1.0/24",
- "sourcePort": "any",
- "destinationPort": "any",
- "protocol": "any",
- "action": "discard"
}
]
}, - "vpnOutFilters": {
- "defaultPolicy": "accept",
- "accessControlList": [
- {
- "sourceIpv4Prefix": "192.168.0.0/24",
- "destinationIpv4Prefix": "192.168.1.0/24",
- "sourcePort": "any",
- "destinationPort": "any",
- "protocol": "any",
- "action": "discard"
}
]
}, - "inet4OutFilters": {
- "defaultPolicy": "accept",
- "accessControlList": [
- {
- "sourceIpv4Prefix": "192.168.0.0/24",
- "destinationIpv4Prefix": "192.168.1.0/24",
- "sourcePort": "any",
- "destinationPort": "any",
- "protocol": "any",
- "action": "discard"
}
]
}, - "dhcpServer": {
- "ipv4AddressRanges": [
- {
- "start": "192.168.0.101",
- "end": "192.168.0.200"
}
], - "domain": "example.com",
- "primaryDnsServer": "192.168.0.10",
- "secondaryDnsServer": "192.168.0.20",
- "primaryWinsServer": "192.168.0.30",
- "secondaryWinsServer": "192.168.0.40"
}, - "dhcpRelayServers": [
- {
- "serverIpv4Address": "192.168.0.10"
}
], - "mobile": {
- "rat": "auto"
}
}
Response samples
- 202
{- "terminalId": "Z123456789",
- "ref": "/v1/terminals/Z000000001",
- "tenantId": "550e8400e29b41d4a716446655440000",
- "resourceStatus": "inactive",
- "orderId": "Z123456789",
- "orderStatus": "applied",
- "creationTime": "2019-05-21T10:05:48+09:00",
- "updateTime": "2019-05-21T10:05:48+09:00",
- "serviceStartTime": "2019-05-21T10:05:48+09:00",
- "customerNote": "東京支店ルーター",
- "defaultGateway": {
- "nexthopNetwork": "internet",
- "nexthopIpv4Address": "192.168.0.254",
- "vpnRouting": false
}, - "breakOut": [
- "teams"
], - "breakOutDnsServers": [
- "192.0.2.1"
], - "deliveryName": "電報 太郎",
- "deliveryDepartmentName": "電報部電報課",
- "deliveryPostalCode": "100-0004",
- "deliveryAddress": "東京都千代田区大手町2-3-1",
- "deliveryPhoneNumber": "03-1234-5678",
- "deliveryAddressKana": "トウキョウトチヨダクオオテマチ2−3−1",
- "deliveryDate": "2023-04-01",
- "removalName": "電報 太郎",
- "removalDepartmentName": "東京都千代田区大手町2-3-1",
- "removalPostalCode": "100-0004",
- "removalAddress": "東京都千代田区大手町2-3-1",
- "removalAddressKana": "東京都千代田区大手町2-3-1",
- "removalPhoneNumber": "03-1234-5678",
- "installationPostalCode": "100-0004",
- "installationAddress": "千代田区大手町2-3-1",
- "vpnId": "V123456789",
- "ipoeId": "Z123456789",
- "ipoeIpv4Address": "192.0.2.2/32",
- "mobileId": "Z123456789",
- "guarantee": {
- "guaranteeId": "Z123456789",
- "internet": {
- "globalIpAddress": "192.0.2.1",
- "act": {
- "connectedIpv4Prefix": "203.0.113.0/30",
- "peConnectedIPv4Address": "203.0.113.1/30",
- "cpeConnectedIpv4Address": "203.0.113.2/30",
- "vlan": 2000
}, - "sby": {
- "connectedIpv4Prefix": "203.0.113.4/30",
- "peConnectedIPv4Address": "203.0.113.5/30",
- "cpeConnectedIpv4Address": "203.0.113.6/30",
- "vlan": 2001
}
}, - "vpn": {
- "act": {
- "connectedIpv4Prefix": "192.0.2.8/30",
- "peConnectedIPv4Address": "192.0.2.9/30",
- "cpeConnectedIpv4Address": "192.0.2.10/30",
- "vlan": 2002
}, - "sby": {
- "connectedIpv4Prefix": "192.0.2.12/30",
- "peConnectedIPv4Address": "192.0.2.13/30",
- "cpeConnectedIpv4Address": "192.0.2.14/30",
- "vlan": 2003
}
}
}, - "loopbackIpv4Address": "10.0.0.1",
- "mobile": {
- "mobileId": "Z123456789",
- "msisdn": "090-0000-0000",
- "picName": "電報 太郎",
- "picNameKana": "デンポウ タロウ",
- "picPhoneNumber": "080-0000-0000",
- "customerReceiptRequired": true,
- "callDetailDesired": true,
- "callDetailBreakdownSetting": "showAll",
- "callDetailDestinationNumberSetting": "showAll",
- "rat": "auto"
}, - "terminalDevices": [
- {
- "model": "NXR-610X5G",
- "deviceAttribute": "active",
- "serialNumber": "12345678910",
- "firmwareVersion": {
- "displayName": "202411-01",
- "attribute": "latest"
}
}
], - "primaryCircuit": {
- "circuitType": "ipoe",
- "circuitId": "Z123456789",
- "ref": "/v1/ipoe/hikari-collabo/Z123456789"
}, - "secondaryCircuit": {
- "circuitType": "mobile",
- "circuitId": "Z123456789",
- "ref": "/v1/ipoe/hikari-collabo/Z123456789"
}, - "lans": [
- {
- "type": "primary",
- "ipv4Address": "192.168.0.1",
- "ipv4PrefixLength": "24",
- "vpnRouting": true,
- "vpnNats": [
- {
- "type": "nat",
- "innerIpv4Prefix": "192.168.0.0/24",
- "outerIpv4Prefix": "10.0.0.0/24"
}
]
}
], - "lanStaticRoutes": [
- {
- "destinationIpv4Prefix": "192.168.1.0/24",
- "nexthopIpv4Address": "192.168.0.254",
- "vpnRouting": true,
- "vpnNats": [
- {
- "type": "nat",
- "innerIpv4Prefix": "192.168.0.0/24",
- "outerIpv4Prefix": "10.0.0.0/24"
}
]
}
], - "wanStaticRoutes": [
- {
- "destinationIpv4Prefix": "1.1.1.1/32",
- "nexthopNetwork": "vpn"
}
], - "inet4OutFilters": {
- "defaultPolicy": "accept",
- "accessControlList": [
- {
- "sourceIpv4Prefix": "192.168.0.0/24",
- "destinationIpv4Prefix": "192.168.1.0/24",
- "sourcePort": "any",
- "destinationPort": "any",
- "protocol": "any",
- "action": "discard"
}
]
}, - "vpnInFilters": {
- "defaultPolicy": "accept",
- "accessControlList": [
- {
- "sourceIpv4Prefix": "192.168.0.0/24",
- "destinationIpv4Prefix": "192.168.1.0/24",
- "sourcePort": "any",
- "destinationPort": "any",
- "protocol": "any",
- "action": "discard"
}
]
}, - "vpnOutFilters": {
- "defaultPolicy": "accept",
- "accessControlList": [
- {
- "sourceIpv4Prefix": "192.168.0.0/24",
- "destinationIpv4Prefix": "192.168.1.0/24",
- "sourcePort": "any",
- "destinationPort": "any",
- "protocol": "any",
- "action": "discard"
}
]
}, - "dhcpServer": {
- "ipv4AddressRanges": [
- {
- "start": "192.168.0.101",
- "end": "192.168.0.200"
}
], - "domain": "example.com",
- "primaryDnsServer": "192.168.0.10",
- "secondaryDnsServer": "192.168.0.20",
- "primaryWinsServer": "192.168.0.30",
- "secondaryWinsServer": "192.168.0.40"
}, - "dhcpRelayServers": [
- {
- "serverIpv4Address": "192.168.0.10"
}
]
}
ルーター廃止
テナント内の特定のルーターIDのルーターリソースを削除するAPI
path Parameters
terminalId required | string |
header Parameters
X-Auth-Token required | string ^[0-9a-f]{32}$ Example: dc03494823a841338430052e9ee95e07 クライアントが Keystone を利用して取得した認証 Token |
Request Body schema: application/json
removalName required | string 返却キット送付先 担当者名 |
removalDepartmentName required | string 返却キット送付先 部課名 |
removalPostalCode required | string ^[0-9]{3}-[0-9]{4}$ 返却キット送付先 郵便番号 |
removalAddress required | string 返却キット送付先 住所カナ |
removalAddressKana required | string 返却キット送付先 住所 |
removalPhoneNumber required | string ^0[5789]0-[0-9]{4}-[0-9]{4}$|^0([0-9]-[0-9]{4}|[0-9]{2}-[0-9]{3}|[0-9]{3}-[0-9]{2}|[0-9]{4}-[0-9])-[0-9]{4}$ 返却キット送付先 電話番号 |
mobile | object (モバイル回線廃止) 廃止リクエストの body 文 |
Responses
Accepted
Bad Request
Unauthorized
Forbidden
Not Found
Internal Server Error
Request samples
- Payload
{- "removalName": "電報 太郎",
- "removalDepartmentName": "電報 太郎",
- "removalPostalCode": "100-0004",
- "removalAddress": "トウキョウトチヨダクオオテマチ2-3-1",
- "removalAddressKana": "東京都千代田区大手町2-3-1",
- "removalPhoneNumber": "03-1234-5678",
- "mobile": {
- "japanCorporateNumber": "1234567890123",
- "contractIdentificationDocumentType": "sealCertificate",
- "contractIdentificationDocumentId": "550e8400e29b41d4a716446655440000",
- "picName": "電報 太郎",
- "picNameKana": "デンポウ タロウ",
- "picPostalCode": "100-0004",
- "picAddress": "東京都千代田区大手町2-3-1",
- "picAddressKana": "トウキョウトチヨダクオオテマチ2-3-1",
- "picPhoneNumber": "080-0000-0000",
- "picDateOfBirth": "2010-06-01",
- "picIdentificationDocumentType": "indivisualNumberCard",
- "picIdentificationNumber": "123456789012",
- "picIdentificationFrontDocumentId": "550e8400e29b41d4a716446655440000",
- "picIdentificationBackDocumentId": "550e8400e29b41d4a716446655440000",
- "picIdentificationAdditionalDocumentId": "550e8400e29b41d4a716446655440000",
- "picAuxiliaryIdentificationDocumentType": "utilityBillReceipt",
- "picAuxiliaryIdentificationDocumentId": "550e8400e29b41d4a716446655440000",
- "picEmployeeCode": "1234567",
- "picEmploymentDocumentType": "employeeIdCard",
- "picEmploymentDocumentId": "550e8400e29b41d4a716446655440000"
}
}
Response samples
- 202
{- "terminalId": "Z123456789",
- "ref": "/v1/terminals/Z000000001",
- "tenantId": "550e8400e29b41d4a716446655440000",
- "resourceStatus": "inactive",
- "orderId": "Z123456789",
- "orderStatus": "applied",
- "creationTime": "2019-05-21T10:05:48+09:00",
- "updateTime": "2019-05-21T10:05:48+09:00",
- "serviceStartTime": "2019-05-21T10:05:48+09:00",
- "customerNote": "東京支店ルーター",
- "defaultGateway": {
- "nexthopNetwork": "internet",
- "nexthopIpv4Address": "192.168.0.254",
- "vpnRouting": false
}, - "breakOut": [
- "teams"
], - "breakOutDnsServers": [
- "192.0.2.1"
], - "deliveryName": "電報 太郎",
- "deliveryDepartmentName": "電報部電報課",
- "deliveryPostalCode": "100-0004",
- "deliveryAddress": "東京都千代田区大手町2-3-1",
- "deliveryPhoneNumber": "03-1234-5678",
- "deliveryAddressKana": "トウキョウトチヨダクオオテマチ2−3−1",
- "deliveryDate": "2023-04-01",
- "removalName": "電報 太郎",
- "removalDepartmentName": "東京都千代田区大手町2-3-1",
- "removalPostalCode": "100-0004",
- "removalAddress": "東京都千代田区大手町2-3-1",
- "removalAddressKana": "東京都千代田区大手町2-3-1",
- "removalPhoneNumber": "03-1234-5678",
- "installationPostalCode": "100-0004",
- "installationAddress": "千代田区大手町2-3-1",
- "vpnId": "V123456789",
- "ipoeId": "Z123456789",
- "ipoeIpv4Address": "192.0.2.2/32",
- "mobileId": "Z123456789",
- "guarantee": {
- "guaranteeId": "Z123456789",
- "internet": {
- "globalIpAddress": "192.0.2.1",
- "act": {
- "connectedIpv4Prefix": "203.0.113.0/30",
- "peConnectedIPv4Address": "203.0.113.1/30",
- "cpeConnectedIpv4Address": "203.0.113.2/30",
- "vlan": 2000
}, - "sby": {
- "connectedIpv4Prefix": "203.0.113.4/30",
- "peConnectedIPv4Address": "203.0.113.5/30",
- "cpeConnectedIpv4Address": "203.0.113.6/30",
- "vlan": 2001
}
}, - "vpn": {
- "act": {
- "connectedIpv4Prefix": "192.0.2.8/30",
- "peConnectedIPv4Address": "192.0.2.9/30",
- "cpeConnectedIpv4Address": "192.0.2.10/30",
- "vlan": 2002
}, - "sby": {
- "connectedIpv4Prefix": "192.0.2.12/30",
- "peConnectedIPv4Address": "192.0.2.13/30",
- "cpeConnectedIpv4Address": "192.0.2.14/30",
- "vlan": 2003
}
}
}, - "loopbackIpv4Address": "10.0.0.1",
- "mobile": {
- "mobileId": "Z123456789",
- "msisdn": "090-0000-0000",
- "picName": "電報 太郎",
- "picNameKana": "デンポウ タロウ",
- "picPhoneNumber": "080-0000-0000",
- "customerReceiptRequired": true,
- "callDetailDesired": true,
- "callDetailBreakdownSetting": "showAll",
- "callDetailDestinationNumberSetting": "showAll",
- "rat": "auto"
}, - "terminalDevices": [
- {
- "model": "NXR-610X5G",
- "deviceAttribute": "active",
- "serialNumber": "12345678910",
- "firmwareVersion": {
- "displayName": "202411-01",
- "attribute": "latest"
}
}
], - "primaryCircuit": {
- "circuitType": "ipoe",
- "circuitId": "Z123456789",
- "ref": "/v1/ipoe/hikari-collabo/Z123456789"
}, - "secondaryCircuit": {
- "circuitType": "mobile",
- "circuitId": "Z123456789",
- "ref": "/v1/ipoe/hikari-collabo/Z123456789"
}, - "lans": [
- {
- "type": "primary",
- "ipv4Address": "192.168.0.1",
- "ipv4PrefixLength": "24",
- "vpnRouting": true,
- "vpnNats": [
- {
- "type": "nat",
- "innerIpv4Prefix": "192.168.0.0/24",
- "outerIpv4Prefix": "10.0.0.0/24"
}
]
}
], - "lanStaticRoutes": [
- {
- "destinationIpv4Prefix": "192.168.1.0/24",
- "nexthopIpv4Address": "192.168.0.254",
- "vpnRouting": true,
- "vpnNats": [
- {
- "type": "nat",
- "innerIpv4Prefix": "192.168.0.0/24",
- "outerIpv4Prefix": "10.0.0.0/24"
}
]
}
], - "wanStaticRoutes": [
- {
- "destinationIpv4Prefix": "1.1.1.1/32",
- "nexthopNetwork": "vpn"
}
], - "inet4OutFilters": {
- "defaultPolicy": "accept",
- "accessControlList": [
- {
- "sourceIpv4Prefix": "192.168.0.0/24",
- "destinationIpv4Prefix": "192.168.1.0/24",
- "sourcePort": "any",
- "destinationPort": "any",
- "protocol": "any",
- "action": "discard"
}
]
}, - "vpnInFilters": {
- "defaultPolicy": "accept",
- "accessControlList": [
- {
- "sourceIpv4Prefix": "192.168.0.0/24",
- "destinationIpv4Prefix": "192.168.1.0/24",
- "sourcePort": "any",
- "destinationPort": "any",
- "protocol": "any",
- "action": "discard"
}
]
}, - "vpnOutFilters": {
- "defaultPolicy": "accept",
- "accessControlList": [
- {
- "sourceIpv4Prefix": "192.168.0.0/24",
- "destinationIpv4Prefix": "192.168.1.0/24",
- "sourcePort": "any",
- "destinationPort": "any",
- "protocol": "any",
- "action": "discard"
}
]
}, - "dhcpServer": {
- "ipv4AddressRanges": [
- {
- "start": "192.168.0.101",
- "end": "192.168.0.200"
}
], - "domain": "example.com",
- "primaryDnsServer": "192.168.0.10",
- "secondaryDnsServer": "192.168.0.20",
- "primaryWinsServer": "192.168.0.30",
- "secondaryWinsServer": "192.168.0.40"
}, - "dhcpRelayServers": [
- {
- "serverIpv4Address": "192.168.0.10"
}
]
}
ルーター操作API
ルーターを操作するためのAPI
path Parameters
terminalId required | string |
header Parameters
X-Auth-Token | string クライアントが Keystone を利用して取得した認証 Token |
Request Body schema: application/json
operation required | string Enum: "reboot" "firmwareUpdate" "firmwareUpdateNoReboot" "breakOutListUpdate" オペレーション操作内容 |
Responses
Accepted
Bad Request
Unauthorized
Forbidden
Not Found
Internal Server Error
Request samples
- Payload
{- "operation": "reboot"
}
Response samples
- 202
{- "operation": "firmwareUpdate",
- "status": "processing",
- "requestTime": "2019-05-21T10:05:50+09:00"
}
ルーター操作状況取得API
最新のルーター操作の状況を取得するAPI
path Parameters
terminalId required | string |
query Parameters
operation | string Enum: "reboot" "firmwareUpdate" "firmwareUpdateNoReboot" "breakOutListUpdate" ルーター操作種別。reboot, firmwareUpdate, firmwareUpdateNoReboot, breakOutListUpdate から選択。選択無しの場合は全ての status を返す |
header Parameters
X-Auth-Token | string クライアントが Keystone を利用して取得した認証 Token |
Responses
OK
Bad Request
Unauthorized
Forbidden
Not Found
Internal Server Error
Response samples
- 200
{- "operations": [
- {
- "operation": "reboot",
- "status": "processing",
- "requestTime": "2019-05-21T10:05:50+09:00"
}, - {
- "operation": "firmwareUpdate",
- "status": "completed",
- "requestTime": "2019-05-20T10:05:50+09:00"
}, - {
- "operation": "firmwareUpdateNoReboot",
- "status": "completed",
- "requestTime": "2019-05-20T10:05:50+09:00"
}, - {
- "operation": "breakOutListUpdate",
- "status": "processing",
- "requestTime": "2019-05-19T10:05:50+09:00"
}
]
}