prismacloud 1.7.0 published on Monday, Apr 14, 2025 by paloaltonetworks
prismacloud.getAzureTemplate
Start a Neo task
Explain and create a prismacloud.getAzureTemplate resource
prismacloud 1.7.0 published on Monday, Apr 14, 2025 by paloaltonetworks
Retrieve information about azure template for azure account.
Example Usage
Azure Subscription
import * as pulumi from "@pulumi/pulumi";
import * as prismacloud from "@pulumi/prismacloud";
const example = prismacloud.getAzureTemplate({
accountType: "account",
deploymentType: "azure",
fileName: "<file-name>",
subscriptionId: "<subscription-id>",
tenantId: "<tenant_id>",
});
import pulumi
import pulumi_prismacloud as prismacloud
example = prismacloud.get_azure_template(account_type="account",
deployment_type="azure",
file_name="<file-name>",
subscription_id="<subscription-id>",
tenant_id="<tenant_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.GetAzureTemplate(ctx, &prismacloud.GetAzureTemplateArgs{
AccountType: "account",
DeploymentType: pulumi.StringRef("azure"),
FileName: "<file-name>",
SubscriptionId: pulumi.StringRef("<subscription-id>"),
TenantId: "<tenant_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.GetAzureTemplate.Invoke(new()
{
AccountType = "account",
DeploymentType = "azure",
FileName = "<file-name>",
SubscriptionId = "<subscription-id>",
TenantId = "<tenant_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.GetAzureTemplateArgs;
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.getAzureTemplate(GetAzureTemplateArgs.builder()
.accountType("account")
.deploymentType("azure")
.fileName("<file-name>")
.subscriptionId("<subscription-id>")
.tenantId("<tenant_id>")
.build());
}
}
variables:
example:
fn::invoke:
function: prismacloud:getAzureTemplate
arguments:
accountType: account
deploymentType: azure
fileName: <file-name>
subscriptionId: <subscription-id>
tenantId: <tenant_id>
Azure Active Directory
import * as pulumi from "@pulumi/pulumi";
import * as prismacloud from "@pulumi/prismacloud";
const example = prismacloud.getAzureTemplate({
accountType: "tenant",
deploymentType: "azure",
fileName: "<file-name>",
tenantId: "<tenant-id>",
});
import pulumi
import pulumi_prismacloud as prismacloud
example = prismacloud.get_azure_template(account_type="tenant",
deployment_type="azure",
file_name="<file-name>",
tenant_id="<tenant-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.GetAzureTemplate(ctx, &prismacloud.GetAzureTemplateArgs{
AccountType: "tenant",
DeploymentType: pulumi.StringRef("azure"),
FileName: "<file-name>",
TenantId: "<tenant-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.GetAzureTemplate.Invoke(new()
{
AccountType = "tenant",
DeploymentType = "azure",
FileName = "<file-name>",
TenantId = "<tenant-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.GetAzureTemplateArgs;
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.getAzureTemplate(GetAzureTemplateArgs.builder()
.accountType("tenant")
.deploymentType("azure")
.fileName("<file-name>")
.tenantId("<tenant-id>")
.build());
}
}
variables:
example:
fn::invoke:
function: prismacloud:getAzureTemplate
arguments:
accountType: tenant
deploymentType: azure
fileName: <file-name>
tenantId: <tenant-id>
Azure Tenant
import * as pulumi from "@pulumi/pulumi";
import * as prismacloud from "@pulumi/prismacloud";
const example = prismacloud.getAzureTemplate({
accountType: "tenant",
deploymentType: "azure",
fileName: "<file-name>",
rootSyncEnabled: true,
tenantId: "<tenant-id>",
});
import pulumi
import pulumi_prismacloud as prismacloud
example = prismacloud.get_azure_template(account_type="tenant",
deployment_type="azure",
file_name="<file-name>",
root_sync_enabled=True,
tenant_id="<tenant-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.GetAzureTemplate(ctx, &prismacloud.GetAzureTemplateArgs{
AccountType: "tenant",
DeploymentType: pulumi.StringRef("azure"),
FileName: "<file-name>",
RootSyncEnabled: pulumi.BoolRef(true),
TenantId: "<tenant-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.GetAzureTemplate.Invoke(new()
{
AccountType = "tenant",
DeploymentType = "azure",
FileName = "<file-name>",
RootSyncEnabled = true,
TenantId = "<tenant-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.GetAzureTemplateArgs;
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.getAzureTemplate(GetAzureTemplateArgs.builder()
.accountType("tenant")
.deploymentType("azure")
.fileName("<file-name>")
.rootSyncEnabled(true)
.tenantId("<tenant-id>")
.build());
}
}
variables:
example:
fn::invoke:
function: prismacloud:getAzureTemplate
arguments:
accountType: tenant
deploymentType: azure
fileName: <file-name>
rootSyncEnabled: true
tenantId: <tenant-id>
Using getAzureTemplate
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 getAzureTemplate(args: GetAzureTemplateArgs, opts?: InvokeOptions): Promise<GetAzureTemplateResult>
function getAzureTemplateOutput(args: GetAzureTemplateOutputArgs, opts?: InvokeOptions): Output<GetAzureTemplateResult>def get_azure_template(account_type: Optional[str] = None,
deployment_type: Optional[str] = None,
features: Optional[Sequence[str]] = None,
file_name: Optional[str] = None,
id: Optional[str] = None,
root_sync_enabled: Optional[bool] = None,
subscription_id: Optional[str] = None,
tenant_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetAzureTemplateResult
def get_azure_template_output(account_type: Optional[pulumi.Input[str]] = None,
deployment_type: Optional[pulumi.Input[str]] = None,
features: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
file_name: Optional[pulumi.Input[str]] = None,
id: Optional[pulumi.Input[str]] = None,
root_sync_enabled: Optional[pulumi.Input[bool]] = None,
subscription_id: Optional[pulumi.Input[str]] = None,
tenant_id: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetAzureTemplateResult]func GetAzureTemplate(ctx *Context, args *GetAzureTemplateArgs, opts ...InvokeOption) (*GetAzureTemplateResult, error)
func GetAzureTemplateOutput(ctx *Context, args *GetAzureTemplateOutputArgs, opts ...InvokeOption) GetAzureTemplateResultOutput> Note: This function is named GetAzureTemplate in the Go SDK.
public static class GetAzureTemplate
{
public static Task<GetAzureTemplateResult> InvokeAsync(GetAzureTemplateArgs args, InvokeOptions? opts = null)
public static Output<GetAzureTemplateResult> Invoke(GetAzureTemplateInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetAzureTemplateResult> getAzureTemplate(GetAzureTemplateArgs args, InvokeOptions options)
public static Output<GetAzureTemplateResult> getAzureTemplate(GetAzureTemplateArgs args, InvokeOptions options)
fn::invoke:
function: prismacloud:index/getAzureTemplate:getAzureTemplate
arguments:
# arguments dictionaryThe following arguments are supported:
- Account
Type string - Azure account type.
- File
Name string - File name to store azure template (Provide filename along with path to store azure template).
- Tenant
Id string - Azure tenant ID.
- Deployment
Type string - Deployment type.
- 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.
- Id string
- Root
Sync boolEnabled - Azure tenant has children. Must be set to true if
account_typeistenant. - Subscription
Id string - Azure subscription ID.
- Account
Type string - Azure account type.
- File
Name string - File name to store azure template (Provide filename along with path to store azure template).
- Tenant
Id string - Azure tenant ID.
- Deployment
Type string - Deployment type.
- 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.
- Id string
- Root
Sync boolEnabled - Azure tenant has children. Must be set to true if
account_typeistenant. - Subscription
Id string - Azure subscription ID.
- account
Type String - Azure account type.
- file
Name String - File name to store azure template (Provide filename along with path to store azure template).
- tenant
Id String - Azure tenant ID.
- deployment
Type String - Deployment type.
- 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.
- id String
- root
Sync BooleanEnabled - Azure tenant has children. Must be set to true if
account_typeistenant. - subscription
Id String - Azure subscription ID.
- account
Type string - Azure account type.
- file
Name string - File name to store azure template (Provide filename along with path to store azure template).
- tenant
Id string - Azure tenant ID.
- deployment
Type string - Deployment type.
- 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.
- id string
- root
Sync booleanEnabled - Azure tenant has children. Must be set to true if
account_typeistenant. - subscription
Id string - Azure subscription ID.
- account_
type str - Azure account type.
- file_
name str - File name to store azure template (Provide filename along with path to store azure template).
- tenant_
id str - Azure tenant ID.
- deployment_
type str - Deployment type.
- 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.
- id str
- root_
sync_ boolenabled - Azure tenant has children. Must be set to true if
account_typeistenant. - subscription_
id str - Azure subscription ID.
- account
Type String - Azure account type.
- file
Name String - File name to store azure template (Provide filename along with path to store azure template).
- tenant
Id String - Azure tenant ID.
- deployment
Type String - Deployment type.
- 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.
- id String
- root
Sync BooleanEnabled - Azure tenant has children. Must be set to true if
account_typeistenant. - subscription
Id String - Azure subscription ID.
getAzureTemplate Result
The following output properties are available:
- Account
Type string - File
Name string - Id string
- Tenant
Id string - Deployment
Type string - Features List<string>
- Root
Sync boolEnabled - Subscription
Id string
- Account
Type string - File
Name string - Id string
- Tenant
Id string - Deployment
Type string - Features []string
- Root
Sync boolEnabled - Subscription
Id string
- account
Type String - file
Name String - id String
- tenant
Id String - deployment
Type String - features List<String>
- root
Sync BooleanEnabled - subscription
Id String
- account
Type string - file
Name string - id string
- tenant
Id string - deployment
Type string - features string[]
- root
Sync booleanEnabled - subscription
Id string
- account_
type str - file_
name str - id str
- tenant_
id str - deployment_
type str - features Sequence[str]
- root_
sync_ boolenabled - subscription_
id str
- account
Type String - file
Name String - id String
- tenant
Id String - deployment
Type String - features List<String>
- root
Sync BooleanEnabled - subscription
Id String
Package Details
- Repository
- prismacloud paloaltonetworks/terraform-provider-prismacloud
- License
- Notes
- This Pulumi package is based on the
prismacloudTerraform Provider.
prismacloud 1.7.0 published on Monday, Apr 14, 2025 by paloaltonetworks
