确定与服务提供商的连接价格
确定将Network Edge虚拟设备连接到服务提供商的价格。
先决条件
-
身份验证 - 请提交您的用户凭据、客户端 ID 和客户端密钥以进行 OAuth2 身份验证。有关如何调用 OAuth API 来验证和确认您的凭据的说明,请参阅API 身份验证。
-
请确定您的网络边缘设备信息。您需要已配置且已注册许可证的 Equinix 虚拟设备/冗余设备/集群。您可以通过调用 Get Virtual Devices 或 Get Virtual Device {uuid} 来查看可用的虚拟设备和集群。您可以选择设备上的任何可用接口进行连接。但是,如果您未指定接口,Equinix 将自动选择一个。
-
使用 Get All Metros 端点查找 Equinix Fabric 可用的所有都市区,并确定目标位置。
-
确定您要连接的服务提供商的服务配置文件。使用 检索服务配置文件 API 请求搜索特定服务配置文件,或使用 获取服务配置文件 API 请求列出所有可用的服务配置文件,并确定您要连接的配置文件。
请求与服务提供商连接的定价信息
要请求价格信息,请向 /fabric/v4/prices/search 端点发送 POST 请求。在请求正文中指定您的定价条件。
cURL 请求示例:
curl -X POST 'https://api.equinix.com/fabric/v4/prices/search'
-H 'content-type: application/json'
-H 'authorization: Bearer <token>'
-d '{
"filter": {
"and": [
{
"property": "/type",
"operator": "=",
"values": [
"VIRTUAL_CONNECTION_PRODUCT"
]
},
{
"property": "/connection/type",
"operator": "=",
"values": [
"GW_VC"
]
},
{
"property": "/connection/bandwidth",
"operator": "IN",
"values": [
50,
1000
]
},
{
"property": "/connection/aSide/accessPoint/type",
"operator": "=",
"values": [
"VD"
]
},
{
"property": "/connection/aSide/accessPoint/location/metroCode",
"operator": "=",
"values": [
"CH"
]
},
{
"property": "/connection/zSide/accessPoint/location/metroCode",
"operator": "=",
"values": [
"DC"
]
},
{
"property": "/connection/zSide/accessPoint/type",
"operator": "=",
"values": [
"SP"
]
},
{
"property": "/connection/zSide/accessPoint/profile/uuid",
"operator": "=",
"values": [
"e0346949-00af-480b-801b-bdd2b8980c6e"
]
}
]
}
}'
请求正文中包含的参数仅适用于此示例。有关参数及其说明的完整列表,请参阅API 参考。