建立多個 SelectedRoute,並啟動排程,定期擷取每個路徑的快取資訊。
HTTP 要求
POST https://roads.googleapis.com/selection/v1/{parent=projects/*}/selectedRoutes:batchCreate
這個網址使用 gRPC 轉碼語法。
路徑參數
| 參數 | |
|---|---|
| parent | 
 (選用步驟) 所有選定路徑共用的專案資源。格式:projects/{project}。如果設定此欄位,CreateSelectedRouteRequest 訊息中的父項欄位必須為空白或與此欄位相符。 | 
要求主體
要求主體的資料會採用以下結構:
| JSON 表示法 | 
|---|
| {
  "requests": [
    {
      object ( | 
| 欄位 | |
|---|---|
| requests[] | 
 必要欄位。要求訊息,指定要建立的所選路徑。批次建立的路線最多可達 1000 條。 | 
回應主體
建立多個 SelectedRoute 的回應。
如果成功,回應主體會含有以下結構的資料:
| JSON 表示法 | 
|---|
| {
  "selectedRoutes": [
    {
      object ( | 
| 欄位 | |
|---|---|
| selectedRoutes[] | 
 已建立 SelectedRoutes。 | 
授權範圍
需要下列 OAuth 範圍:
- https://www.googleapis.com/auth/cloud-platform
CreateSelectedRouteRequest
建立 SelectedRoute 的要求。
| JSON 表示法 | 
|---|
| {
  "parent": string,
  "selectedRoute": {
    object ( | 
| 欄位 | |
|---|---|
| parent | 
 必要欄位。 | 
| selectedRoute | 
 必要欄位。要建立的  | 
| selectedRouteId | 
 (選用步驟) 要用於  這個值的長度應為 4 至 63 個字元,有效字元為「a-z」、「A-Z」、「0-9」或「-」。如果未提供或為空白,系統會在資源建立後產生 UUID。 |