1. Packages
  2. Octopusdeploy Provider
  3. API Docs
  4. GcpAccount
octopusdeploy 0.43.0 published on Thursday, Apr 17, 2025 by octopusdeploylabs

octopusdeploy.GcpAccount

Explore with Pulumi AI

This resource manages GCP accounts in Octopus Deploy.

Example Usage

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

const example = new octopusdeploy.GcpAccount("example", {jsonKey: "json-key"});
Copy
import pulumi
import pulumi_octopusdeploy as octopusdeploy

example = octopusdeploy.GcpAccount("example", json_key="json-key")
Copy
package main

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

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := octopusdeploy.NewGcpAccount(ctx, "example", &octopusdeploy.GcpAccountArgs{
			JsonKey: pulumi.String("json-key"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Octopusdeploy = Pulumi.Octopusdeploy;

return await Deployment.RunAsync(() => 
{
    var example = new Octopusdeploy.GcpAccount("example", new()
    {
        JsonKey = "json-key",
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.octopusdeploy.GcpAccount;
import com.pulumi.octopusdeploy.GcpAccountArgs;
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 example = new GcpAccount("example", GcpAccountArgs.builder()
            .jsonKey("json-key")
            .build());

    }
}
Copy
resources:
  example:
    type: octopusdeploy:GcpAccount
    properties:
      jsonKey: json-key
Copy

Create GcpAccount Resource

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

Constructor syntax

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

@overload
def GcpAccount(resource_name: str,
               opts: Optional[ResourceOptions] = None,
               json_key: Optional[str] = None,
               description: Optional[str] = None,
               environments: Optional[Sequence[str]] = None,
               gcp_account_id: Optional[str] = None,
               name: Optional[str] = None,
               space_id: Optional[str] = None,
               tenant_tags: Optional[Sequence[str]] = None,
               tenanted_deployment_participation: Optional[str] = None,
               tenants: Optional[Sequence[str]] = None)
func NewGcpAccount(ctx *Context, name string, args GcpAccountArgs, opts ...ResourceOption) (*GcpAccount, error)
public GcpAccount(string name, GcpAccountArgs args, CustomResourceOptions? opts = null)
public GcpAccount(String name, GcpAccountArgs args)
public GcpAccount(String name, GcpAccountArgs args, CustomResourceOptions options)
type: octopusdeploy:GcpAccount
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. GcpAccountArgs
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. GcpAccountArgs
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. GcpAccountArgs
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. GcpAccountArgs
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. GcpAccountArgs
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 gcpAccountResource = new Octopusdeploy.GcpAccount("gcpAccountResource", new()
{
    JsonKey = "string",
    Description = "string",
    Environments = new[]
    {
        "string",
    },
    GcpAccountId = "string",
    Name = "string",
    SpaceId = "string",
    TenantTags = new[]
    {
        "string",
    },
    TenantedDeploymentParticipation = "string",
    Tenants = new[]
    {
        "string",
    },
});
Copy
example, err := octopusdeploy.NewGcpAccount(ctx, "gcpAccountResource", &octopusdeploy.GcpAccountArgs{
JsonKey: pulumi.String("string"),
Description: pulumi.String("string"),
Environments: pulumi.StringArray{
pulumi.String("string"),
},
GcpAccountId: pulumi.String("string"),
Name: pulumi.String("string"),
SpaceId: pulumi.String("string"),
TenantTags: pulumi.StringArray{
pulumi.String("string"),
},
TenantedDeploymentParticipation: pulumi.String("string"),
Tenants: pulumi.StringArray{
pulumi.String("string"),
},
})
Copy
var gcpAccountResource = new GcpAccount("gcpAccountResource", GcpAccountArgs.builder()
    .jsonKey("string")
    .description("string")
    .environments("string")
    .gcpAccountId("string")
    .name("string")
    .spaceId("string")
    .tenantTags("string")
    .tenantedDeploymentParticipation("string")
    .tenants("string")
    .build());
Copy
gcp_account_resource = octopusdeploy.GcpAccount("gcpAccountResource",
    json_key="string",
    description="string",
    environments=["string"],
    gcp_account_id="string",
    name="string",
    space_id="string",
    tenant_tags=["string"],
    tenanted_deployment_participation="string",
    tenants=["string"])
Copy
const gcpAccountResource = new octopusdeploy.GcpAccount("gcpAccountResource", {
    jsonKey: "string",
    description: "string",
    environments: ["string"],
    gcpAccountId: "string",
    name: "string",
    spaceId: "string",
    tenantTags: ["string"],
    tenantedDeploymentParticipation: "string",
    tenants: ["string"],
});
Copy
type: octopusdeploy:GcpAccount
properties:
    description: string
    environments:
        - string
    gcpAccountId: string
    jsonKey: string
    name: string
    spaceId: string
    tenantTags:
        - string
    tenantedDeploymentParticipation: string
    tenants:
        - string
Copy

GcpAccount 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 GcpAccount resource accepts the following input properties:

JsonKey This property is required. string
The JSON key associated with this GCP account.
Description string
A user-friendly description of this GCP account.
Environments List<string>
A list of environment IDs associated with this resource.
GcpAccountId string
The ID of this resource.
Name string
The name of this GCP account.
SpaceId string
The space ID associated with this resource.
TenantTags List<string>
A list of tenant tags associated with this resource.
TenantedDeploymentParticipation string
The tenanted deployment mode of the resource. Valid account types are Untenanted, TenantedOrUntenanted, or Tenanted.
Tenants List<string>
A list of tenant IDs associated with this resource.
JsonKey This property is required. string
The JSON key associated with this GCP account.
Description string
A user-friendly description of this GCP account.
Environments []string
A list of environment IDs associated with this resource.
GcpAccountId string
The ID of this resource.
Name string
The name of this GCP account.
SpaceId string
The space ID associated with this resource.
TenantTags []string
A list of tenant tags associated with this resource.
TenantedDeploymentParticipation string
The tenanted deployment mode of the resource. Valid account types are Untenanted, TenantedOrUntenanted, or Tenanted.
Tenants []string
A list of tenant IDs associated with this resource.
jsonKey This property is required. String
The JSON key associated with this GCP account.
description String
A user-friendly description of this GCP account.
environments List<String>
A list of environment IDs associated with this resource.
gcpAccountId String
The ID of this resource.
name String
The name of this GCP account.
spaceId String
The space ID associated with this resource.
tenantTags List<String>
A list of tenant tags associated with this resource.
tenantedDeploymentParticipation String
The tenanted deployment mode of the resource. Valid account types are Untenanted, TenantedOrUntenanted, or Tenanted.
tenants List<String>
A list of tenant IDs associated with this resource.
jsonKey This property is required. string
The JSON key associated with this GCP account.
description string
A user-friendly description of this GCP account.
environments string[]
A list of environment IDs associated with this resource.
gcpAccountId string
The ID of this resource.
name string
The name of this GCP account.
spaceId string
The space ID associated with this resource.
tenantTags string[]
A list of tenant tags associated with this resource.
tenantedDeploymentParticipation string
The tenanted deployment mode of the resource. Valid account types are Untenanted, TenantedOrUntenanted, or Tenanted.
tenants string[]
A list of tenant IDs associated with this resource.
json_key This property is required. str
The JSON key associated with this GCP account.
description str
A user-friendly description of this GCP account.
environments Sequence[str]
A list of environment IDs associated with this resource.
gcp_account_id str
The ID of this resource.
name str
The name of this GCP account.
space_id str
The space ID associated with this resource.
tenant_tags Sequence[str]
A list of tenant tags associated with this resource.
tenanted_deployment_participation str
The tenanted deployment mode of the resource. Valid account types are Untenanted, TenantedOrUntenanted, or Tenanted.
tenants Sequence[str]
A list of tenant IDs associated with this resource.
jsonKey This property is required. String
The JSON key associated with this GCP account.
description String
A user-friendly description of this GCP account.
environments List<String>
A list of environment IDs associated with this resource.
gcpAccountId String
The ID of this resource.
name String
The name of this GCP account.
spaceId String
The space ID associated with this resource.
tenantTags List<String>
A list of tenant tags associated with this resource.
tenantedDeploymentParticipation String
The tenanted deployment mode of the resource. Valid account types are Untenanted, TenantedOrUntenanted, or Tenanted.
tenants List<String>
A list of tenant IDs associated with this resource.

Outputs

All input properties are implicitly available as output properties. Additionally, the GcpAccount 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 GcpAccount Resource

Get an existing GcpAccount 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?: GcpAccountState, opts?: CustomResourceOptions): GcpAccount
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        description: Optional[str] = None,
        environments: Optional[Sequence[str]] = None,
        gcp_account_id: Optional[str] = None,
        json_key: Optional[str] = None,
        name: Optional[str] = None,
        space_id: Optional[str] = None,
        tenant_tags: Optional[Sequence[str]] = None,
        tenanted_deployment_participation: Optional[str] = None,
        tenants: Optional[Sequence[str]] = None) -> GcpAccount
func GetGcpAccount(ctx *Context, name string, id IDInput, state *GcpAccountState, opts ...ResourceOption) (*GcpAccount, error)
public static GcpAccount Get(string name, Input<string> id, GcpAccountState? state, CustomResourceOptions? opts = null)
public static GcpAccount get(String name, Output<String> id, GcpAccountState state, CustomResourceOptions options)
resources:  _:    type: octopusdeploy:GcpAccount    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:
Description string
A user-friendly description of this GCP account.
Environments List<string>
A list of environment IDs associated with this resource.
GcpAccountId string
The ID of this resource.
JsonKey string
The JSON key associated with this GCP account.
Name string
The name of this GCP account.
SpaceId string
The space ID associated with this resource.
TenantTags List<string>
A list of tenant tags associated with this resource.
TenantedDeploymentParticipation string
The tenanted deployment mode of the resource. Valid account types are Untenanted, TenantedOrUntenanted, or Tenanted.
Tenants List<string>
A list of tenant IDs associated with this resource.
Description string
A user-friendly description of this GCP account.
Environments []string
A list of environment IDs associated with this resource.
GcpAccountId string
The ID of this resource.
JsonKey string
The JSON key associated with this GCP account.
Name string
The name of this GCP account.
SpaceId string
The space ID associated with this resource.
TenantTags []string
A list of tenant tags associated with this resource.
TenantedDeploymentParticipation string
The tenanted deployment mode of the resource. Valid account types are Untenanted, TenantedOrUntenanted, or Tenanted.
Tenants []string
A list of tenant IDs associated with this resource.
description String
A user-friendly description of this GCP account.
environments List<String>
A list of environment IDs associated with this resource.
gcpAccountId String
The ID of this resource.
jsonKey String
The JSON key associated with this GCP account.
name String
The name of this GCP account.
spaceId String
The space ID associated with this resource.
tenantTags List<String>
A list of tenant tags associated with this resource.
tenantedDeploymentParticipation String
The tenanted deployment mode of the resource. Valid account types are Untenanted, TenantedOrUntenanted, or Tenanted.
tenants List<String>
A list of tenant IDs associated with this resource.
description string
A user-friendly description of this GCP account.
environments string[]
A list of environment IDs associated with this resource.
gcpAccountId string
The ID of this resource.
jsonKey string
The JSON key associated with this GCP account.
name string
The name of this GCP account.
spaceId string
The space ID associated with this resource.
tenantTags string[]
A list of tenant tags associated with this resource.
tenantedDeploymentParticipation string
The tenanted deployment mode of the resource. Valid account types are Untenanted, TenantedOrUntenanted, or Tenanted.
tenants string[]
A list of tenant IDs associated with this resource.
description str
A user-friendly description of this GCP account.
environments Sequence[str]
A list of environment IDs associated with this resource.
gcp_account_id str
The ID of this resource.
json_key str
The JSON key associated with this GCP account.
name str
The name of this GCP account.
space_id str
The space ID associated with this resource.
tenant_tags Sequence[str]
A list of tenant tags associated with this resource.
tenanted_deployment_participation str
The tenanted deployment mode of the resource. Valid account types are Untenanted, TenantedOrUntenanted, or Tenanted.
tenants Sequence[str]
A list of tenant IDs associated with this resource.
description String
A user-friendly description of this GCP account.
environments List<String>
A list of environment IDs associated with this resource.
gcpAccountId String
The ID of this resource.
jsonKey String
The JSON key associated with this GCP account.
name String
The name of this GCP account.
spaceId String
The space ID associated with this resource.
tenantTags List<String>
A list of tenant tags associated with this resource.
tenantedDeploymentParticipation String
The tenanted deployment mode of the resource. Valid account types are Untenanted, TenantedOrUntenanted, or Tenanted.
tenants List<String>
A list of tenant IDs associated with this resource.

Import

$ pulumi import octopusdeploy:index/gcpAccount:GcpAccount [options] octopusdeploy_gcp_account.<name> <account-id>
Copy

To learn more about importing existing cloud resources, see Importing resources.

Package Details

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