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"});
import pulumi
import pulumi_octopusdeploy as octopusdeploy
example = octopusdeploy.GcpAccount("example", json_key="json-key")
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
})
}
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",
});
});
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());
}
}
resources:
example:
type: octopusdeploy:GcpAccount
properties:
jsonKey: json-key
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 string
- The unique name of the resource.
- args GcpAccountArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args 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 string
- The unique name of the resource.
- args GcpAccountArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args GcpAccountArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args 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",
},
});
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"),
},
})
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());
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"])
const gcpAccountResource = new octopusdeploy.GcpAccount("gcpAccountResource", {
jsonKey: "string",
description: "string",
environments: ["string"],
gcpAccountId: "string",
name: "string",
spaceId: "string",
tenantTags: ["string"],
tenantedDeploymentParticipation: "string",
tenants: ["string"],
});
type: octopusdeploy:GcpAccount
properties:
description: string
environments:
- string
gcpAccountId: string
jsonKey: string
name: string
spaceId: string
tenantTags:
- string
tenantedDeploymentParticipation: string
tenants:
- string
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:
- Json
Key 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.
- Gcp
Account stringId - The ID of this resource.
- Name string
- The name of this GCP account.
- Space
Id string - The space ID associated with this resource.
- List<string>
- A list of tenant tags associated with this resource.
- Tenanted
Deployment stringParticipation - The tenanted deployment mode of the resource. Valid account types are
Untenanted
,TenantedOrUntenanted
, orTenanted
. - Tenants List<string>
- A list of tenant IDs associated with this resource.
- Json
Key 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.
- Gcp
Account stringId - The ID of this resource.
- Name string
- The name of this GCP account.
- Space
Id string - The space ID associated with this resource.
- []string
- A list of tenant tags associated with this resource.
- Tenanted
Deployment stringParticipation - The tenanted deployment mode of the resource. Valid account types are
Untenanted
,TenantedOrUntenanted
, orTenanted
. - Tenants []string
- A list of tenant IDs associated with this resource.
- json
Key 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.
- gcp
Account StringId - The ID of this resource.
- name String
- The name of this GCP account.
- space
Id String - The space ID associated with this resource.
- List<String>
- A list of tenant tags associated with this resource.
- tenanted
Deployment StringParticipation - The tenanted deployment mode of the resource. Valid account types are
Untenanted
,TenantedOrUntenanted
, orTenanted
. - tenants List<String>
- A list of tenant IDs associated with this resource.
- json
Key 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.
- gcp
Account stringId - The ID of this resource.
- name string
- The name of this GCP account.
- space
Id string - The space ID associated with this resource.
- string[]
- A list of tenant tags associated with this resource.
- tenanted
Deployment stringParticipation - The tenanted deployment mode of the resource. Valid account types are
Untenanted
,TenantedOrUntenanted
, orTenanted
. - tenants string[]
- A list of tenant IDs associated with this resource.
- json_
key 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_ strid - The ID of this resource.
- name str
- The name of this GCP account.
- space_
id str - The space ID associated with this resource.
- Sequence[str]
- A list of tenant tags associated with this resource.
- tenanted_
deployment_ strparticipation - The tenanted deployment mode of the resource. Valid account types are
Untenanted
,TenantedOrUntenanted
, orTenanted
. - tenants Sequence[str]
- A list of tenant IDs associated with this resource.
- json
Key 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.
- gcp
Account StringId - The ID of this resource.
- name String
- The name of this GCP account.
- space
Id String - The space ID associated with this resource.
- List<String>
- A list of tenant tags associated with this resource.
- tenanted
Deployment StringParticipation - The tenanted deployment mode of the resource. Valid account types are
Untenanted
,TenantedOrUntenanted
, orTenanted
. - 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
- The unique name of the resulting resource.
- id
- 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
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- 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
- The unique name of the resulting resource.
- id
- 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
- The unique name of the resulting resource.
- id
- 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.
- Description string
- A user-friendly description of this GCP account.
- Environments List<string>
- A list of environment IDs associated with this resource.
- Gcp
Account stringId - The ID of this resource.
- Json
Key string - The JSON key associated with this GCP account.
- Name string
- The name of this GCP account.
- Space
Id string - The space ID associated with this resource.
- List<string>
- A list of tenant tags associated with this resource.
- Tenanted
Deployment stringParticipation - The tenanted deployment mode of the resource. Valid account types are
Untenanted
,TenantedOrUntenanted
, orTenanted
. - 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.
- Gcp
Account stringId - The ID of this resource.
- Json
Key string - The JSON key associated with this GCP account.
- Name string
- The name of this GCP account.
- Space
Id string - The space ID associated with this resource.
- []string
- A list of tenant tags associated with this resource.
- Tenanted
Deployment stringParticipation - The tenanted deployment mode of the resource. Valid account types are
Untenanted
,TenantedOrUntenanted
, orTenanted
. - 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.
- gcp
Account StringId - The ID of this resource.
- json
Key String - The JSON key associated with this GCP account.
- name String
- The name of this GCP account.
- space
Id String - The space ID associated with this resource.
- List<String>
- A list of tenant tags associated with this resource.
- tenanted
Deployment StringParticipation - The tenanted deployment mode of the resource. Valid account types are
Untenanted
,TenantedOrUntenanted
, orTenanted
. - 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.
- gcp
Account stringId - The ID of this resource.
- json
Key string - The JSON key associated with this GCP account.
- name string
- The name of this GCP account.
- space
Id string - The space ID associated with this resource.
- string[]
- A list of tenant tags associated with this resource.
- tenanted
Deployment stringParticipation - The tenanted deployment mode of the resource. Valid account types are
Untenanted
,TenantedOrUntenanted
, orTenanted
. - 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_ strid - 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.
- Sequence[str]
- A list of tenant tags associated with this resource.
- tenanted_
deployment_ strparticipation - The tenanted deployment mode of the resource. Valid account types are
Untenanted
,TenantedOrUntenanted
, orTenanted
. - 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.
- gcp
Account StringId - The ID of this resource.
- json
Key String - The JSON key associated with this GCP account.
- name String
- The name of this GCP account.
- space
Id String - The space ID associated with this resource.
- List<String>
- A list of tenant tags associated with this resource.
- tenanted
Deployment StringParticipation - The tenanted deployment mode of the resource. Valid account types are
Untenanted
,TenantedOrUntenanted
, orTenanted
. - 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>
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.