avi 31.1.1 published on Monday, Apr 14, 2025 by vmware
avi.getRetentionpolicy
Explore with Pulumi AI
<!–
Copyright 2021 VMware, Inc.
SPDX-License-Identifier: Mozilla Public License 2.0
–>
layout: “avi”
page_title: “AVI: 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({
name: "foo",
uuid: "retentionpolicy-f9cf6b3e-a411-436f-95e2-2982ba2b217b",
});
import pulumi
import pulumi_avi as avi
foo_retentionpolicy = avi.get_retentionpolicy(name="foo",
uuid="retentionpolicy-f9cf6b3e-a411-436f-95e2-2982ba2b217b")
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{
Name: pulumi.StringRef("foo"),
Uuid: pulumi.StringRef("retentionpolicy-f9cf6b3e-a411-436f-95e2-2982ba2b217b"),
}, 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()
{
Name = "foo",
Uuid = "retentionpolicy-f9cf6b3e-a411-436f-95e2-2982ba2b217b",
});
});
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()
.name("foo")
.uuid("retentionpolicy-f9cf6b3e-a411-436f-95e2-2982ba2b217b")
.build());
}
}
variables:
fooRetentionpolicy:
fn::invoke:
function: avi:getRetentionpolicy
arguments:
name: foo
uuid: retentionpolicy-f9cf6b3e-a411-436f-95e2-2982ba2b217b
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 dictionary
The 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
This property is required. str - end_
time This property is required. str - messages
This property is required. Sequence[str] - start_
time This property is required. str - status
This property is required. str
GetRetentionpolicyPolicy
- Disks
This property is required. List<GetRetentionpolicy Policy Disk> - Objects
This property is required. List<GetRetentionpolicy Policy Object> - Periodics
This property is required. List<GetRetentionpolicy Policy Periodic>
- Disks
This property is required. []GetRetentionpolicy Policy Disk - Objects
This property is required. []GetRetentionpolicy Policy Object - Periodics
This property is required. []GetRetentionpolicy Policy Periodic
- disks
This property is required. List<GetRetentionpolicy Policy Disk> - objects
This property is required. List<GetRetentionpolicy Policy Object> - periodics
This property is required. List<GetRetentionpolicy Policy Periodic>
- disks
This property is required. GetRetentionpolicy Policy Disk[] - objects
This property is required. GetRetentionpolicy Policy Object[] - periodics
This property is required. GetRetentionpolicy Policy Periodic[]
- disks
This property is required. Sequence[GetRetentionpolicy Policy Disk] - objects
This property is required. Sequence[GetRetentionpolicy Policy Object] - periodics
This property is required. Sequence[GetRetentionpolicy Policy Periodic]
- disks
This property is required. List<Property Map> - objects
This property is required. List<Property Map> - periodics
This property is required. List<Property Map>
GetRetentionpolicyPolicyDisk
- Actions
This property is required. List<GetRetentionpolicy Policy Disk Action> - Filepath
This property is required. string - Max
Disk Percent This property is required. string - Min
Free Disk Percent This property is required. string - Retain
This property is required. string
- Actions
This property is required. []GetRetentionpolicy Policy Disk Action - Filepath
This property is required. string - Max
Disk Percent This property is required. string - Min
Free Disk Percent This property is required. string - Retain
This property is required. string
- actions
This property is required. List<GetRetentionpolicy Policy Disk Action> - filepath
This property is required. String - max
Disk Percent This property is required. String - min
Free Disk Percent This property is required. String - retain
This property is required. String
- actions
This property is required. GetRetentionpolicy Policy Disk Action[] - filepath
This property is required. string - max
Disk Percent This property is required. string - min
Free Disk Percent This property is required. string - retain
This property is required. string
- actions
This property is required. Sequence[GetRetentionpolicy Policy Disk Action] - filepath
This property is required. str - max_
disk_ percent This property is required. str - min_
free_ disk_ percent This property is required. str - retain
This property is required. str
- actions
This property is required. List<Property Map> - filepath
This property is required. String - max
Disk Percent This property is required. String - min
Free Disk Percent This property is required. String - retain
This property is required. String
GetRetentionpolicyPolicyDiskAction
- Args
This property is required. List<GetRetentionpolicy Policy Disk Action Arg> - Path
This property is required. string - Type
This property is required. string
- Args
This property is required. []GetRetentionpolicy Policy Disk Action Arg - Path
This property is required. string - Type
This property is required. string
- args
This property is required. List<GetRetentionpolicy Policy Disk Action Arg> - path
This property is required. String - type
This property is required. String
- args
This property is required. GetRetentionpolicy Policy Disk Action Arg[] - path
This property is required. string - type
This property is required. string
- args
This property is required. Sequence[GetRetentionpolicy Policy Disk Action Arg] - path
This property is required. str - type
This property is required. str
- args
This property is required. List<Property Map> - path
This property is required. String - type
This property is required. String
GetRetentionpolicyPolicyDiskActionArg
GetRetentionpolicyPolicyObject
- Actions
This property is required. List<GetRetentionpolicy Policy Object Action> - Limit
This property is required. string - Model
Name This property is required. string
- Actions
This property is required. []GetRetentionpolicy Policy Object Action - Limit
This property is required. string - Model
Name This property is required. string
- actions
This property is required. List<GetRetentionpolicy Policy Object Action> - limit
This property is required. String - model
Name This property is required. String
- actions
This property is required. GetRetentionpolicy Policy Object Action[] - limit
This property is required. string - model
Name This property is required. string
- actions
This property is required. Sequence[GetRetentionpolicy Policy Object Action] - limit
This property is required. str - model_
name This property is required. str
- actions
This property is required. List<Property Map> - limit
This property is required. String - model
Name This property is required. String
GetRetentionpolicyPolicyObjectAction
- Args
This property is required. List<GetRetentionpolicy Policy Object Action Arg> - Path
This property is required. string - Type
This property is required. string
- Args
This property is required. []GetRetentionpolicy Policy Object Action Arg - Path
This property is required. string - Type
This property is required. string
- args
This property is required. List<GetRetentionpolicy Policy Object Action Arg> - path
This property is required. String - type
This property is required. String
- args
This property is required. GetRetentionpolicy Policy Object Action Arg[] - path
This property is required. string - type
This property is required. string
- args
This property is required. Sequence[GetRetentionpolicy Policy Object Action Arg] - path
This property is required. str - type
This property is required. str
- args
This property is required. List<Property Map> - path
This property is required. String - type
This property is required. String
GetRetentionpolicyPolicyObjectActionArg
GetRetentionpolicyPolicyPeriodic
- Actions
This property is required. List<GetRetentionpolicy Policy Periodic Action> - Interval
This property is required. string
- Actions
This property is required. []GetRetentionpolicy Policy Periodic Action - Interval
This property is required. string
- actions
This property is required. List<GetRetentionpolicy Policy Periodic Action> - interval
This property is required. String
- actions
This property is required. GetRetentionpolicy Policy Periodic Action[] - interval
This property is required. string
- actions
This property is required. Sequence[GetRetentionpolicy Policy Periodic Action] - interval
This property is required. str
- actions
This property is required. List<Property Map> - interval
This property is required. String
GetRetentionpolicyPolicyPeriodicAction
- Args
This property is required. List<GetRetentionpolicy Policy Periodic Action Arg> - Path
This property is required. string - Type
This property is required. string
- Args
This property is required. []GetRetentionpolicy Policy Periodic Action Arg - Path
This property is required. string - Type
This property is required. string
- args
This property is required. List<GetRetentionpolicy Policy Periodic Action Arg> - path
This property is required. String - type
This property is required. String
- args
This property is required. GetRetentionpolicy Policy Periodic Action Arg[] - path
This property is required. string - type
This property is required. string
- args
This property is required. Sequence[GetRetentionpolicy Policy Periodic Action Arg] - path
This property is required. str - type
This property is required. str
- args
This property is required. List<Property Map> - path
This property is required. String - type
This property is required. String
GetRetentionpolicyPolicyPeriodicActionArg
GetRetentionpolicySummary
- duration
This property is required. str - end_
time This property is required. str - messages
This property is required. Sequence[str] - start_
time This property is required. str - status
This property is required. str
Package Details
- Repository
- avi vmware/terraform-provider-avi
- License
- Notes
- This Pulumi package is based on the
avi
Terraform Provider.