1. Packages
  2. Spectrocloud Provider
  3. API Docs
  4. CloudaccountGcp
spectrocloud 0.23.4 published on Monday, Apr 14, 2025 by spectrocloud

spectrocloud.CloudaccountGcp

Explore with Pulumi AI

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as spectrocloud from "@pulumi/spectrocloud";

const gcp_1 = new spectrocloud.CloudaccountGcp("gcp-1", {gcpJsonCredentials: _var.gcp_serviceaccount_json});
Copy
import pulumi
import pulumi_spectrocloud as spectrocloud

gcp_1 = spectrocloud.CloudaccountGcp("gcp-1", gcp_json_credentials=var["gcp_serviceaccount_json"])
Copy
package main

import (
	"github.com/pulumi/pulumi-terraform-provider/sdks/go/spectrocloud/spectrocloud"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := spectrocloud.NewCloudaccountGcp(ctx, "gcp-1", &spectrocloud.CloudaccountGcpArgs{
			GcpJsonCredentials: pulumi.Any(_var.Gcp_serviceaccount_json),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Spectrocloud = Pulumi.Spectrocloud;

return await Deployment.RunAsync(() => 
{
    var gcp_1 = new Spectrocloud.CloudaccountGcp("gcp-1", new()
    {
        GcpJsonCredentials = @var.Gcp_serviceaccount_json,
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.spectrocloud.CloudaccountGcp;
import com.pulumi.spectrocloud.CloudaccountGcpArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;

public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }

    public static void stack(Context ctx) {
        var gcp_1 = new CloudaccountGcp("gcp-1", CloudaccountGcpArgs.builder()
            .gcpJsonCredentials(var_.gcp_serviceaccount_json())
            .build());

    }
}
Copy
resources:
  gcp-1:
    type: spectrocloud:CloudaccountGcp
    properties:
      gcpJsonCredentials: ${var.gcp_serviceaccount_json}
Copy

Create CloudaccountGcp Resource

Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

Constructor syntax

new CloudaccountGcp(name: string, args: CloudaccountGcpArgs, opts?: CustomResourceOptions);
@overload
def CloudaccountGcp(resource_name: str,
                    args: CloudaccountGcpArgs,
                    opts: Optional[ResourceOptions] = None)

@overload
def CloudaccountGcp(resource_name: str,
                    opts: Optional[ResourceOptions] = None,
                    gcp_json_credentials: Optional[str] = None,
                    cloudaccount_gcp_id: Optional[str] = None,
                    context: Optional[str] = None,
                    name: Optional[str] = None)
func NewCloudaccountGcp(ctx *Context, name string, args CloudaccountGcpArgs, opts ...ResourceOption) (*CloudaccountGcp, error)
public CloudaccountGcp(string name, CloudaccountGcpArgs args, CustomResourceOptions? opts = null)
public CloudaccountGcp(String name, CloudaccountGcpArgs args)
public CloudaccountGcp(String name, CloudaccountGcpArgs args, CustomResourceOptions options)
type: spectrocloud:CloudaccountGcp
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

name This property is required. string
The unique name of the resource.
args This property is required. CloudaccountGcpArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. CloudaccountGcpArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name This property is required. string
The unique name of the resource.
args This property is required. CloudaccountGcpArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. CloudaccountGcpArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. CloudaccountGcpArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

Constructor example

The following reference example uses placeholder values for all input properties.

var cloudaccountGcpResource = new Spectrocloud.CloudaccountGcp("cloudaccountGcpResource", new()
{
    GcpJsonCredentials = "string",
    CloudaccountGcpId = "string",
    Context = "string",
    Name = "string",
});
Copy
example, err := spectrocloud.NewCloudaccountGcp(ctx, "cloudaccountGcpResource", &spectrocloud.CloudaccountGcpArgs{
GcpJsonCredentials: pulumi.String("string"),
CloudaccountGcpId: pulumi.String("string"),
Context: pulumi.String("string"),
Name: pulumi.String("string"),
})
Copy
var cloudaccountGcpResource = new CloudaccountGcp("cloudaccountGcpResource", CloudaccountGcpArgs.builder()
    .gcpJsonCredentials("string")
    .cloudaccountGcpId("string")
    .context("string")
    .name("string")
    .build());
Copy
cloudaccount_gcp_resource = spectrocloud.CloudaccountGcp("cloudaccountGcpResource",
    gcp_json_credentials="string",
    cloudaccount_gcp_id="string",
    context="string",
    name="string")
Copy
const cloudaccountGcpResource = new spectrocloud.CloudaccountGcp("cloudaccountGcpResource", {
    gcpJsonCredentials: "string",
    cloudaccountGcpId: "string",
    context: "string",
    name: "string",
});
Copy
type: spectrocloud:CloudaccountGcp
properties:
    cloudaccountGcpId: string
    context: string
    gcpJsonCredentials: string
    name: string
Copy

CloudaccountGcp Resource Properties

To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

Inputs

In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

The CloudaccountGcp resource accepts the following input properties:

GcpJsonCredentials This property is required. string
The GCP credentials in JSON format. These credentials are required to authenticate and manage.
CloudaccountGcpId string
The ID of this resource.
Context string
The context of the GCP configuration. Allowed values are project or tenant. Default value is project. If the project context is specified, the project name will sourced from the provider configuration parameter project_name.
Name string
The name of the GCP account.
GcpJsonCredentials This property is required. string
The GCP credentials in JSON format. These credentials are required to authenticate and manage.
CloudaccountGcpId string
The ID of this resource.
Context string
The context of the GCP configuration. Allowed values are project or tenant. Default value is project. If the project context is specified, the project name will sourced from the provider configuration parameter project_name.
Name string
The name of the GCP account.
gcpJsonCredentials This property is required. String
The GCP credentials in JSON format. These credentials are required to authenticate and manage.
cloudaccountGcpId String
The ID of this resource.
context String
The context of the GCP configuration. Allowed values are project or tenant. Default value is project. If the project context is specified, the project name will sourced from the provider configuration parameter project_name.
name String
The name of the GCP account.
gcpJsonCredentials This property is required. string
The GCP credentials in JSON format. These credentials are required to authenticate and manage.
cloudaccountGcpId string
The ID of this resource.
context string
The context of the GCP configuration. Allowed values are project or tenant. Default value is project. If the project context is specified, the project name will sourced from the provider configuration parameter project_name.
name string
The name of the GCP account.
gcp_json_credentials This property is required. str
The GCP credentials in JSON format. These credentials are required to authenticate and manage.
cloudaccount_gcp_id str
The ID of this resource.
context str
The context of the GCP configuration. Allowed values are project or tenant. Default value is project. If the project context is specified, the project name will sourced from the provider configuration parameter project_name.
name str
The name of the GCP account.
gcpJsonCredentials This property is required. String
The GCP credentials in JSON format. These credentials are required to authenticate and manage.
cloudaccountGcpId String
The ID of this resource.
context String
The context of the GCP configuration. Allowed values are project or tenant. Default value is project. If the project context is specified, the project name will sourced from the provider configuration parameter project_name.
name String
The name of the GCP account.

Outputs

All input properties are implicitly available as output properties. Additionally, the CloudaccountGcp resource produces the following output properties:

Id string
The provider-assigned unique ID for this managed resource.
Id string
The provider-assigned unique ID for this managed resource.
id String
The provider-assigned unique ID for this managed resource.
id string
The provider-assigned unique ID for this managed resource.
id str
The provider-assigned unique ID for this managed resource.
id String
The provider-assigned unique ID for this managed resource.

Look up Existing CloudaccountGcp Resource

Get an existing CloudaccountGcp resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

public static get(name: string, id: Input<ID>, state?: CloudaccountGcpState, opts?: CustomResourceOptions): CloudaccountGcp
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        cloudaccount_gcp_id: Optional[str] = None,
        context: Optional[str] = None,
        gcp_json_credentials: Optional[str] = None,
        name: Optional[str] = None) -> CloudaccountGcp
func GetCloudaccountGcp(ctx *Context, name string, id IDInput, state *CloudaccountGcpState, opts ...ResourceOption) (*CloudaccountGcp, error)
public static CloudaccountGcp Get(string name, Input<string> id, CloudaccountGcpState? state, CustomResourceOptions? opts = null)
public static CloudaccountGcp get(String name, Output<String> id, CloudaccountGcpState state, CustomResourceOptions options)
resources:  _:    type: spectrocloud:CloudaccountGcp    get:      id: ${id}
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
resource_name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
The following state arguments are supported:
CloudaccountGcpId string
The ID of this resource.
Context string
The context of the GCP configuration. Allowed values are project or tenant. Default value is project. If the project context is specified, the project name will sourced from the provider configuration parameter project_name.
GcpJsonCredentials string
The GCP credentials in JSON format. These credentials are required to authenticate and manage.
Name string
The name of the GCP account.
CloudaccountGcpId string
The ID of this resource.
Context string
The context of the GCP configuration. Allowed values are project or tenant. Default value is project. If the project context is specified, the project name will sourced from the provider configuration parameter project_name.
GcpJsonCredentials string
The GCP credentials in JSON format. These credentials are required to authenticate and manage.
Name string
The name of the GCP account.
cloudaccountGcpId String
The ID of this resource.
context String
The context of the GCP configuration. Allowed values are project or tenant. Default value is project. If the project context is specified, the project name will sourced from the provider configuration parameter project_name.
gcpJsonCredentials String
The GCP credentials in JSON format. These credentials are required to authenticate and manage.
name String
The name of the GCP account.
cloudaccountGcpId string
The ID of this resource.
context string
The context of the GCP configuration. Allowed values are project or tenant. Default value is project. If the project context is specified, the project name will sourced from the provider configuration parameter project_name.
gcpJsonCredentials string
The GCP credentials in JSON format. These credentials are required to authenticate and manage.
name string
The name of the GCP account.
cloudaccount_gcp_id str
The ID of this resource.
context str
The context of the GCP configuration. Allowed values are project or tenant. Default value is project. If the project context is specified, the project name will sourced from the provider configuration parameter project_name.
gcp_json_credentials str
The GCP credentials in JSON format. These credentials are required to authenticate and manage.
name str
The name of the GCP account.
cloudaccountGcpId String
The ID of this resource.
context String
The context of the GCP configuration. Allowed values are project or tenant. Default value is project. If the project context is specified, the project name will sourced from the provider configuration parameter project_name.
gcpJsonCredentials String
The GCP credentials in JSON format. These credentials are required to authenticate and manage.
name String
The name of the GCP account.

Package Details

Repository
spectrocloud spectrocloud/terraform-provider-spectrocloud
License
Notes
This Pulumi package is based on the spectrocloud Terraform Provider.