1
votes

I have tried by using the GCP console dashboard to create the project and I want to programmatically create the projects by using Google supported APIs to manage projects. Then I want to perform Google Big Query operations by using Big Query Client libraries for the .NET project.

Is there any way to create Google Cloud Platform "Projects" by using Google Cloud API service?

2

2 Answers

3
votes
1
votes

You can do that using gcloud command or REST API. You need to have a user (or service account) which has permissions to create the GCP Project.

Here is one of the REST API example

POST https://cloudresourcemanager.googleapis.com/v1/projects/
Authorization: *************
Content-Type: application/json

{
    "projectId": "project-123",
    "name": "project name"
}

You can find more examples here.

Hope this helps.