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});
import pulumi
import pulumi_spectrocloud as spectrocloud
gcp_1 = spectrocloud.CloudaccountGcp("gcp-1", gcp_json_credentials=var["gcp_serviceaccount_json"])
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
})
}
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,
});
});
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());
}
}
resources:
gcp-1:
type: spectrocloud:CloudaccountGcp
properties:
gcpJsonCredentials: ${var.gcp_serviceaccount_json}
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 string
- The unique name of the resource.
- args CloudaccountGcpArgs
- 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 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 string
- The unique name of the resource.
- args CloudaccountGcpArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args CloudaccountGcpArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args 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",
});
example, err := spectrocloud.NewCloudaccountGcp(ctx, "cloudaccountGcpResource", &spectrocloud.CloudaccountGcpArgs{
GcpJsonCredentials: pulumi.String("string"),
CloudaccountGcpId: pulumi.String("string"),
Context: pulumi.String("string"),
Name: pulumi.String("string"),
})
var cloudaccountGcpResource = new CloudaccountGcp("cloudaccountGcpResource", CloudaccountGcpArgs.builder()
.gcpJsonCredentials("string")
.cloudaccountGcpId("string")
.context("string")
.name("string")
.build());
cloudaccount_gcp_resource = spectrocloud.CloudaccountGcp("cloudaccountGcpResource",
gcp_json_credentials="string",
cloudaccount_gcp_id="string",
context="string",
name="string")
const cloudaccountGcpResource = new spectrocloud.CloudaccountGcp("cloudaccountGcpResource", {
gcpJsonCredentials: "string",
cloudaccountGcpId: "string",
context: "string",
name: "string",
});
type: spectrocloud:CloudaccountGcp
properties:
cloudaccountGcpId: string
context: string
gcpJsonCredentials: string
name: string
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:
- Gcp
Json stringCredentials - The GCP credentials in JSON format. These credentials are required to authenticate and manage.
- Cloudaccount
Gcp stringId - The ID of this resource.
- Context string
- The context of the GCP configuration. Allowed values are
project
ortenant
. Default value isproject
. If theproject
context is specified, the project name will sourced from the provider configuration parameterproject_name
. - Name string
- The name of the GCP account.
- Gcp
Json stringCredentials - The GCP credentials in JSON format. These credentials are required to authenticate and manage.
- Cloudaccount
Gcp stringId - The ID of this resource.
- Context string
- The context of the GCP configuration. Allowed values are
project
ortenant
. Default value isproject
. If theproject
context is specified, the project name will sourced from the provider configuration parameterproject_name
. - Name string
- The name of the GCP account.
- gcp
Json StringCredentials - The GCP credentials in JSON format. These credentials are required to authenticate and manage.
- cloudaccount
Gcp StringId - The ID of this resource.
- context String
- The context of the GCP configuration. Allowed values are
project
ortenant
. Default value isproject
. If theproject
context is specified, the project name will sourced from the provider configuration parameterproject_name
. - name String
- The name of the GCP account.
- gcp
Json stringCredentials - The GCP credentials in JSON format. These credentials are required to authenticate and manage.
- cloudaccount
Gcp stringId - The ID of this resource.
- context string
- The context of the GCP configuration. Allowed values are
project
ortenant
. Default value isproject
. If theproject
context is specified, the project name will sourced from the provider configuration parameterproject_name
. - name string
- The name of the GCP account.
- gcp_
json_ strcredentials - The GCP credentials in JSON format. These credentials are required to authenticate and manage.
- cloudaccount_
gcp_ strid - The ID of this resource.
- context str
- The context of the GCP configuration. Allowed values are
project
ortenant
. Default value isproject
. If theproject
context is specified, the project name will sourced from the provider configuration parameterproject_name
. - name str
- The name of the GCP account.
- gcp
Json StringCredentials - The GCP credentials in JSON format. These credentials are required to authenticate and manage.
- cloudaccount
Gcp StringId - The ID of this resource.
- context String
- The context of the GCP configuration. Allowed values are
project
ortenant
. Default value isproject
. If theproject
context is specified, the project name will sourced from the provider configuration parameterproject_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
- 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.
- Cloudaccount
Gcp stringId - The ID of this resource.
- Context string
- The context of the GCP configuration. Allowed values are
project
ortenant
. Default value isproject
. If theproject
context is specified, the project name will sourced from the provider configuration parameterproject_name
. - Gcp
Json stringCredentials - The GCP credentials in JSON format. These credentials are required to authenticate and manage.
- Name string
- The name of the GCP account.
- Cloudaccount
Gcp stringId - The ID of this resource.
- Context string
- The context of the GCP configuration. Allowed values are
project
ortenant
. Default value isproject
. If theproject
context is specified, the project name will sourced from the provider configuration parameterproject_name
. - Gcp
Json stringCredentials - The GCP credentials in JSON format. These credentials are required to authenticate and manage.
- Name string
- The name of the GCP account.
- cloudaccount
Gcp StringId - The ID of this resource.
- context String
- The context of the GCP configuration. Allowed values are
project
ortenant
. Default value isproject
. If theproject
context is specified, the project name will sourced from the provider configuration parameterproject_name
. - gcp
Json StringCredentials - The GCP credentials in JSON format. These credentials are required to authenticate and manage.
- name String
- The name of the GCP account.
- cloudaccount
Gcp stringId - The ID of this resource.
- context string
- The context of the GCP configuration. Allowed values are
project
ortenant
. Default value isproject
. If theproject
context is specified, the project name will sourced from the provider configuration parameterproject_name
. - gcp
Json stringCredentials - The GCP credentials in JSON format. These credentials are required to authenticate and manage.
- name string
- The name of the GCP account.
- cloudaccount_
gcp_ strid - The ID of this resource.
- context str
- The context of the GCP configuration. Allowed values are
project
ortenant
. Default value isproject
. If theproject
context is specified, the project name will sourced from the provider configuration parameterproject_name
. - gcp_
json_ strcredentials - The GCP credentials in JSON format. These credentials are required to authenticate and manage.
- name str
- The name of the GCP account.
- cloudaccount
Gcp StringId - The ID of this resource.
- context String
- The context of the GCP configuration. Allowed values are
project
ortenant
. Default value isproject
. If theproject
context is specified, the project name will sourced from the provider configuration parameterproject_name
. - gcp
Json StringCredentials - 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.