IBM Cloud Kubernetes Service GraphQL API 參考手冊
IBM Cloud Kubernetes Service GraphQL API 可於 https://containers.cloud.ibm.com/graphql 取得。 請使用此 API,以程式化方式管理 Satellite 連接器、Kubernetes 叢集以及裸機工作節點。
此頁面是根據即時資料結構自動生成的。
查詢
查詢會在不修改任何資源的情況下擷取資料。 請向 https://containers.cloud.ibm.com/graphql 發送一則 POST 請求,並在請求正文中包含您的查詢內容。
node
根據給定的 ID 查找對應的「Node」。 請使用片段來選取其他欄位。
| 類型 | 名稱 | 說明 |
|---|---|---|
| 傳回 | Node |
|
| 引數 | id (ID!) (必填) |
全球唯一的節點識別碼。 |
要求範例
curl -X POST https://containers.cloud.ibm.com/graphql \
-H "Authorization: Bearer $IAM_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"query": "query node($id: ID!) {\n node(id: $id) {\n # ... select your fields here\n }\n}",
"variables": {
"id": "abc123"
}
}'
回應範例
{
"data": {
"node": "<Node>"
}
}
satelliteConnectors
請列出您有權存取的 Satellite 連接器。
| 類型 | 名稱 | 說明 |
|---|---|---|
| 傳回 | SatelliteConnectorConnection |
|
| 引數 | after (String) |
在此游標之後返回 Satellite 連接器。 |
| 引數 | first (Int) |
回傳前 N 個 Satellite 連接器。 |
| 引數 | last (Int) |
返回最後 N 個 Satellite 連接器。 |
| 引數 | before (String) |
返回此游標之前的「Satellite」連接器。 |
要求範例
curl -X POST https://containers.cloud.ibm.com/graphql \
-H "Authorization: Bearer $IAM_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"query": "query satelliteConnectors($after: String, $first: Int, $last: Int, $before: String) {\n satelliteConnectors(after: $after, first: $first, last: $last, before: $before) {\n # ... select your fields here\n }\n}",
"variables": {
"after": "example-value",
"first": 0,
"last": 0,
"before": "example-value"
}
}'
回應範例
{
"data": {
"satelliteConnectors": {
"edges": [
{
"cursor": "example-value",
"node": {
"createdDate": "2025-01-01T00:00:00Z",
"crn": "<CloudResourceName>",
"id": "abc123",
"name": "example-value",
"region": {
"displayName": "...",
"id": "...",
"name": "..."
},
"resourceGroup": {
"externalID": "...",
"id": "...",
"name": "..."
},
"state": "CREATED"
}
}
],
"pageInfo": {
"endCursor": "example-value",
"hasNextPage": true,
"hasPreviousPage": true,
"startCursor": "example-value"
}
}
}
}
突變
變異會建立、更新或刪除資源。 每次變更均需在「Authorization」標頭中包含一個 IAM 承載者憑證。
addVirtualNetworkInterfaceToBareMetalNode
將一個虛擬網路介面 (VNI) 新增至裸機 Kubernetes 工作節點。
| 類型 | 名稱 | 說明 |
|---|---|---|
| 傳回 | AddVirtualNetworkInterfaceToBareMetalNodePayload |
|
| 引數 | input (AddVirtualNetworkInterfaceToBareMetalNodeInput!) (必填) |
將 VNI 新增至裸機節點的輸入參數。 |
要求範例
curl -X POST https://containers.cloud.ibm.com/graphql \
-H "Authorization: Bearer $IAM_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"query": "mutation addVirtualNetworkInterfaceToBareMetalNode($input: AddVirtualNetworkInterfaceToBareMetalNodeInput!) {\n addVirtualNetworkInterfaceToBareMetalNode(input: $input) {\n # ... select your fields here\n }\n}",
"variables": {
"input": "<AddVirtualNetworkInterfaceToBareMetalNodeInput>"
}
}'
回應範例
{
"data": {
"addVirtualNetworkInterfaceToBareMetalNode": {
"networkAttachment": "<NetworkAttachment>"
}
}
}
createSatelliteConnector
建立 Satellite 連接器。
| 類型 | 名稱 | 說明 |
|---|---|---|
| 傳回 | CreateSatelliteConnectorPayload |
|
| 引數 | input (CreateSatelliteConnectorInput) |
要求範例
curl -X POST https://containers.cloud.ibm.com/graphql \
-H "Authorization: Bearer $IAM_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"query": "mutation createSatelliteConnector($input: CreateSatelliteConnectorInput) {\n createSatelliteConnector(input: $input) {\n # ... select your fields here\n }\n}",
"variables": {
"input": "<CreateSatelliteConnectorInput>"
}
}'
回應範例
{
"data": {
"createSatelliteConnector": {
"satelliteConnector": {
"createdDate": "2025-01-01T00:00:00Z",
"crn": "<CloudResourceName>",
"id": "abc123",
"name": "example-value",
"region": {
"displayName": "example-value",
"id": "abc123",
"name": "example-value"
},
"resourceGroup": {
"externalID": "example-value",
"id": "abc123",
"name": "example-value"
},
"state": "CREATED"
}
}
}
}
reinitializeKubernetesNode
重新初始化一個 Kubernetes 節點。 目前不支援 VPC 虛擬伺服器執行個體。
| 類型 | 名稱 | 說明 |
|---|---|---|
| 傳回 | ReinitializeKubernetesNodePayload |
|
| 引數 | input (ReinitializeKubernetesNodeInput) |
要求範例
curl -X POST https://containers.cloud.ibm.com/graphql \
-H "Authorization: Bearer $IAM_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"query": "mutation reinitializeKubernetesNode($input: ReinitializeKubernetesNodeInput) {\n reinitializeKubernetesNode(input: $input) {\n # ... select your fields here\n }\n}",
"variables": {
"input": "<ReinitializeKubernetesNodeInput>"
}
}'
回應範例
{
"data": {
"reinitializeKubernetesNode": {
"node": "<KubernetesNode>"
}
}
}
removeSatelliteConnector
移除一個「Satellite」連接器。
| 類型 | 名稱 | 說明 |
|---|---|---|
| 傳回 | RemoveSatelliteConnectorPayload |
|
| 引數 | input (RemoveSatelliteConnectorInput) |
要求範例
curl -X POST https://containers.cloud.ibm.com/graphql \
-H "Authorization: Bearer $IAM_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"query": "mutation removeSatelliteConnector($input: RemoveSatelliteConnectorInput) {\n removeSatelliteConnector(input: $input) {\n # ... select your fields here\n }\n}",
"variables": {
"input": "<RemoveSatelliteConnectorInput>"
}
}'
回應範例
{
"data": {
"removeSatelliteConnector": {
"satelliteConnector": {
"createdDate": "2025-01-01T00:00:00Z",
"crn": "<CloudResourceName>",
"id": "abc123",
"name": "example-value",
"region": {
"displayName": "example-value",
"id": "abc123",
"name": "example-value"
},
"resourceGroup": {
"externalID": "example-value",
"id": "abc123",
"name": "example-value"
},
"state": "CREATED"
}
}
}
}
removeVirtualNetworkInterfaceFromNode
從 Kubernetes 工作節點中移除一個虛擬網路介面。
| 類型 | 名稱 | 說明 |
|---|---|---|
| 傳回 | RemoveVirtualNetworkInterfaceFromNodePayload |
|
| 引數 | input (RemoveVirtualNetworkInterfaceFromNodeInput!) (必填) |
從節點中移除 VNI 的輸入參數。 |
要求範例
curl -X POST https://containers.cloud.ibm.com/graphql \
-H "Authorization: Bearer $IAM_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"query": "mutation removeVirtualNetworkInterfaceFromNode($input: RemoveVirtualNetworkInterfaceFromNodeInput!) {\n removeVirtualNetworkInterfaceFromNode(input: $input) {\n # ... select your fields here\n }\n}",
"variables": {
"input": "<RemoveVirtualNetworkInterfaceFromNodeInput>"
}
}'
回應範例
{
"data": {
"removeVirtualNetworkInterfaceFromNode": {
"cluster": {
"id": "abc123",
"name": "example-value",
"networkAttachments": {
"edges": [
{
"cursor": "...",
"node": "..."
}
],
"pageInfo": {
"endCursor": "...",
"hasNextPage": "...",
"hasPreviousPage": "...",
"startCursor": "..."
}
},
"region": {
"displayName": "example-value",
"id": "abc123",
"name": "example-value"
}
},
"node": "<NetworkAttachable>",
"virtualNetworkInterface": "<VirtualNetworkInterface>"
}
}
}
updateSatelliteLocation
更新「Satellite」的位置。
| 類型 | 名稱 | 說明 |
|---|---|---|
| 傳回 | UpdateSatelliteLocationPayload |
|
| 引數 | input (UpdateSatelliteLocationInput) |
要求範例
curl -X POST https://containers.cloud.ibm.com/graphql \
-H "Authorization: Bearer $IAM_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"query": "mutation updateSatelliteLocation($input: UpdateSatelliteLocationInput) {\n updateSatelliteLocation(input: $input) {\n # ... select your fields here\n }\n}",
"variables": {
"input": "<UpdateSatelliteLocationInput>"
}
}'
回應範例
{
"data": {
"updateSatelliteLocation": {
"satelliteLocation": {
"description": "example-value",
"id": "abc123",
"name": "example-value"
}
}
}
}
物件類型
物件類型代表 API 所返回的具體資源及回應載荷。
帳戶
IBM Cloud 帳戶。
| 類型 | 名稱 | 說明 |
|---|---|---|
| 欄位 | externalID (String!) |
該帳戶的 IBM Cloud 識別碼。 |
AddVirtualNetworkInterfaceToBareMetalNodePayload
將 VNI 新增至裸機節點的回應載荷。
| 類型 | 名稱 | 說明 |
|---|---|---|
| 欄位 | networkAttachment (NetworkAttachment!) |
已建立的網路連接及其屬性。 |
BareMetalNetworkAttachmentByVLAN
使用 VLAN 標記為裸機節點建立網路連線。
| 類型 | 名稱 | 說明 |
|---|---|---|
| 實作 | NetworkAttachment |
|
| 欄位 | attachedTo (NetworkAttachable!) |
此介面所連接的裸機節點。 |
| 欄位 | canFloat (Boolean!) |
此附加檔是否能在叢集中的各節點之間浮動。 |
| 欄位 | virtualNetworkInterface (VirtualNetworkInterface!) |
已連接的虛擬網路介面。 |
| 欄位 | vlanID (Int) |
此連接所使用的 VLAN ID(2-500)。 若尚未指派,則為 null。 |
BareMetalVirtualNetworkInterface
連接至裸機伺服器的虛擬網路介面。
| 類型 | 名稱 | 說明 |
|---|---|---|
| 實作 | VirtualNetworkInterface |
|
| 欄位 | autoDelete (Boolean) |
當 VNI 被斷開連接時,是否應自動刪除該 VNI。 |
| 欄位 | externalID (String!) |
此 VNI 的 VPC 資源 ID。 |
| 欄位 | macAddress (MACAddress) |
分配給此網路介面的 MAC 位址。 |
| 欄位 | name (String) |
VNI 的易讀名稱。 |
| 欄位 | primaryIPAddress (IPv4Address) |
分配給此網路介面的主要 IPv4 位址。 |
| 欄位 | securityGroups (SecurityGroupConnection) |
已套用至此網路介面的安全性群組。
|
| 欄位 | subnet (Subnet!) |
此網路介面所連接的 VPC 子網。 |
CreateSatelliteConnectorPayload
createSatelliteConnector 的輸出類型。
| 類型 | 名稱 | 說明 |
|---|---|---|
| 欄位 | satelliteConnector (SatelliteConnector) |
新款 SatelliteConnector。 |
KubernetesCluster
一個 IBM Cloud Kubernetes Service 或 IBM Cloud OpenShift 服務叢集。
| 類型 | 名稱 | 說明 |
|---|---|---|
| 實作 | Node |
|
| 欄位 | id (ID!) |
該叢集的唯一識別碼。 |
| 欄位 | name (String) |
叢集的名稱。 |
| 欄位 | networkAttachments (NetworkAttachmentConnection) |
此叢集的網路連接(如適用)。
|
| 欄位 | region (Region) |
該星團的 IBM Cloud 目錄區域。 |
地區
一個 IBM Cloud 目錄區域。
| 類型 | 名稱 | 說明 |
|---|---|---|
| 實作 | Location |
|
| 實作 | Node |
|
| 欄位 | displayName (String) |
此地區的名稱翻譯。 |
| 欄位 | id (ID!) |
此區域的識別碼。 |
| 欄位 | name (String) |
此地區的名稱。 |
ReinitializeKubernetesNodePayload
reinitializeKubernetesNode 的輸出類型。
| 類型 | 名稱 | 說明 |
|---|---|---|
| 欄位 | node (KubernetesNode) |
正在重新初始化 Kubernetes 節點。 |
RemoveSatelliteConnectorPayload
removeSatelliteConnector 的輸出類型。
| 類型 | 名稱 | 說明 |
|---|---|---|
| 欄位 | satelliteConnector (SatelliteConnector) |
已移除的 SatelliteConnector。 |
RemoveVirtualNetworkInterfaceFromNodePayload
從節點中移除 VNI 的回應載荷。
| 類型 | 名稱 | 說明 |
|---|---|---|
| 欄位 | cluster (KubernetesCluster!) |
VNI 被移除的叢集。 |
| 欄位 | node (NetworkAttachable!) |
移除 VNI 的節點。 |
| 欄位 | virtualNetworkInterface (VirtualNetworkInterface!) |
已移除的虛擬網路介面。 |
ResourceGroup
「ResourceGroup」是一種讓您能將帳戶資源整理成可自訂群組的方式,藉此讓您能一次快速地為使用者指派對多個資源的存取權限。
| 類型 | 名稱 | 說明 |
|---|---|---|
| 實作 | Node |
|
| 欄位 | externalID (String!) |
該資源群組的 IBM Cloud 識別碼。 |
| 欄位 | id (ID!) |
該資源群組的 Node 識別碼。 |
| 欄位 | name (String) |
資源群組的名稱。 |
SatelliteConnector
Satellite 連接器可在特定遠端位置與 IBM Cloud 之間建立安全的連線。
| 類型 | 名稱 | 說明 |
|---|---|---|
| 實作 | Node |
|
| 欄位 | createdDate (DateTime) |
此資源的建立日期。 |
| 欄位 | crn (CloudResourceName) |
該資源的 CRN 為 IBM Cloud。 |
| 欄位 | id (ID!) |
該資源的唯一識別碼。 |
| 欄位 | name (String!) |
該資源的名稱。 |
| 欄位 | region (Region) |
該資源所屬的管理區域。 |
| 欄位 | resourceGroup (ResourceGroup) |
包含此資源的資源群組。 |
| 欄位 | state (SatelliteConnectorState) |
此資源的當前狀態。 |
SatelliteLocation
Satellite 旗下分店。
| 類型 | 名稱 | 說明 |
|---|---|---|
| 實作 | Node |
|
| 欄位 | description (String) |
地點說明。 |
| 欄位 | id (ID!) |
該資源的唯一識別碼。 |
| 欄位 | name (String) |
地點名稱。 |
SecurityGroup
代表一個 VPC 安全群組。
| 類型 | 名稱 | 說明 |
|---|---|---|
| 欄位 | externalID (String!) |
此安全群組的 VPC 資源 ID。 |
子網路
代表一個 VPC 子網。
| 類型 | 名稱 | 說明 |
|---|---|---|
| 欄位 | externalID (String!) |
此子網的 VPC 資源 ID。 |
UpdateSatelliteLocationPayload
updateSatelliteLocation 的輸出類型。
| 類型 | 名稱 | 說明 |
|---|---|---|
| 欄位 | satelliteLocation (SatelliteLocation) |
更新後的 SatelliteLocation。 |
VPCBareMetalKubernetesNode
代表 IBM Cloud VPC 中的裸機 Kubernetes 工作節點。
| 類型 | 名稱 | 說明 |
|---|---|---|
| 實作 | KubernetesNode |
|
| 實作 | NetworkAttachable |
|
| 實作 | Node |
|
| 欄位 | id (ID!) |
此工作節點的全域唯一識別碼。 |
| 欄位 | networkAttachments (NetworkAttachmentConnection) |
此裸機節點的網路連接。
|
| 欄位 | region (Region) |
介面類型
介面類型定義了多個具體物件類型所共有的共通欄位。
KubernetesNode
Kubernetes Node 負責執行您的工作負載。
| 類型 | 名稱 | 說明 |
|---|---|---|
| 實作 | KubernetesNode |
|
| 實作 | VPCBareMetalKubernetesNode |
|
| 欄位 | id (ID!) |
該資源的唯一識別碼。 |
| 欄位 | region (Region) |
位置
IBM Cloud 的目錄位置。
| 類型 | 名稱 | 說明 |
|---|---|---|
| 實作 | Location |
|
| 實作 | Region |
|
| 欄位 | displayName (String) |
此地點的名稱翻譯。 |
| 欄位 | id (ID!) |
此地點的識別碼。 |
| 欄位 | name (String) |
此地點的名稱。 |
NetworkAttachable
代表一個可連接網路介面的實體。
| 類型 | 名稱 | 說明 |
|---|---|---|
| 實作 | NetworkAttachable |
|
| 欄位 | id (ID!) |
此節點的全球唯一識別碼。 |
| 欄位 | networkAttachments (NetworkAttachmentConnection) |
與此節點相關聯的網路連接。
|
NetworkAttachment
代表節點的網路介面連接。
| 類型 | 名稱 | 說明 |
|---|---|---|
| 實作 | BareMetalNetworkAttachmentByVLAN |
|
| 實作 | NetworkAttachment |
|
| 欄位 | attachedTo (NetworkAttachable!) |
此網路介面所連接的節點。 |
| 欄位 | virtualNetworkInterface (VirtualNetworkInterface!) |
已連接的虛擬網路介面。 |
Node
根據 ID 擷取物件。
| 類型 | 名稱 | 說明 |
|---|---|---|
| 實作 | KubernetesCluster |
|
| 實作 | KubernetesNode |
|
| 實作 | NetworkAttachable |
|
| 實作 | Node |
|
| 實作 | Region |
|
| 實作 | ResourceGroup |
|
| 實作 | SatelliteConnector |
|
| 實作 | SatelliteLocation |
|
| 實作 | VPCBareMetalKubernetesNode |
|
| 欄位 | id (ID!) |
全球唯一的物件識別碼。 |
VirtualNetworkInterface
代表 IBM Cloud VPC 中的虛擬網路介面。 可附加至裸機或虛擬伺服器執行個體。
| 類型 | 名稱 | 說明 |
|---|---|---|
| 實作 | BareMetalVirtualNetworkInterface |
|
| 實作 | VirtualNetworkInterface |
|
| 欄位 | autoDelete (Boolean) |
當 VNI 被斷開連接時,是否應自動刪除該 VNI。 |
| 欄位 | externalID (String!) |
此虛擬網路介面的 VPC 資源 ID。 |
| 欄位 | macAddress (MACAddress) |
分配給此網路介面的 MAC 位址。 |
| 欄位 | name (String) |
VNI 的易讀名稱。 |
| 欄位 | primaryIPAddress (IPv4Address) |
分配給此網路介面的主要 IPv4 位址。 |
| 欄位 | securityGroups (SecurityGroupConnection) |
已套用至此網路介面的安全性群組。
|
| 欄位 | subnet (Subnet!) |
此網路介面所連接的 VPC 子網。 |
輸入類型
輸入類型用作變異的參數。 標示為 (必填) 的欄位必須填寫。
AddVirtualNetworkInterfaceToBareMetalNodeInput
將 VNI 新增至裸機節點的輸入參數。
| 類型 | 名稱 | 說明 |
|---|---|---|
| 欄位 | autoDelete (Boolean) |
當 VNI 與 VPC 分離時,是否要自動從 VPC 中刪除該 VNI。 若未指定,預設值為 false。 |
| 欄位 | cluster (ID) |
叢集 ID。 必須指定「叢集」或「節點」其中之一,但不可同時指定兩者。 若僅提供叢集,系統將自動選取一個節點,且該附件將以浮動方式顯示。 |
| 欄位 | node (ID) |
Node ID. 必須指定「叢集」或「節點」其中之一,但不可同時指定兩者。 若指定此參數,則會在此特定節點上建立一個非浮動的附屬節點。 |
| 欄位 | virtualNetworkInterfaceID (String!) (必填) |
要連接的虛擬網路介面的 VPC 資源 ID。 |
| 欄位 | vlanID (Int!) (必填) |
該連接的 VLAN ID(2-500)。 VLAN 1 預留給主要網路介面使用。 |
CreateSatelliteConnectorInput
配置 Satellite 連接器所需的詳細資訊。
| 類型 | 名稱 | 說明 |
|---|---|---|
| 欄位 | name (String!) (必填) |
該資源的名稱。 |
| 欄位 | regionName (String!) (必填) |
指示應從何處管理新連接器的區域名稱。 |
| 欄位 | resourceGroupID (String!) (必填) |
要在其中進行配置的資源群組 ID。 |
ReinitializeKubernetesNodeInput
reinitializeKubernetesNode 的輸入類型。
| 類型 | 名稱 | 說明 |
|---|---|---|
| 欄位 | bypassUnhealthyControlPlane (Boolean) |
將此參數設為 true,即可繼續進行重新初始化,即使叢集的控制平面處於非正常狀態時亦然。 |
| 欄位 | id (ID!) (必填) |
Kubernetes 需重新初始化的節點。 |
RemoveSatelliteConnectorInput
removeSatelliteConnector 的輸入類型。
| 類型 | 名稱 | 說明 |
|---|---|---|
| 欄位 | id (ID!) (必填) |
Satellite 要移除的連接器 ID。 |
RemoveVirtualNetworkInterfaceFromNodeInput
用於從節點中移除 VNI 的輸入。
| 類型 | 名稱 | 說明 |
|---|---|---|
| 欄位 | cluster (ID) |
叢集 ID。 必須指定「叢集」或「節點」其中之一,但不可同時指定兩者。 |
| 欄位 | node (ID) |
Node ID. 必須指定「叢集」或「節點」其中之一,但不可同時指定兩者。 |
| 欄位 | virtualNetworkInterfaceID (String!) (必填) |
要移除的虛擬網路介面的 VPC 資源 ID。 |
UpdateSatelliteLocationInput
updateSatelliteLocation 的輸入類型。
| 類型 | 名稱 | 說明 |
|---|---|---|
| 欄位 | description (String) |
|
| 欄位 | id (ID!) (必填) |
Satellite 待更新的位置識別碼。 |
| 欄位 | name (String) |
枚舉類型
枚舉類型用來定義欄位所允許的字串值集合。
SatelliteConnectorState
Satellite Connector 的管理狀態。
預計這些數值在未來將會擴大。 在處理過程中,請檢查並記錄未知值。 可選擇中止處理並拋出錯誤,或繞過遇到該意外值的 Satellite 連接器。
| 類型 | 名稱 | 說明 |
|---|---|---|
| 值 | CREATED |
此連接器已完成配置,現已可使用。 |
| 值 | CREATING |
此連接器正在進行配置,可能尚未準備就緒。 |
| 值 | DELETING |
此連接器正在解除配置,可能無法使用。 |
| 值 | FAILED |
此連接器的最近一次操作已失敗,必須先刪除此連接器才能繼續。 |
標量類型
標量類型是 GraphQL 模式中的原始葉節點值。
CloudResourceName
「雲端資源名稱 (CRN)」可唯一識別 IBM Cloud 資源。 CRN 用來以明確的方式指定資源,保證是廣域唯一的。
DateTime
DateTime 是一種符合 RFC3339 規範的日期與時間組合。
IPv4Address
IPv4 以點分十進制表示的位址(例如:192.168.1.1 )。
MAC 位址
以冒號分隔的十六進位表示法的 MAC 位址(例如:00:1A:2B:3C:4D:5E )。
內部查詢
以下查詢僅供內部使用,不支援外部呼叫者。 為求完整起見,茲將其記錄於此。
globalSearchSatelliteConnectorAccounts
IBM 全球搜尋服務的全球可搜尋結果。 僅供內部使用。
| 類型 | 名稱 | 說明 |
|---|---|---|
| 傳回 | GlobalSearchSatelliteConnectorAccountsConnection |
|
| 引數 | after (String) |
|
| 引數 | first (Int) |
|
| 引數 | last (Int) |
|
| 引數 | before (String) |
|
| 引數 | regionName (String!) (必填) |
要求範例
curl -X POST https://containers.cloud.ibm.com/graphql \
-H "Authorization: Bearer $IAM_TOKEN" \
-H "Content-Type: application/json" \
-d '{
"query": "query globalSearchSatelliteConnectorAccounts($after: String, $first: Int, $last: Int, $before: String, $regionName: String!) {\n globalSearchSatelliteConnectorAccounts(after: $after, first: $first, last: $last, before: $before, regionName: $regionName) {\n # ... select your fields here\n }\n}",
"variables": {
"after": "example-value",
"first": 0,
"last": 0,
"before": "example-value",
"regionName": "example-value"
}
}'
回應範例
{
"data": {
"globalSearchSatelliteConnectorAccounts": {
"edges": [
{
"cursor": "example-value",
"node": {
"externalID": "example-value"
}
}
],
"pageInfo": {
"endCursor": "example-value",
"hasNextPage": true,
"hasPreviousPage": true,
"startCursor": "example-value"
}
}
}
}