Skip to content

Replica Pool API

by googleapis.com

OAuthHTTPSDevelopment
Open documentation ↗

Overview

The Replica Pool API allows users to declaratively provision and manage groups of Google Compute Engine instances based on a common template.

Replica Pool is a development API from googleapis.com. Requests are authenticated with OAuth. It is served over HTTPS. Its OpenAPI description documents 10 endpoints.

At a glance

Authentication
OAuth
HTTPS
Yes
CORS
Unknown
Category
Development
Base URL
https://www.googleapis.com/replicapool/v1beta1/projects
Version
v1beta1
Endpoints
10
Spec updated
2020-01-07

Make a first request

Replace the placeholders; the documentation says exactly where credentials go.

cURL
curl -X GET "https://www.googleapis.com/replicapool/v1beta1/projects/PROJECTNAME/zones/ZONE/pools" \
  -H "Accept: application/json" \
  -H "Authorization: Bearer YOUR_TOKEN"
JavaScript
const response = await fetch("https://www.googleapis.com/replicapool/v1beta1/projects/PROJECTNAME/zones/ZONE/pools", {
  method: "GET",
  headers: {
    "Accept": "application/json",
    "Authorization": "Bearer YOUR_TOKEN",
  },
});
const data = await response.json();
console.log(data);
Python
import requests

response = requests.request(
    "GET",
    "https://www.googleapis.com/replicapool/v1beta1/projects/PROJECTNAME/zones/ZONE/pools",
    headers={
    "Accept": "application/json",
    "Authorization": "Bearer YOUR_TOKEN",
    },
    timeout=30,
)
print(response.json())

Endpoints

MethodPathWhat it does
GET/{projectName}/zones/{zone}/poolsList all replica pools.
POST/{projectName}/zones/{zone}/poolsInserts a new replica pool.
GET/{projectName}/zones/{zone}/pools/{poolName}Gets information about a single replica pool.
POST/{projectName}/zones/{zone}/pools/{poolName}Deletes a replica pool.
GET/{projectName}/zones/{zone}/pools/{poolName}/replicasLists all replicas in a pool.
GET/{projectName}/zones/{zone}/pools/{poolName}/replicas/{replicaName}Gets information about a specific replica.
POST/{projectName}/zones/{zone}/pools/{poolName}/replicas/{replicaName}Deletes a replica from the pool.
POST/{projectName}/zones/{zone}/pools/{poolName}/replicas/{replicaName}/restartRestarts a replica in a pool.
POST/{projectName}/zones/{zone}/pools/{poolName}/resizeResize a pool. This is an asynchronous operation, and multiple overlapping resize requests can be made. Replica Pools will use the information from the last res
POST/{projectName}/zones/{zone}/pools/{poolName}/updateTemplateUpdate the template used by the pool.

Questions

Does the Replica Pool API need an API key?

Yes. The Replica Pool API uses OAuth authentication; the documentation explains how to get credentials.

Does the Replica Pool API support HTTPS?

Yes, the Replica Pool API is served over HTTPS.

How many endpoints does the Replica Pool API have?

Its OpenAPI description lists 10 endpoints in version v1beta1. All of them are shown on this page.

What are alternatives to the Replica Pool API?

Other Development APIs include Cloudflare, Azure DevOps, IPify, App Store Connect API, StackExchange.

Compare alternatives →

Listed from APIs.guru (CC0).