Download OpenAPI specification:Download
「サービスエンドポイントゲートウェイ」が提供するAPIの利用方法とサンプルを公開しております。
APIを利用するためには、認証のための「APIキー」が必要です。事前にキーを発行しておきます。 APIキーは「ユーザID」「パスワード」に相当する「トークン」と呼ばれる認証情報で構成されています。
| 項目名 | APIキー発行時の項目名 | このドキュメント内での例 |
|---|---|---|
| ユーザID | アクセストークン(UUID) | 01234567-89ab-cdef-0123-456789abcdef |
| パスワード | アクセストークンシークレット | SAMPLETOKENSAMPLETOKENSAMPLETOKENSAM |
APIの入力には送信先URLに対して、いくつかのヘッダーとAPIキーを送信します。
# 入力サンプル
curl \
-u '01234567-89ab-cdef-0123-456789abcdef:SAMPLETOKENSAMPLETOKENSAMPLETOKENSAM' \
-X GET \
'https://secure.sakura.ad.jp/cloud/zone/tk1a/api/cloud/1.1/appliances'
指定したサービスエンドポイントゲートウェイのインターフェース情報を取得します。
| applianceID required | string |
| interfaceID required | string |
{- "Interface": {
- "IPAddress": "203.0.113.100",
- "UserIPAddress": null,
- "Switch": {
- "Scope": "shared"
}
}, - "is_ok": true
}{- "From": 0,
- "Count": 1,
- "Total": 1,
- "Appliances": [
- {
- "ID": "123456789012",
- "Class": "serviceendpointgateway",
- "Name": "Service Endpoint Gateway (123456789012)",
- "Description": "",
- "Plan": {
- "ID": 1
}, - "Settings": {
- "ServiceEndpointGateway": {
- "EnabledServices": [
- {
- "Type": "ObjectStorage",
- "Config": {
- "Endpoints": [
- "s3.isk01.sakurastorage.jp"
]
}
}, - {
- "Type": "AppRunDedicatedControlPlane",
- "Config": {
- "Mode": "Managed"
}
}
], - "MonitoringSuite": {
- "Enabled": "True"
}, - "DNSForwarding": {
- "Enabled": "True",
- "PrivateHostedZone": "internal.example.com",
- "UpstreamDNS1": "ns1.gslbN.sakura.ne.jp",
- "UpstreamDNS2": "ns2.gslbN.sakura.ne.jp"
}
}
}, - "SettingsHash": "abcdef1234567890abcdef1234567890",
- "Remark": {
- "Switch": {
- "ID": "123456789012"
}, - "Network": {
- "NetworkMaskLen": 24
}, - "Servers": [
- {
- "IPAddress": "192.0.2.15"
}
], - "Zone": {
- "ID": "21001"
}
}, - "Availability": "available",
- "Instance": {
- "Status": "up",
- "StatusChangedAt": "2024-01-01T00:00:00+09:00",
- "Host": {
- "Name": "sac-tk1a-sv001",
- "InfoURL": ""
}, - "Hosts": [
- {
- "Name": "sac-tk1a-sv001",
- "InfoURL": ""
}
]
}, - "Disk": {
- "EncryptionAlgorithm": "none",
- "EncryptionKey": null,
- "DedicatedStorageContract": null
}, - "ServiceClass": "cloud/appliance/serviceendpointgateway/1",
- "Generation": 100,
- "CreatedAt": "2024-01-01T00:00:00+09:00",
- "Icon": null,
- "Switch": {
- "ID": "123456789012",
- "Name": "Switch1",
- "Internet": null,
- "Scope": "user",
- "Availability": "available",
- "Zone": {
- "ID": 21001,
- "Name": "tk1a",
- "Region": {
- "ID": 210,
- "Name": "東京"
}
}
}, - "Interfaces": [
- {
- "IPAddress": "203.0.113.100",
- "UserIPAddress": null,
- "HostName": null,
- "Switch": {
- "ID": "123456789012",
- "Name": "Switch",
- "Scope": "shared",
- "Subnet": {
- "NetworkAddress": "203.0.113.0",
- "NetworkMaskLen": 24,
- "DefaultRoute": "203.0.113.1",
- "Internet": {
- "BandWidthMbps": 100
}
}, - "UserSubnet": {
- "DefaultRoute": "203.0.113.1",
- "NetworkMaskLen": 24
}
}
}, - {
- "IPAddress": null,
- "UserIPAddress": "192.0.2.15",
- "HostName": null,
- "Switch": {
- "ID": "123456789012",
- "Name": "SwitchForSEG",
- "Scope": "user",
- "Subnet": null,
- "UserSubnet": {
- "DefaultRoute": "192.0.2.1",
- "NetworkMaskLen": 24
}
}
}
], - "Tags": [ ]
}
], - "is_ok": true
}指定したサービスエンドポイントゲートウェイを作成します。
required | object (Models.Appliance.ApplianceCreateBody) |
{- "Appliance": {
- "Class": "serviceendpointgateway",
- "Plan": {
- "ID": 1
}, - "Remark": {
- "Switch": {
- "ID": "123456789012"
}, - "Network": {
- "NetworkMaskLen": 24
}, - "Servers": [
- {
- "IPAddress": "192.0.2.15"
}
]
}
}
}{- "Appliance": {
- "ID": "123456789012",
- "Class": "serviceendpointgateway",
- "Name": "Service Endpoint Gateway (123456789012)",
- "Description": "",
- "Plan": {
- "ID": 1
}, - "Settings": null,
- "SettingsHash": null,
- "Remark": {
- "Switch": {
- "ID": "123456789012"
}, - "Network": {
- "NetworkMaskLen": 24
}, - "Servers": [
- {
- "IPAddress": "192.0.2.15"
}
], - "Zone": {
- "ID": "21001"
}
}, - "Availability": "migrating",
- "Instance": {
- "Status": null,
- "StatusChangedAt": null,
- "Host": {
- "Name": null,
- "InfoURL": null
}, - "Hosts": [ ]
}, - "Disk": {
- "EncryptionAlgorithm": null,
- "EncryptionKey": {
- "KMSKeyID": null
}, - "DedicatedStorageContract": {
- "ID": null
}
}, - "ServiceClass": "cloud/appliance/serviceendpointgateway/1",
- "Generation": 100,
- "CreatedAt": "2026-02-09T23:40:29+09:00",
- "Icon": null,
- "Switch": {
- "ID": "123456789012",
- "Name": "Switch",
- "Internet": {
- "BandWidthMbps": null
}, - "Scope": "user",
- "Availability": "available",
- "Zone": {
- "ID": 21001,
- "Name": "tk1a",
- "Region": {
- "ID": 210,
- "Name": "東京"
}
}
}, - "Interfaces": [ ],
- "Tags": [ ]
}, - "is_ok": true
}指定したサービスエンドポイントゲートウェイの情報を取得します。
| applianceID required | string |
{- "Appliance": {
- "ID": "123456789012",
- "Class": "serviceendpointgateway",
- "Name": "Service Endpoint Gateway (123456789012)",
- "Description": "",
- "Plan": {
- "ID": 1
}, - "Settings": {
- "ServiceEndpointGateway": {
- "EnabledServices": [
- {
- "Type": "ObjectStorage",
- "Config": {
- "Endpoints": [
- "s3.isk01.sakurastorage.jp"
]
}
}, - {
- "Type": "AppRunDedicatedControlPlane",
- "Config": {
- "Mode": "Managed"
}
}
], - "MonitoringSuite": {
- "Enabled": "True"
}, - "DNSForwarding": {
- "Enabled": "True",
- "PrivateHostedZone": "internal.example.com",
- "UpstreamDNS1": "ns1.gslbN.sakura.ne.jp",
- "UpstreamDNS2": "ns2.gslbN.sakura.ne.jp"
}
}
}, - "SettingsHash": "abcdef1234567890abcdef1234567890",
- "Remark": {
- "Switch": {
- "ID": "123456789012"
}, - "Network": {
- "NetworkMaskLen": 24
}, - "Servers": [
- {
- "IPAddress": "192.0.2.15"
}
], - "Zone": {
- "ID": "21001"
}
}, - "Availability": "available",
- "Instance": {
- "Status": "up",
- "StatusChangedAt": "2024-01-01T00:00:00+09:00",
- "Host": {
- "Name": "sac-tk1a-sv001",
- "InfoURL": ""
}, - "Hosts": [
- {
- "Name": "sac-tk1a-sv001",
- "InfoURL": ""
}
]
}, - "Disk": {
- "EncryptionAlgorithm": "none",
- "EncryptionKey": null,
- "DedicatedStorageContract": null
}, - "ServiceClass": "cloud/appliance/serviceendpointgateway/1",
- "Generation": 100,
- "CreatedAt": "2024-01-01T00:00:00+09:00",
- "Icon": null,
- "Switch": {
- "ID": "123456789012",
- "Name": "Switch1",
- "Internet": null,
- "Scope": "user",
- "Availability": "available",
- "Zone": {
- "ID": 21001,
- "Name": "tk1a",
- "Region": {
- "ID": 210,
- "Name": "東京"
}
}
}, - "Interfaces": [
- {
- "IPAddress": "203.0.113.100",
- "UserIPAddress": null,
- "HostName": null,
- "Switch": {
- "ID": "123456789012",
- "Name": "Switch",
- "Scope": "shared",
- "Subnet": {
- "NetworkAddress": "203.0.113.0",
- "NetworkMaskLen": 24,
- "DefaultRoute": "203.0.113.1",
- "Internet": {
- "BandWidthMbps": 100
}
}, - "UserSubnet": {
- "DefaultRoute": "203.0.113.1",
- "NetworkMaskLen": 24
}
}
}, - {
- "IPAddress": null,
- "UserIPAddress": "192.0.2.15",
- "HostName": null,
- "Switch": {
- "ID": "123456789012",
- "Name": "SwitchForSEG",
- "Scope": "user",
- "Subnet": null,
- "UserSubnet": {
- "DefaultRoute": "192.0.2.1",
- "NetworkMaskLen": 24
}
}
}
], - "Tags": [ ]
}, - "is_ok": true
}指定したサービスエンドポイントゲートウェイの情報を更新します。
更新後には、別途「サービスエンドポイントゲートウェイ適用API」を呼び出して設定を反映する必要があります。
| applianceID required | string |
required | object (Models.Appliance.ApplianceUpdateBody) |
{- "Appliance": {
- "Settings": {
- "ServiceEndpointGateway": {
- "EnabledServices": [
- {
- "Type": "ObjectStorage",
- "Config": {
- "Endpoints": [
- "s3.isk01.sakurastorage.jp"
]
}
}, - {
- "Type": "AppRunDedicatedControlPlane",
- "Config": {
- "Mode": "Managed"
}
}
], - "MonitoringSuite": {
- "Enabled": "True"
}, - "DNSForwarding": {
- "Enabled": "True",
- "PrivateHostedZone": "internal.example.com",
- "UpstreamDNS1": "ns1.gslbN.sakura.ne.jp",
- "UpstreamDNS2": "ns2.gslbN.sakura.ne.jp"
}
}
}
}
}{- "Appliance": {
- "ID": "123456789012",
- "Class": "serviceendpointgateway",
- "Name": "Service Endpoint Gateway (123456789012)",
- "Description": "",
- "Plan": {
- "ID": 1
}, - "Settings": {
- "ServiceEndpointGateway": {
- "EnabledServices": [
- {
- "Type": "ObjectStorage",
- "Config": {
- "Endpoints": [
- "s3.isk01.sakurastorage.jp"
]
}
}, - {
- "Type": "AppRunDedicatedControlPlane",
- "Config": {
- "Mode": "Managed"
}
}
], - "MonitoringSuite": {
- "Enabled": "True"
}, - "DNSForwarding": {
- "Enabled": "True",
- "PrivateHostedZone": "internal.example.com",
- "UpstreamDNS1": "ns1.gslbN.sakura.ne.jp",
- "UpstreamDNS2": "ns2.gslbN.sakura.ne.jp"
}
}
}, - "SettingsHash": "abcdef1234567890abcdef1234567890",
- "Remark": {
- "Switch": {
- "ID": "123456789012"
}, - "Network": {
- "NetworkMaskLen": 24
}, - "Servers": [
- {
- "IPAddress": "192.0.2.15"
}
], - "Zone": {
- "ID": "21001"
}
}, - "Availability": "available",
- "Instance": {
- "Status": "up",
- "StatusChangedAt": "2024-01-01T00:00:00+09:00",
- "Host": {
- "Name": "sac-tk1a-sv001",
- "InfoURL": ""
}, - "Hosts": [
- {
- "Name": "sac-tk1a-sv001",
- "InfoURL": ""
}
]
}, - "Disk": {
- "EncryptionAlgorithm": "none",
- "EncryptionKey": null,
- "DedicatedStorageContract": null
}, - "ServiceClass": "cloud/appliance/serviceendpointgateway/1",
- "Generation": 100,
- "CreatedAt": "2024-01-01T00:00:00+09:00",
- "Icon": null,
- "Switch": {
- "ID": "123456789012",
- "Name": "Switch1",
- "Internet": null,
- "Scope": "user",
- "Availability": "available",
- "Zone": {
- "ID": 21001,
- "Name": "tk1a",
- "Region": {
- "ID": 210,
- "Name": "東京"
}
}
}, - "Interfaces": [
- {
- "IPAddress": "203.0.113.100",
- "UserIPAddress": null,
- "HostName": null,
- "Switch": {
- "ID": "123456789012",
- "Name": "Switch",
- "Scope": "shared",
- "Subnet": {
- "NetworkAddress": "203.0.113.0",
- "NetworkMaskLen": 24,
- "DefaultRoute": "203.0.113.1",
- "Internet": {
- "BandWidthMbps": 100
}
}, - "UserSubnet": {
- "DefaultRoute": "203.0.113.1",
- "NetworkMaskLen": 24
}
}
}, - {
- "IPAddress": null,
- "UserIPAddress": "192.0.2.15",
- "HostName": null,
- "Switch": {
- "ID": "123456789012",
- "Name": "SwitchForSEG",
- "Scope": "user",
- "Subnet": null,
- "UserSubnet": {
- "DefaultRoute": "192.0.2.1",
- "NetworkMaskLen": 24
}
}
}
], - "Tags": [ ]
}, - "is_ok": true
}指定したサービスエンドポイントゲートウェイを削除します。
| applianceID required | string |
{- "Appliance": {
- "ID": "123456789012",
- "Class": "serviceendpointgateway",
- "Name": "Service Endpoint Gateway (123456789012)",
- "Description": "",
- "Plan": {
- "ID": 1
}, - "Settings": {
- "ServiceEndpointGateway": {
- "EnabledServices": [
- {
- "Type": "ObjectStorage",
- "Config": {
- "Endpoints": [
- "s3.isk01.sakurastorage.jp"
]
}
}, - {
- "Type": "AppRunDedicatedControlPlane",
- "Config": {
- "Mode": "Managed"
}
}
], - "MonitoringSuite": {
- "Enabled": "True"
}, - "DNSForwarding": {
- "Enabled": "True",
- "PrivateHostedZone": "internal.example.com",
- "UpstreamDNS1": "ns1.gslbN.sakura.ne.jp",
- "UpstreamDNS2": "ns2.gslbN.sakura.ne.jp"
}
}
}, - "SettingsHash": "abcdef1234567890abcdef1234567890",
- "Remark": {
- "Switch": {
- "ID": "123456789012"
}, - "Network": {
- "NetworkMaskLen": 24
}, - "Servers": [
- {
- "IPAddress": "192.0.2.15"
}
], - "Zone": {
- "ID": "21001"
}
}, - "Availability": "available",
- "Instance": {
- "Status": "up",
- "StatusChangedAt": "2024-01-01T00:00:00+09:00",
- "Host": {
- "Name": "sac-tk1a-sv001",
- "InfoURL": ""
}, - "Hosts": [
- {
- "Name": "sac-tk1a-sv001",
- "InfoURL": ""
}
]
}, - "Disk": {
- "EncryptionAlgorithm": "none",
- "EncryptionKey": null,
- "DedicatedStorageContract": null
}, - "ServiceClass": "cloud/appliance/serviceendpointgateway/1",
- "Generation": 100,
- "CreatedAt": "2024-01-01T00:00:00+09:00",
- "Icon": null,
- "Switch": {
- "ID": "123456789012",
- "Name": "Switch1",
- "Internet": null,
- "Scope": "user",
- "Availability": "available",
- "Zone": {
- "ID": 21001,
- "Name": "tk1a",
- "Region": {
- "ID": 210,
- "Name": "東京"
}
}
}, - "Interfaces": [
- {
- "IPAddress": "203.0.113.100",
- "UserIPAddress": null,
- "HostName": null,
- "Switch": {
- "ID": "123456789012",
- "Name": "Switch",
- "Scope": "shared",
- "Subnet": {
- "NetworkAddress": "203.0.113.0",
- "NetworkMaskLen": 24,
- "DefaultRoute": "203.0.113.1",
- "Internet": {
- "BandWidthMbps": 100
}
}, - "UserSubnet": {
- "DefaultRoute": "203.0.113.1",
- "NetworkMaskLen": 24
}
}
}, - {
- "IPAddress": null,
- "UserIPAddress": "192.0.2.15",
- "HostName": null,
- "Switch": {
- "ID": "123456789012",
- "Name": "SwitchForSEG",
- "Scope": "user",
- "Subnet": null,
- "UserSubnet": {
- "DefaultRoute": "192.0.2.1",
- "NetworkMaskLen": 24
}
}
}
], - "Tags": [ ]
}, - "is_ok": true
}指定したサービスエンドポイントゲートウェイの情報を適用します。
| applianceID required | string |
required | object (Models.Appliance.ApplianceUpdateBody) |
{- "Appliance": {
- "Settings": {
- "ServiceEndpointGateway": {
- "EnabledServices": [
- {
- "Type": "ObjectStorage",
- "Config": {
- "Endpoints": [
- "s3.isk01.sakurastorage.jp"
]
}
}, - {
- "Type": "AppRunDedicatedControlPlane",
- "Config": {
- "Mode": "Managed"
}
}
], - "MonitoringSuite": {
- "Enabled": "True"
}, - "DNSForwarding": {
- "Enabled": "True",
- "PrivateHostedZone": "internal.example.com",
- "UpstreamDNS1": "ns1.gslbN.sakura.ne.jp",
- "UpstreamDNS2": "ns2.gslbN.sakura.ne.jp"
}
}
}
}
}{- "Appliance": {
- "ID": "123456789012",
- "Class": "serviceendpointgateway",
- "Name": "Service Endpoint Gateway (123456789012)",
- "Description": "",
- "Plan": {
- "ID": 1
}, - "Settings": {
- "ServiceEndpointGateway": {
- "EnabledServices": [
- {
- "Type": "ObjectStorage",
- "Config": {
- "Endpoints": [
- "s3.isk01.sakurastorage.jp"
]
}
}, - {
- "Type": "AppRunDedicatedControlPlane",
- "Config": {
- "Mode": "Managed"
}
}
], - "MonitoringSuite": {
- "Enabled": "True"
}, - "DNSForwarding": {
- "Enabled": "True",
- "PrivateHostedZone": "internal.example.com",
- "UpstreamDNS1": "ns1.gslbN.sakura.ne.jp",
- "UpstreamDNS2": "ns2.gslbN.sakura.ne.jp"
}
}
}, - "SettingsHash": "abcdef1234567890abcdef1234567890",
- "Remark": {
- "Switch": {
- "ID": "123456789012"
}, - "Network": {
- "NetworkMaskLen": 24
}, - "Servers": [
- {
- "IPAddress": "192.0.2.15"
}
], - "Zone": {
- "ID": "21001"
}
}, - "Availability": "available",
- "Instance": {
- "Status": "up",
- "StatusChangedAt": "2024-01-01T00:00:00+09:00",
- "Host": {
- "Name": "sac-tk1a-sv001",
- "InfoURL": ""
}, - "Hosts": [
- {
- "Name": "sac-tk1a-sv001",
- "InfoURL": ""
}
]
}, - "Disk": {
- "EncryptionAlgorithm": "none",
- "EncryptionKey": null,
- "DedicatedStorageContract": null
}, - "ServiceClass": "cloud/appliance/serviceendpointgateway/1",
- "Generation": 100,
- "CreatedAt": "2024-01-01T00:00:00+09:00",
- "Icon": null,
- "Switch": {
- "ID": "123456789012",
- "Name": "Switch1",
- "Internet": null,
- "Scope": "user",
- "Availability": "available",
- "Zone": {
- "ID": 21001,
- "Name": "tk1a",
- "Region": {
- "ID": 210,
- "Name": "東京"
}
}
}, - "Interfaces": [
- {
- "IPAddress": "203.0.113.100",
- "UserIPAddress": null,
- "HostName": null,
- "Switch": {
- "ID": "123456789012",
- "Name": "Switch",
- "Scope": "shared",
- "Subnet": {
- "NetworkAddress": "203.0.113.0",
- "NetworkMaskLen": 24,
- "DefaultRoute": "203.0.113.1",
- "Internet": {
- "BandWidthMbps": 100
}
}, - "UserSubnet": {
- "DefaultRoute": "203.0.113.1",
- "NetworkMaskLen": 24
}
}
}, - {
- "IPAddress": null,
- "UserIPAddress": "192.0.2.15",
- "HostName": null,
- "Switch": {
- "ID": "123456789012",
- "Name": "SwitchForSEG",
- "Scope": "user",
- "Subnet": null,
- "UserSubnet": {
- "DefaultRoute": "192.0.2.1",
- "NetworkMaskLen": 24
}
}
}
], - "Tags": [ ]
}, - "is_ok": true
}