[英]Can I create cloud SQL MySQL instance from Android Application
I want a new Cloud SQL instance for each user. 我想要每个用户一个新的Cloud SQL实例。 Is it possible to create a new Cloud SQL instance via an http request or any other means.
是否可以通过http请求或任何其他方式创建新的Cloud SQL实例。 Right now I am creating it using Google Cloud Platform console.
现在,我正在使用Google Cloud Platform控制台创建它。
There is a better call available for the Cloud SQL API which is insert that basically creates a new instance. Cloud SQL API有一个更好的调用,该调用基本上是创建一个新实例的插入 。
You will probably also want to update the root password and get the IPv4 address of the instance. 您可能还希望更新root密码并获取实例的IPv4地址。 Instructions on creating a Cloud SQL instance can be found here .
有关创建Cloud SQL实例的说明,请参见此处 。 Go to the CURL(2ND GEN/1ST GEN) section so that you could see what kind of information you need to include in the POST request that you can send from your Android application.
转到CURL(2ND GEN / 1ST GEN)部分,以便您可以查看需要从Android应用程序发送的POST请求中包括哪些信息。
The Cloud SQL API has a clone call which will make a new instance that is a clone of an existing instance. Cloud SQL API有一个克隆调用,它将创建一个新实例,该实例是现有实例的克隆。
See https://cloud.google.com/sql/docs/mysql/admin-api/v1beta4/instances/clone 参见https://cloud.google.com/sql/docs/mysql/admin-api/v1beta4/instances/clone
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.