Viewing docs for avi 31.2.2
published on Tuesday, Feb 10, 2026 by vmware
published on Tuesday, Feb 10, 2026 by vmware
Viewing docs for avi 31.2.2
published on Tuesday, Feb 10, 2026 by vmware
published on Tuesday, Feb 10, 2026 by vmware
<!–
Copyright 2021 VMware, Inc.
SPDX-License-Identifier: Mozilla Public License 2.0
–>
layout: “avi”
page_title: “AVI:<span pulumi-lang-nodejs=” avi.Retentionpolicy"" pulumi-lang-dotnet=" avi.Retentionpolicy"" pulumi-lang-go=" Retentionpolicy"" pulumi-lang-python=" Retentionpolicy"" pulumi-lang-yaml=" avi.Retentionpolicy"" pulumi-lang-java=" avi.Retentionpolicy""> avi.Retentionpolicy" sidebar_current: “docs-avi-datasource-retentionpolicy” description: |- Get information of Avi RetentionPolicy.
# avi.Retentionpolicy This data source is used to to get avi.Retentionpolicy objects.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as avi from "@pulumi/avi";
const fooRetentionpolicy = avi.getRetentionpolicy({
uuid: "retentionpolicy-f9cf6b3e-a411-436f-95e2-2982ba2b217b",
name: "foo",
});
import pulumi
import pulumi_avi as avi
foo_retentionpolicy = avi.get_retentionpolicy(uuid="retentionpolicy-f9cf6b3e-a411-436f-95e2-2982ba2b217b",
name="foo")
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/avi/v31/avi"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := avi.LookupRetentionpolicy(ctx, &avi.LookupRetentionpolicyArgs{
Uuid: pulumi.StringRef("retentionpolicy-f9cf6b3e-a411-436f-95e2-2982ba2b217b"),
Name: pulumi.StringRef("foo"),
}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Avi = Pulumi.Avi;
return await Deployment.RunAsync(() =>
{
var fooRetentionpolicy = Avi.GetRetentionpolicy.Invoke(new()
{
Uuid = "retentionpolicy-f9cf6b3e-a411-436f-95e2-2982ba2b217b",
Name = "foo",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.avi.AviFunctions;
import com.pulumi.avi.inputs.GetRetentionpolicyArgs;
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 fooRetentionpolicy = AviFunctions.getRetentionpolicy(GetRetentionpolicyArgs.builder()
.uuid("retentionpolicy-f9cf6b3e-a411-436f-95e2-2982ba2b217b")
.name("foo")
.build());
}
}
variables:
fooRetentionpolicy:
fn::invoke:
function: avi:getRetentionpolicy
arguments:
uuid: retentionpolicy-f9cf6b3e-a411-436f-95e2-2982ba2b217b
name: foo
Using getRetentionpolicy
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 getRetentionpolicy(args: GetRetentionpolicyArgs, opts?: InvokeOptions): Promise<GetRetentionpolicyResult>
function getRetentionpolicyOutput(args: GetRetentionpolicyOutputArgs, opts?: InvokeOptions): Output<GetRetentionpolicyResult>def get_retentionpolicy(id: Optional[str] = None,
name: Optional[str] = None,
tenant_ref: Optional[str] = None,
uuid: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetRetentionpolicyResult
def get_retentionpolicy_output(id: Optional[pulumi.Input[str]] = None,
name: Optional[pulumi.Input[str]] = None,
tenant_ref: Optional[pulumi.Input[str]] = None,
uuid: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetRetentionpolicyResult]func LookupRetentionpolicy(ctx *Context, args *LookupRetentionpolicyArgs, opts ...InvokeOption) (*LookupRetentionpolicyResult, error)
func LookupRetentionpolicyOutput(ctx *Context, args *LookupRetentionpolicyOutputArgs, opts ...InvokeOption) LookupRetentionpolicyResultOutput> Note: This function is named LookupRetentionpolicy in the Go SDK.
public static class GetRetentionpolicy
{
public static Task<GetRetentionpolicyResult> InvokeAsync(GetRetentionpolicyArgs args, InvokeOptions? opts = null)
public static Output<GetRetentionpolicyResult> Invoke(GetRetentionpolicyInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetRetentionpolicyResult> getRetentionpolicy(GetRetentionpolicyArgs args, InvokeOptions options)
public static Output<GetRetentionpolicyResult> getRetentionpolicy(GetRetentionpolicyArgs args, InvokeOptions options)
fn::invoke:
function: avi:index/getRetentionpolicy:getRetentionpolicy
arguments:
# arguments dictionaryThe following arguments are supported:
- Id string
- Name string
- Search RetentionPolicy by name.
- Tenant
Ref string - Tenant uuid associated with the object. It is a reference to an object of type tenant. Field introduced in 31.1.1. Allowed with any value in enterprise, enterprise with cloud services edition.
- Uuid string
- Search RetentionPolicy by uuid.
- Id string
- Name string
- Search RetentionPolicy by name.
- Tenant
Ref string - Tenant uuid associated with the object. It is a reference to an object of type tenant. Field introduced in 31.1.1. Allowed with any value in enterprise, enterprise with cloud services edition.
- Uuid string
- Search RetentionPolicy by uuid.
- id String
- name String
- Search RetentionPolicy by name.
- tenant
Ref String - Tenant uuid associated with the object. It is a reference to an object of type tenant. Field introduced in 31.1.1. Allowed with any value in enterprise, enterprise with cloud services edition.
- uuid String
- Search RetentionPolicy by uuid.
- id string
- name string
- Search RetentionPolicy by name.
- tenant
Ref string - Tenant uuid associated with the object. It is a reference to an object of type tenant. Field introduced in 31.1.1. Allowed with any value in enterprise, enterprise with cloud services edition.
- uuid string
- Search RetentionPolicy by uuid.
- id str
- name str
- Search RetentionPolicy by name.
- tenant_
ref str - Tenant uuid associated with the object. It is a reference to an object of type tenant. Field introduced in 31.1.1. Allowed with any value in enterprise, enterprise with cloud services edition.
- uuid str
- Search RetentionPolicy by uuid.
- id String
- name String
- Search RetentionPolicy by name.
- tenant
Ref String - Tenant uuid associated with the object. It is a reference to an object of type tenant. Field introduced in 31.1.1. Allowed with any value in enterprise, enterprise with cloud services edition.
- uuid String
- Search RetentionPolicy by uuid.
getRetentionpolicy Result
The following output properties are available:
- Enabled string
- Enables the policy. Field introduced in 31.1.1. Allowed with any value in enterprise, enterprise with cloud services edition.
- Histories
List<Get
Retentionpolicy History> - History of previous runs. Field introduced in 31.1.1. Maximum of 10 items allowed. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- Id string
- Name string
- Name of the policy. Field introduced in 31.1.1. Allowed with any value in enterprise, enterprise with cloud services edition.
- Policies
List<Get
Retentionpolicy Policy> - Policy specification. Field introduced in 31.1.1. Allowed with any value in enterprise, enterprise with cloud services edition.
- Summaries
List<Get
Retentionpolicy Summary> - Details of most recent run. Field introduced in 31.1.1. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- Tenant
Ref string - Tenant uuid associated with the object. It is a reference to an object of type tenant. Field introduced in 31.1.1. Allowed with any value in enterprise, enterprise with cloud services edition.
- Uuid string
- Uuid identifier for the policy. Field introduced in 31.1.1. Allowed with any value in enterprise, enterprise with cloud services edition.
- Enabled string
- Enables the policy. Field introduced in 31.1.1. Allowed with any value in enterprise, enterprise with cloud services edition.
- Histories
[]Get
Retentionpolicy History - History of previous runs. Field introduced in 31.1.1. Maximum of 10 items allowed. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- Id string
- Name string
- Name of the policy. Field introduced in 31.1.1. Allowed with any value in enterprise, enterprise with cloud services edition.
- Policies
[]Get
Retentionpolicy Policy - Policy specification. Field introduced in 31.1.1. Allowed with any value in enterprise, enterprise with cloud services edition.
- Summaries
[]Get
Retentionpolicy Summary - Details of most recent run. Field introduced in 31.1.1. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- Tenant
Ref string - Tenant uuid associated with the object. It is a reference to an object of type tenant. Field introduced in 31.1.1. Allowed with any value in enterprise, enterprise with cloud services edition.
- Uuid string
- Uuid identifier for the policy. Field introduced in 31.1.1. Allowed with any value in enterprise, enterprise with cloud services edition.
- enabled String
- Enables the policy. Field introduced in 31.1.1. Allowed with any value in enterprise, enterprise with cloud services edition.
- histories
List<Get
Retentionpolicy History> - History of previous runs. Field introduced in 31.1.1. Maximum of 10 items allowed. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- id String
- name String
- Name of the policy. Field introduced in 31.1.1. Allowed with any value in enterprise, enterprise with cloud services edition.
- policies
List<Get
Retentionpolicy Policy> - Policy specification. Field introduced in 31.1.1. Allowed with any value in enterprise, enterprise with cloud services edition.
- summaries
List<Get
Retentionpolicy Summary> - Details of most recent run. Field introduced in 31.1.1. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- tenant
Ref String - Tenant uuid associated with the object. It is a reference to an object of type tenant. Field introduced in 31.1.1. Allowed with any value in enterprise, enterprise with cloud services edition.
- uuid String
- Uuid identifier for the policy. Field introduced in 31.1.1. Allowed with any value in enterprise, enterprise with cloud services edition.
- enabled string
- Enables the policy. Field introduced in 31.1.1. Allowed with any value in enterprise, enterprise with cloud services edition.
- histories
Get
Retentionpolicy History[] - History of previous runs. Field introduced in 31.1.1. Maximum of 10 items allowed. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- id string
- name string
- Name of the policy. Field introduced in 31.1.1. Allowed with any value in enterprise, enterprise with cloud services edition.
- policies
Get
Retentionpolicy Policy[] - Policy specification. Field introduced in 31.1.1. Allowed with any value in enterprise, enterprise with cloud services edition.
- summaries
Get
Retentionpolicy Summary[] - Details of most recent run. Field introduced in 31.1.1. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- tenant
Ref string - Tenant uuid associated with the object. It is a reference to an object of type tenant. Field introduced in 31.1.1. Allowed with any value in enterprise, enterprise with cloud services edition.
- uuid string
- Uuid identifier for the policy. Field introduced in 31.1.1. Allowed with any value in enterprise, enterprise with cloud services edition.
- enabled str
- Enables the policy. Field introduced in 31.1.1. Allowed with any value in enterprise, enterprise with cloud services edition.
- histories
Sequence[Get
Retentionpolicy History] - History of previous runs. Field introduced in 31.1.1. Maximum of 10 items allowed. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- id str
- name str
- Name of the policy. Field introduced in 31.1.1. Allowed with any value in enterprise, enterprise with cloud services edition.
- policies
Sequence[Get
Retentionpolicy Policy] - Policy specification. Field introduced in 31.1.1. Allowed with any value in enterprise, enterprise with cloud services edition.
- summaries
Sequence[Get
Retentionpolicy Summary] - Details of most recent run. Field introduced in 31.1.1. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- tenant_
ref str - Tenant uuid associated with the object. It is a reference to an object of type tenant. Field introduced in 31.1.1. Allowed with any value in enterprise, enterprise with cloud services edition.
- uuid str
- Uuid identifier for the policy. Field introduced in 31.1.1. Allowed with any value in enterprise, enterprise with cloud services edition.
- enabled String
- Enables the policy. Field introduced in 31.1.1. Allowed with any value in enterprise, enterprise with cloud services edition.
- histories List<Property Map>
- History of previous runs. Field introduced in 31.1.1. Maximum of 10 items allowed. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- id String
- name String
- Name of the policy. Field introduced in 31.1.1. Allowed with any value in enterprise, enterprise with cloud services edition.
- policies List<Property Map>
- Policy specification. Field introduced in 31.1.1. Allowed with any value in enterprise, enterprise with cloud services edition.
- summaries List<Property Map>
- Details of most recent run. Field introduced in 31.1.1. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
- tenant
Ref String - Tenant uuid associated with the object. It is a reference to an object of type tenant. Field introduced in 31.1.1. Allowed with any value in enterprise, enterprise with cloud services edition.
- uuid String
- Uuid identifier for the policy. Field introduced in 31.1.1. Allowed with any value in enterprise, enterprise with cloud services edition.
Supporting Types
GetRetentionpolicyHistory
- duration str
- end_
time str - messages Sequence[str]
- start_
time str - status str
GetRetentionpolicyPolicy
GetRetentionpolicyPolicyDisk
- Actions
List<Get
Retentionpolicy Policy Disk Action> - Filepath string
- Max
Disk stringPercent - Min
Free stringDisk Percent - Retain string
- Actions
[]Get
Retentionpolicy Policy Disk Action - Filepath string
- Max
Disk stringPercent - Min
Free stringDisk Percent - Retain string
- actions
List<Get
Retentionpolicy Policy Disk Action> - filepath String
- max
Disk StringPercent - min
Free StringDisk Percent - retain String
- actions
Get
Retentionpolicy Policy Disk Action[] - filepath string
- max
Disk stringPercent - min
Free stringDisk Percent - retain string
- actions List<Property Map>
- filepath String
- max
Disk StringPercent - min
Free StringDisk Percent - retain String
GetRetentionpolicyPolicyDiskAction
- Args
List<Get
Retentionpolicy Policy Disk Action Arg> - Path string
- Type string
- Args
[]Get
Retentionpolicy Policy Disk Action Arg - Path string
- Type string
- args
List<Get
Retentionpolicy Policy Disk Action Arg> - path String
- type String
- args
Get
Retentionpolicy Policy Disk Action Arg[] - path string
- type string
- args List<Property Map>
- path String
- type String
GetRetentionpolicyPolicyDiskActionArg
GetRetentionpolicyPolicyObject
- Actions
[]Get
Retentionpolicy Policy Object Action - Limit string
- Model
Name string
- actions
Get
Retentionpolicy Policy Object Action[] - limit string
- model
Name string
- actions List<Property Map>
- limit String
- model
Name String
GetRetentionpolicyPolicyObjectAction
- Args
List<Get
Retentionpolicy Policy Object Action Arg> - Path string
- Type string
- Args
[]Get
Retentionpolicy Policy Object Action Arg - Path string
- Type string
- args
List<Get
Retentionpolicy Policy Object Action Arg> - path String
- type String
- args
Get
Retentionpolicy Policy Object Action Arg[] - path string
- type string
- args List<Property Map>
- path String
- type String
GetRetentionpolicyPolicyObjectActionArg
GetRetentionpolicyPolicyPeriodic
GetRetentionpolicyPolicyPeriodicAction
- Args
List<Get
Retentionpolicy Policy Periodic Action Arg> - Path string
- Type string
- Args
[]Get
Retentionpolicy Policy Periodic Action Arg - Path string
- Type string
- args
List<Get
Retentionpolicy Policy Periodic Action Arg> - path String
- type String
- args
Get
Retentionpolicy Policy Periodic Action Arg[] - path string
- type string
- args List<Property Map>
- path String
- type String
GetRetentionpolicyPolicyPeriodicActionArg
GetRetentionpolicySummary
- duration str
- end_
time str - messages Sequence[str]
- start_
time str - status str
Package Details
- Repository
- avi vmware/terraform-provider-avi
- License
- Notes
- This Pulumi package is based on the
aviTerraform Provider.
Viewing docs for avi 31.2.2
published on Tuesday, Feb 10, 2026 by vmware
published on Tuesday, Feb 10, 2026 by vmware
