prismacloud 1.7.0 published on Monday, Apr 14, 2025 by paloaltonetworks
prismacloud.getGcpTemplate
Explore with Pulumi AI
prismacloud 1.7.0 published on Monday, Apr 14, 2025 by paloaltonetworks
Retrieve information about gcp template for gcp account.
Example Usage
Gcp Project
import * as pulumi from "@pulumi/pulumi";
import * as prismacloud from "@pulumi/prismacloud";
const example = prismacloud.getGcpTemplate({
accountType: "account",
authenticationType: "service_account",
fileName: "<file-name>",
name: "test account",
projectId: "<project_id>",
});
import pulumi
import pulumi_prismacloud as prismacloud
example = prismacloud.get_gcp_template(account_type="account",
authentication_type="service_account",
file_name="<file-name>",
name="test account",
project_id="<project_id>")
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/prismacloud/prismacloud"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := prismacloud.GetGcpTemplate(ctx, &prismacloud.GetGcpTemplateArgs{
AccountType: "account",
AuthenticationType: "service_account",
FileName: "<file-name>",
Name: pulumi.StringRef("test account"),
ProjectId: pulumi.StringRef("<project_id>"),
}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Prismacloud = Pulumi.Prismacloud;
return await Deployment.RunAsync(() =>
{
var example = Prismacloud.GetGcpTemplate.Invoke(new()
{
AccountType = "account",
AuthenticationType = "service_account",
FileName = "<file-name>",
Name = "test account",
ProjectId = "<project_id>",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.prismacloud.PrismacloudFunctions;
import com.pulumi.prismacloud.inputs.GetGcpTemplateArgs;
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) {
final var example = PrismacloudFunctions.getGcpTemplate(GetGcpTemplateArgs.builder()
.accountType("account")
.authenticationType("service_account")
.fileName("<file-name>")
.name("test account")
.projectId("<project_id>")
.build());
}
}
variables:
example:
fn::invoke:
function: prismacloud:getGcpTemplate
arguments:
accountType: account
authenticationType: service_account
fileName: <file-name>
name: test account
projectId: <project_id>
Gcp Master Service Account
import * as pulumi from "@pulumi/pulumi";
import * as prismacloud from "@pulumi/prismacloud";
const example = prismacloud.getGcpTemplate({
accountType: "masterServiceAccount",
authenticationType: "service_account",
fileName: "<file-name>",
name: "test account",
projectId: "<project_id>",
});
import pulumi
import pulumi_prismacloud as prismacloud
example = prismacloud.get_gcp_template(account_type="masterServiceAccount",
authentication_type="service_account",
file_name="<file-name>",
name="test account",
project_id="<project_id>")
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/prismacloud/prismacloud"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := prismacloud.GetGcpTemplate(ctx, &prismacloud.GetGcpTemplateArgs{
AccountType: "masterServiceAccount",
AuthenticationType: "service_account",
FileName: "<file-name>",
Name: pulumi.StringRef("test account"),
ProjectId: pulumi.StringRef("<project_id>"),
}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Prismacloud = Pulumi.Prismacloud;
return await Deployment.RunAsync(() =>
{
var example = Prismacloud.GetGcpTemplate.Invoke(new()
{
AccountType = "masterServiceAccount",
AuthenticationType = "service_account",
FileName = "<file-name>",
Name = "test account",
ProjectId = "<project_id>",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.prismacloud.PrismacloudFunctions;
import com.pulumi.prismacloud.inputs.GetGcpTemplateArgs;
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) {
final var example = PrismacloudFunctions.getGcpTemplate(GetGcpTemplateArgs.builder()
.accountType("masterServiceAccount")
.authenticationType("service_account")
.fileName("<file-name>")
.name("test account")
.projectId("<project_id>")
.build());
}
}
variables:
example:
fn::invoke:
function: prismacloud:getGcpTemplate
arguments:
accountType: masterServiceAccount
authenticationType: service_account
fileName: <file-name>
name: test account
projectId: <project_id>
Gcp Organization
import * as pulumi from "@pulumi/pulumi";
import * as prismacloud from "@pulumi/prismacloud";
const example = prismacloud.getGcpTemplate({
accountType: "organization",
authenticationType: "service_account",
fileName: "<file-name>",
name: "test account",
orgId: "<org_id>",
});
import pulumi
import pulumi_prismacloud as prismacloud
example = prismacloud.get_gcp_template(account_type="organization",
authentication_type="service_account",
file_name="<file-name>",
name="test account",
org_id="<org_id>")
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/prismacloud/prismacloud"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := prismacloud.GetGcpTemplate(ctx, &prismacloud.GetGcpTemplateArgs{
AccountType: "organization",
AuthenticationType: "service_account",
FileName: "<file-name>",
Name: pulumi.StringRef("test account"),
OrgId: pulumi.StringRef("<org_id>"),
}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Prismacloud = Pulumi.Prismacloud;
return await Deployment.RunAsync(() =>
{
var example = Prismacloud.GetGcpTemplate.Invoke(new()
{
AccountType = "organization",
AuthenticationType = "service_account",
FileName = "<file-name>",
Name = "test account",
OrgId = "<org_id>",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.prismacloud.PrismacloudFunctions;
import com.pulumi.prismacloud.inputs.GetGcpTemplateArgs;
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) {
final var example = PrismacloudFunctions.getGcpTemplate(GetGcpTemplateArgs.builder()
.accountType("organization")
.authenticationType("service_account")
.fileName("<file-name>")
.name("test account")
.orgId("<org_id>")
.build());
}
}
variables:
example:
fn::invoke:
function: prismacloud:getGcpTemplate
arguments:
accountType: organization
authenticationType: service_account
fileName: <file-name>
name: test account
orgId: <org_id>
Using getGcpTemplate
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getGcpTemplate(args: GetGcpTemplateArgs, opts?: InvokeOptions): Promise<GetGcpTemplateResult>
function getGcpTemplateOutput(args: GetGcpTemplateOutputArgs, opts?: InvokeOptions): Output<GetGcpTemplateResult>
def get_gcp_template(account_type: Optional[str] = None,
authentication_type: Optional[str] = None,
features: Optional[Sequence[str]] = None,
file_name: Optional[str] = None,
flow_log_storage_bucket: Optional[str] = None,
id: Optional[str] = None,
name: Optional[str] = None,
org_id: Optional[str] = None,
project_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetGcpTemplateResult
def get_gcp_template_output(account_type: Optional[pulumi.Input[str]] = None,
authentication_type: Optional[pulumi.Input[str]] = None,
features: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
file_name: Optional[pulumi.Input[str]] = None,
flow_log_storage_bucket: Optional[pulumi.Input[str]] = None,
id: Optional[pulumi.Input[str]] = None,
name: Optional[pulumi.Input[str]] = None,
org_id: Optional[pulumi.Input[str]] = None,
project_id: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetGcpTemplateResult]
func GetGcpTemplate(ctx *Context, args *GetGcpTemplateArgs, opts ...InvokeOption) (*GetGcpTemplateResult, error)
func GetGcpTemplateOutput(ctx *Context, args *GetGcpTemplateOutputArgs, opts ...InvokeOption) GetGcpTemplateResultOutput
> Note: This function is named GetGcpTemplate
in the Go SDK.
public static class GetGcpTemplate
{
public static Task<GetGcpTemplateResult> InvokeAsync(GetGcpTemplateArgs args, InvokeOptions? opts = null)
public static Output<GetGcpTemplateResult> Invoke(GetGcpTemplateInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetGcpTemplateResult> getGcpTemplate(GetGcpTemplateArgs args, InvokeOptions options)
public static Output<GetGcpTemplateResult> getGcpTemplate(GetGcpTemplateArgs args, InvokeOptions options)
fn::invoke:
function: prismacloud:index/getGcpTemplate:getGcpTemplate
arguments:
# arguments dictionary
The following arguments are supported:
- Account
Type string - Gcp account type.
- Authentication
Type string - Authentication type of gcp account.
- File
Name string - File name to store gcp template (Provide filename along with path to store gcp template).
- Features List<string>
- List of features. If features key/field is not passed, then the default features will be applicable. Refer : **Supported features readme ** for more details.
- Flow
Log stringStorage Bucket - Cloud Storage Bucket name that is used store the flow logs.
- Id string
- Name string
- Name to be used for the account on the Prisma Cloud platform (must be unique).
- Org
Id string - Gcp organization ID. Must be provided for account type
organization
. - Project
Id string - Gcp Project ID. Must be provided for account type
account
andmasterServiceAccount
.
- Account
Type string - Gcp account type.
- Authentication
Type string - Authentication type of gcp account.
- File
Name string - File name to store gcp template (Provide filename along with path to store gcp template).
- Features []string
- List of features. If features key/field is not passed, then the default features will be applicable. Refer : **Supported features readme ** for more details.
- Flow
Log stringStorage Bucket - Cloud Storage Bucket name that is used store the flow logs.
- Id string
- Name string
- Name to be used for the account on the Prisma Cloud platform (must be unique).
- Org
Id string - Gcp organization ID. Must be provided for account type
organization
. - Project
Id string - Gcp Project ID. Must be provided for account type
account
andmasterServiceAccount
.
- account
Type String - Gcp account type.
- authentication
Type String - Authentication type of gcp account.
- file
Name String - File name to store gcp template (Provide filename along with path to store gcp template).
- features List<String>
- List of features. If features key/field is not passed, then the default features will be applicable. Refer : **Supported features readme ** for more details.
- flow
Log StringStorage Bucket - Cloud Storage Bucket name that is used store the flow logs.
- id String
- name String
- Name to be used for the account on the Prisma Cloud platform (must be unique).
- org
Id String - Gcp organization ID. Must be provided for account type
organization
. - project
Id String - Gcp Project ID. Must be provided for account type
account
andmasterServiceAccount
.
- account
Type string - Gcp account type.
- authentication
Type string - Authentication type of gcp account.
- file
Name string - File name to store gcp template (Provide filename along with path to store gcp template).
- features string[]
- List of features. If features key/field is not passed, then the default features will be applicable. Refer : **Supported features readme ** for more details.
- flow
Log stringStorage Bucket - Cloud Storage Bucket name that is used store the flow logs.
- id string
- name string
- Name to be used for the account on the Prisma Cloud platform (must be unique).
- org
Id string - Gcp organization ID. Must be provided for account type
organization
. - project
Id string - Gcp Project ID. Must be provided for account type
account
andmasterServiceAccount
.
- account_
type str - Gcp account type.
- authentication_
type str - Authentication type of gcp account.
- file_
name str - File name to store gcp template (Provide filename along with path to store gcp template).
- features Sequence[str]
- List of features. If features key/field is not passed, then the default features will be applicable. Refer : **Supported features readme ** for more details.
- flow_
log_ strstorage_ bucket - Cloud Storage Bucket name that is used store the flow logs.
- id str
- name str
- Name to be used for the account on the Prisma Cloud platform (must be unique).
- org_
id str - Gcp organization ID. Must be provided for account type
organization
. - project_
id str - Gcp Project ID. Must be provided for account type
account
andmasterServiceAccount
.
- account
Type String - Gcp account type.
- authentication
Type String - Authentication type of gcp account.
- file
Name String - File name to store gcp template (Provide filename along with path to store gcp template).
- features List<String>
- List of features. If features key/field is not passed, then the default features will be applicable. Refer : **Supported features readme ** for more details.
- flow
Log StringStorage Bucket - Cloud Storage Bucket name that is used store the flow logs.
- id String
- name String
- Name to be used for the account on the Prisma Cloud platform (must be unique).
- org
Id String - Gcp organization ID. Must be provided for account type
organization
. - project
Id String - Gcp Project ID. Must be provided for account type
account
andmasterServiceAccount
.
getGcpTemplate Result
The following output properties are available:
- Account
Type string - Authentication
Type string - File
Name string - Id string
- Features List<string>
- Flow
Log stringStorage Bucket - Name string
- Org
Id string - Project
Id string
- Account
Type string - Authentication
Type string - File
Name string - Id string
- Features []string
- Flow
Log stringStorage Bucket - Name string
- Org
Id string - Project
Id string
- account
Type String - authentication
Type String - file
Name String - id String
- features List<String>
- flow
Log StringStorage Bucket - name String
- org
Id String - project
Id String
- account
Type string - authentication
Type string - file
Name string - id string
- features string[]
- flow
Log stringStorage Bucket - name string
- org
Id string - project
Id string
- account_
type str - authentication_
type str - file_
name str - id str
- features Sequence[str]
- flow_
log_ strstorage_ bucket - name str
- org_
id str - project_
id str
- account
Type String - authentication
Type String - file
Name String - id String
- features List<String>
- flow
Log StringStorage Bucket - name String
- org
Id String - project
Id String
Package Details
- Repository
- prismacloud paloaltonetworks/terraform-provider-prismacloud
- License
- Notes
- This Pulumi package is based on the
prismacloud
Terraform Provider.
prismacloud 1.7.0 published on Monday, Apr 14, 2025 by paloaltonetworks