Viewing docs for vra 0.17.0
published on Tuesday, Mar 10, 2026 by vmware
published on Tuesday, Mar 10, 2026 by vmware
Viewing docs for vra 0.17.0
published on Tuesday, Mar 10, 2026 by vmware
published on Tuesday, Mar 10, 2026 by vmware
The following examples shows how to lookup for an approval policy:
Approval policy data source by its id:
import * as pulumi from "@pulumi/pulumi";
import * as vra from "@pulumi/vra";
const _this = vra.getPolicyApproval({
id: vraApprovalPolicyId,
});
import pulumi
import pulumi_vra as vra
this = vra.get_policy_approval(id=vra_approval_policy_id)
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/vra/vra"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := vra.LookupPolicyApproval(ctx, &vra.LookupPolicyApprovalArgs{
Id: pulumi.StringRef(vraApprovalPolicyId),
}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Vra = Pulumi.Vra;
return await Deployment.RunAsync(() =>
{
var @this = Vra.GetPolicyApproval.Invoke(new()
{
Id = vraApprovalPolicyId,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.vra.VraFunctions;
import com.pulumi.vra.inputs.GetPolicyApprovalArgs;
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 this = VraFunctions.getPolicyApproval(GetPolicyApprovalArgs.builder()
.id(vraApprovalPolicyId)
.build());
}
}
variables:
this:
fn::invoke:
function: vra:getPolicyApproval
arguments:
id: ${vraApprovalPolicyId}
Approval policy data source by name search:
import * as pulumi from "@pulumi/pulumi";
import * as vra from "@pulumi/vra";
const _this = vra.getPolicyApproval({
search: vraApprovalPolicySearchName,
});
import pulumi
import pulumi_vra as vra
this = vra.get_policy_approval(search=vra_approval_policy_search_name)
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/vra/vra"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := vra.LookupPolicyApproval(ctx, &vra.LookupPolicyApprovalArgs{
Search: pulumi.StringRef(vraApprovalPolicySearchName),
}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Vra = Pulumi.Vra;
return await Deployment.RunAsync(() =>
{
var @this = Vra.GetPolicyApproval.Invoke(new()
{
Search = vraApprovalPolicySearchName,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.vra.VraFunctions;
import com.pulumi.vra.inputs.GetPolicyApprovalArgs;
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 this = VraFunctions.getPolicyApproval(GetPolicyApprovalArgs.builder()
.search(vraApprovalPolicySearchName)
.build());
}
}
variables:
this:
fn::invoke:
function: vra:getPolicyApproval
arguments:
search: ${vraApprovalPolicySearchName}
Using getPolicyApproval
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 getPolicyApproval(args: GetPolicyApprovalArgs, opts?: InvokeOptions): Promise<GetPolicyApprovalResult>
function getPolicyApprovalOutput(args: GetPolicyApprovalOutputArgs, opts?: InvokeOptions): Output<GetPolicyApprovalResult>def get_policy_approval(id: Optional[str] = None,
search: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetPolicyApprovalResult
def get_policy_approval_output(id: Optional[pulumi.Input[str]] = None,
search: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetPolicyApprovalResult]func LookupPolicyApproval(ctx *Context, args *LookupPolicyApprovalArgs, opts ...InvokeOption) (*LookupPolicyApprovalResult, error)
func LookupPolicyApprovalOutput(ctx *Context, args *LookupPolicyApprovalOutputArgs, opts ...InvokeOption) LookupPolicyApprovalResultOutput> Note: This function is named LookupPolicyApproval in the Go SDK.
public static class GetPolicyApproval
{
public static Task<GetPolicyApprovalResult> InvokeAsync(GetPolicyApprovalArgs args, InvokeOptions? opts = null)
public static Output<GetPolicyApprovalResult> Invoke(GetPolicyApprovalInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetPolicyApprovalResult> getPolicyApproval(GetPolicyApprovalArgs args, InvokeOptions options)
public static Output<GetPolicyApprovalResult> getPolicyApproval(GetPolicyApprovalArgs args, InvokeOptions options)
fn::invoke:
function: vra:index/getPolicyApproval:getPolicyApproval
arguments:
# arguments dictionaryThe following arguments are supported:
getPolicyApproval Result
The following output properties are available:
- Actions List<string>
- List of actions to trigger approval.
- Approval
Level double - The level defines the order in which the policy is enforced. Level 1 approvals are applied first, followed by level 2 approvals, and so on.
- Approval
Mode string - Who must approve the request.
- Approval
Type string - Approval Type.
- Approvers List<string>
- List of approvers of the policy.
- Auto
Approval stringDecision - Automatically approve or reject a request after the number of days specified in the Auto expiry trigger field.
- Auto
Approval doubleExpiry - The number of days the approvers have to respond before the Auto action is triggered.
- Created
At string - Date when the entity was created. The date is in ISO 8601 and UTC.
- Created
By string - The user the entity was created by.
- Criterias
List<Immutable
Dictionary<string, string>> - The policy criteria.
- Description string
- A human-friendly description for the policy instance.
- Enforcement
Type string - The type of enforcement for the policy.
- Id string
- Last
Updated stringAt - Date when the entity was last updated. The date is ISO 8601 and UTC.
- Last
Updated stringBy - The user the entity was last updated by.
- Name string
- A human-friendly name used as an identifier for the policy instance.
- Org
Id string - The id of the organization this entity belongs to.
- Project
Criterias List<ImmutableDictionary<string, string>> - The project based criteria.
- Project
Id string - The id of the project this entity belongs to.
- Search string
- Actions []string
- List of actions to trigger approval.
- Approval
Level float64 - The level defines the order in which the policy is enforced. Level 1 approvals are applied first, followed by level 2 approvals, and so on.
- Approval
Mode string - Who must approve the request.
- Approval
Type string - Approval Type.
- Approvers []string
- List of approvers of the policy.
- Auto
Approval stringDecision - Automatically approve or reject a request after the number of days specified in the Auto expiry trigger field.
- Auto
Approval float64Expiry - The number of days the approvers have to respond before the Auto action is triggered.
- Created
At string - Date when the entity was created. The date is in ISO 8601 and UTC.
- Created
By string - The user the entity was created by.
- Criterias []map[string]string
- The policy criteria.
- Description string
- A human-friendly description for the policy instance.
- Enforcement
Type string - The type of enforcement for the policy.
- Id string
- Last
Updated stringAt - Date when the entity was last updated. The date is ISO 8601 and UTC.
- Last
Updated stringBy - The user the entity was last updated by.
- Name string
- A human-friendly name used as an identifier for the policy instance.
- Org
Id string - The id of the organization this entity belongs to.
- Project
Criterias []map[string]string - The project based criteria.
- Project
Id string - The id of the project this entity belongs to.
- Search string
- actions List<String>
- List of actions to trigger approval.
- approval
Level Double - The level defines the order in which the policy is enforced. Level 1 approvals are applied first, followed by level 2 approvals, and so on.
- approval
Mode String - Who must approve the request.
- approval
Type String - Approval Type.
- approvers List<String>
- List of approvers of the policy.
- auto
Approval StringDecision - Automatically approve or reject a request after the number of days specified in the Auto expiry trigger field.
- auto
Approval DoubleExpiry - The number of days the approvers have to respond before the Auto action is triggered.
- created
At String - Date when the entity was created. The date is in ISO 8601 and UTC.
- created
By String - The user the entity was created by.
- criterias List<Map<String,String>>
- The policy criteria.
- description String
- A human-friendly description for the policy instance.
- enforcement
Type String - The type of enforcement for the policy.
- id String
- last
Updated StringAt - Date when the entity was last updated. The date is ISO 8601 and UTC.
- last
Updated StringBy - The user the entity was last updated by.
- name String
- A human-friendly name used as an identifier for the policy instance.
- org
Id String - The id of the organization this entity belongs to.
- project
Criterias List<Map<String,String>> - The project based criteria.
- project
Id String - The id of the project this entity belongs to.
- search String
- actions string[]
- List of actions to trigger approval.
- approval
Level number - The level defines the order in which the policy is enforced. Level 1 approvals are applied first, followed by level 2 approvals, and so on.
- approval
Mode string - Who must approve the request.
- approval
Type string - Approval Type.
- approvers string[]
- List of approvers of the policy.
- auto
Approval stringDecision - Automatically approve or reject a request after the number of days specified in the Auto expiry trigger field.
- auto
Approval numberExpiry - The number of days the approvers have to respond before the Auto action is triggered.
- created
At string - Date when the entity was created. The date is in ISO 8601 and UTC.
- created
By string - The user the entity was created by.
- criterias {[key: string]: string}[]
- The policy criteria.
- description string
- A human-friendly description for the policy instance.
- enforcement
Type string - The type of enforcement for the policy.
- id string
- last
Updated stringAt - Date when the entity was last updated. The date is ISO 8601 and UTC.
- last
Updated stringBy - The user the entity was last updated by.
- name string
- A human-friendly name used as an identifier for the policy instance.
- org
Id string - The id of the organization this entity belongs to.
- project
Criterias {[key: string]: string}[] - The project based criteria.
- project
Id string - The id of the project this entity belongs to.
- search string
- actions Sequence[str]
- List of actions to trigger approval.
- approval_
level float - The level defines the order in which the policy is enforced. Level 1 approvals are applied first, followed by level 2 approvals, and so on.
- approval_
mode str - Who must approve the request.
- approval_
type str - Approval Type.
- approvers Sequence[str]
- List of approvers of the policy.
- auto_
approval_ strdecision - Automatically approve or reject a request after the number of days specified in the Auto expiry trigger field.
- auto_
approval_ floatexpiry - The number of days the approvers have to respond before the Auto action is triggered.
- created_
at str - Date when the entity was created. The date is in ISO 8601 and UTC.
- created_
by str - The user the entity was created by.
- criterias Sequence[Mapping[str, str]]
- The policy criteria.
- description str
- A human-friendly description for the policy instance.
- enforcement_
type str - The type of enforcement for the policy.
- id str
- last_
updated_ strat - Date when the entity was last updated. The date is ISO 8601 and UTC.
- last_
updated_ strby - The user the entity was last updated by.
- name str
- A human-friendly name used as an identifier for the policy instance.
- org_
id str - The id of the organization this entity belongs to.
- project_
criterias Sequence[Mapping[str, str]] - The project based criteria.
- project_
id str - The id of the project this entity belongs to.
- search str
- actions List<String>
- List of actions to trigger approval.
- approval
Level Number - The level defines the order in which the policy is enforced. Level 1 approvals are applied first, followed by level 2 approvals, and so on.
- approval
Mode String - Who must approve the request.
- approval
Type String - Approval Type.
- approvers List<String>
- List of approvers of the policy.
- auto
Approval StringDecision - Automatically approve or reject a request after the number of days specified in the Auto expiry trigger field.
- auto
Approval NumberExpiry - The number of days the approvers have to respond before the Auto action is triggered.
- created
At String - Date when the entity was created. The date is in ISO 8601 and UTC.
- created
By String - The user the entity was created by.
- criterias List<Map<String>>
- The policy criteria.
- description String
- A human-friendly description for the policy instance.
- enforcement
Type String - The type of enforcement for the policy.
- id String
- last
Updated StringAt - Date when the entity was last updated. The date is ISO 8601 and UTC.
- last
Updated StringBy - The user the entity was last updated by.
- name String
- A human-friendly name used as an identifier for the policy instance.
- org
Id String - The id of the organization this entity belongs to.
- project
Criterias List<Map<String>> - The project based criteria.
- project
Id String - The id of the project this entity belongs to.
- search String
Package Details
- Repository
- vra vmware/terraform-provider-vra
- License
- Notes
- This Pulumi package is based on the
vraTerraform Provider.
Viewing docs for vra 0.17.0
published on Tuesday, Mar 10, 2026 by vmware
published on Tuesday, Mar 10, 2026 by vmware
