1. Packages
  2. Avi Provider
  3. API Docs
  4. Trustedhostprofile
avi 31.1.1 published on Monday, Apr 14, 2025 by vmware

avi.Trustedhostprofile

Explore with Pulumi AI

avi logo
avi 31.1.1 published on Monday, Apr 14, 2025 by vmware

    <!–

    Copyright 2021 VMware, Inc.
    SPDX-License-Identifier: Mozilla Public License 2.0
    

    –>

    layout: “avi”

    page_title: “Avi: avi.Trustedhostprofile” sidebar_current: “docs-avi-resource-trustedhostprofile” description: |- Creates and manages Avi TrustedHostProfile.

    avi.Trustedhostprofile

    The TrustedHostProfile resource allows the creation and management of Avi TrustedHostProfile

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as avi from "@pulumi/avi";
    
    const foo = new avi.Trustedhostprofile("foo", {tenantRef: "/api/tenant/?name=admin"});
    
    import pulumi
    import pulumi_avi as avi
    
    foo = avi.Trustedhostprofile("foo", tenant_ref="/api/tenant/?name=admin")
    
    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.NewTrustedhostprofile(ctx, "foo", &avi.TrustedhostprofileArgs{
    			TenantRef: pulumi.String("/api/tenant/?name=admin"),
    		})
    		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 foo = new Avi.Trustedhostprofile("foo", new()
        {
            TenantRef = "/api/tenant/?name=admin",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.avi.Trustedhostprofile;
    import com.pulumi.avi.TrustedhostprofileArgs;
    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) {
            var foo = new Trustedhostprofile("foo", TrustedhostprofileArgs.builder()
                .tenantRef("/api/tenant/?name=admin")
                .build());
    
        }
    }
    
    resources:
      foo:
        type: avi:Trustedhostprofile
        properties:
          tenantRef: /api/tenant/?name=admin
    

    Create Trustedhostprofile Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new Trustedhostprofile(name: string, args: TrustedhostprofileArgs, opts?: CustomResourceOptions);
    @overload
    def Trustedhostprofile(resource_name: str,
                           args: TrustedhostprofileArgs,
                           opts: Optional[ResourceOptions] = None)
    
    @overload
    def Trustedhostprofile(resource_name: str,
                           opts: Optional[ResourceOptions] = None,
                           hosts: Optional[Sequence[TrustedhostprofileHostArgs]] = None,
                           configpb_attributes: Optional[Sequence[TrustedhostprofileConfigpbAttributeArgs]] = None,
                           name: Optional[str] = None,
                           tenant_ref: Optional[str] = None,
                           trustedhostprofile_id: Optional[str] = None,
                           uuid: Optional[str] = None)
    func NewTrustedhostprofile(ctx *Context, name string, args TrustedhostprofileArgs, opts ...ResourceOption) (*Trustedhostprofile, error)
    public Trustedhostprofile(string name, TrustedhostprofileArgs args, CustomResourceOptions? opts = null)
    public Trustedhostprofile(String name, TrustedhostprofileArgs args)
    public Trustedhostprofile(String name, TrustedhostprofileArgs args, CustomResourceOptions options)
    
    type: avi:Trustedhostprofile
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args TrustedhostprofileArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args TrustedhostprofileArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args TrustedhostprofileArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args TrustedhostprofileArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args TrustedhostprofileArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Constructor example

    The following reference example uses placeholder values for all input properties.

    var trustedhostprofileResource = new Avi.Trustedhostprofile("trustedhostprofileResource", new()
    {
        Hosts = new[]
        {
            new Avi.Inputs.TrustedhostprofileHostArgs
            {
                Hosts = new[]
                {
                    new Avi.Inputs.TrustedhostprofileHostHostArgs
                    {
                        Addr = "string",
                        Type = "string",
                    },
                },
                Port = "string",
            },
        },
        ConfigpbAttributes = new[]
        {
            new Avi.Inputs.TrustedhostprofileConfigpbAttributeArgs
            {
                Version = "string",
            },
        },
        Name = "string",
        TenantRef = "string",
        TrustedhostprofileId = "string",
        Uuid = "string",
    });
    
    example, err := avi.NewTrustedhostprofile(ctx, "trustedhostprofileResource", &avi.TrustedhostprofileArgs{
    	Hosts: avi.TrustedhostprofileHostArray{
    		&avi.TrustedhostprofileHostArgs{
    			Hosts: avi.TrustedhostprofileHostHostArray{
    				&avi.TrustedhostprofileHostHostArgs{
    					Addr: pulumi.String("string"),
    					Type: pulumi.String("string"),
    				},
    			},
    			Port: pulumi.String("string"),
    		},
    	},
    	ConfigpbAttributes: avi.TrustedhostprofileConfigpbAttributeArray{
    		&avi.TrustedhostprofileConfigpbAttributeArgs{
    			Version: pulumi.String("string"),
    		},
    	},
    	Name:                 pulumi.String("string"),
    	TenantRef:            pulumi.String("string"),
    	TrustedhostprofileId: pulumi.String("string"),
    	Uuid:                 pulumi.String("string"),
    })
    
    var trustedhostprofileResource = new Trustedhostprofile("trustedhostprofileResource", TrustedhostprofileArgs.builder()
        .hosts(TrustedhostprofileHostArgs.builder()
            .hosts(TrustedhostprofileHostHostArgs.builder()
                .addr("string")
                .type("string")
                .build())
            .port("string")
            .build())
        .configpbAttributes(TrustedhostprofileConfigpbAttributeArgs.builder()
            .version("string")
            .build())
        .name("string")
        .tenantRef("string")
        .trustedhostprofileId("string")
        .uuid("string")
        .build());
    
    trustedhostprofile_resource = avi.Trustedhostprofile("trustedhostprofileResource",
        hosts=[{
            "hosts": [{
                "addr": "string",
                "type": "string",
            }],
            "port": "string",
        }],
        configpb_attributes=[{
            "version": "string",
        }],
        name="string",
        tenant_ref="string",
        trustedhostprofile_id="string",
        uuid="string")
    
    const trustedhostprofileResource = new avi.Trustedhostprofile("trustedhostprofileResource", {
        hosts: [{
            hosts: [{
                addr: "string",
                type: "string",
            }],
            port: "string",
        }],
        configpbAttributes: [{
            version: "string",
        }],
        name: "string",
        tenantRef: "string",
        trustedhostprofileId: "string",
        uuid: "string",
    });
    
    type: avi:Trustedhostprofile
    properties:
        configpbAttributes:
            - version: string
        hosts:
            - hosts:
                - addr: string
                  type: string
              port: string
        name: string
        tenantRef: string
        trustedhostprofileId: string
        uuid: string
    

    Trustedhostprofile Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The Trustedhostprofile resource accepts the following input properties:

    Hosts List<TrustedhostprofileHost>
    List of host ip(v4/v6) addresses or fqdns. Field introduced in 31.1.1. Minimum of 1 items required. Maximum of 20 items allowed. Allowed with any value in enterprise, enterprise with cloud services edition.
    ConfigpbAttributes List<TrustedhostprofileConfigpbAttribute>
    Protobuf versioning for config pbs. Field introduced in 31.1.1. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
    Name string
    Trustedhostprofile name. Field introduced in 31.1.1. Allowed with any value in enterprise, enterprise with cloud services edition.
    TenantRef string
    Tenant ref for trusted host profile. 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.
    TrustedhostprofileId string
    Uuid string
    Trustedhostprofile uuid. Field introduced in 31.1.1. Allowed with any value in enterprise, enterprise with cloud services edition.
    Hosts []TrustedhostprofileHostArgs
    List of host ip(v4/v6) addresses or fqdns. Field introduced in 31.1.1. Minimum of 1 items required. Maximum of 20 items allowed. Allowed with any value in enterprise, enterprise with cloud services edition.
    ConfigpbAttributes []TrustedhostprofileConfigpbAttributeArgs
    Protobuf versioning for config pbs. Field introduced in 31.1.1. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
    Name string
    Trustedhostprofile name. Field introduced in 31.1.1. Allowed with any value in enterprise, enterprise with cloud services edition.
    TenantRef string
    Tenant ref for trusted host profile. 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.
    TrustedhostprofileId string
    Uuid string
    Trustedhostprofile uuid. Field introduced in 31.1.1. Allowed with any value in enterprise, enterprise with cloud services edition.
    hosts List<TrustedhostprofileHost>
    List of host ip(v4/v6) addresses or fqdns. Field introduced in 31.1.1. Minimum of 1 items required. Maximum of 20 items allowed. Allowed with any value in enterprise, enterprise with cloud services edition.
    configpbAttributes List<TrustedhostprofileConfigpbAttribute>
    Protobuf versioning for config pbs. Field introduced in 31.1.1. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
    name String
    Trustedhostprofile name. Field introduced in 31.1.1. Allowed with any value in enterprise, enterprise with cloud services edition.
    tenantRef String
    Tenant ref for trusted host profile. 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.
    trustedhostprofileId String
    uuid String
    Trustedhostprofile uuid. Field introduced in 31.1.1. Allowed with any value in enterprise, enterprise with cloud services edition.
    hosts TrustedhostprofileHost[]
    List of host ip(v4/v6) addresses or fqdns. Field introduced in 31.1.1. Minimum of 1 items required. Maximum of 20 items allowed. Allowed with any value in enterprise, enterprise with cloud services edition.
    configpbAttributes TrustedhostprofileConfigpbAttribute[]
    Protobuf versioning for config pbs. Field introduced in 31.1.1. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
    name string
    Trustedhostprofile name. Field introduced in 31.1.1. Allowed with any value in enterprise, enterprise with cloud services edition.
    tenantRef string
    Tenant ref for trusted host profile. 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.
    trustedhostprofileId string
    uuid string
    Trustedhostprofile uuid. Field introduced in 31.1.1. Allowed with any value in enterprise, enterprise with cloud services edition.
    hosts Sequence[TrustedhostprofileHostArgs]
    List of host ip(v4/v6) addresses or fqdns. Field introduced in 31.1.1. Minimum of 1 items required. Maximum of 20 items allowed. Allowed with any value in enterprise, enterprise with cloud services edition.
    configpb_attributes Sequence[TrustedhostprofileConfigpbAttributeArgs]
    Protobuf versioning for config pbs. Field introduced in 31.1.1. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
    name str
    Trustedhostprofile name. Field introduced in 31.1.1. Allowed with any value in enterprise, enterprise with cloud services edition.
    tenant_ref str
    Tenant ref for trusted host profile. 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.
    trustedhostprofile_id str
    uuid str
    Trustedhostprofile uuid. Field introduced in 31.1.1. Allowed with any value in enterprise, enterprise with cloud services edition.
    hosts List<Property Map>
    List of host ip(v4/v6) addresses or fqdns. Field introduced in 31.1.1. Minimum of 1 items required. Maximum of 20 items allowed. Allowed with any value in enterprise, enterprise with cloud services edition.
    configpbAttributes List<Property Map>
    Protobuf versioning for config pbs. Field introduced in 31.1.1. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
    name String
    Trustedhostprofile name. Field introduced in 31.1.1. Allowed with any value in enterprise, enterprise with cloud services edition.
    tenantRef String
    Tenant ref for trusted host profile. 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.
    trustedhostprofileId String
    uuid String
    Trustedhostprofile uuid. Field introduced in 31.1.1. Allowed with any value in enterprise, enterprise with cloud services edition.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the Trustedhostprofile resource produces the following output properties:

    Id string
    The provider-assigned unique ID for this managed resource.
    Id string
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.
    id string
    The provider-assigned unique ID for this managed resource.
    id str
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.

    Look up Existing Trustedhostprofile Resource

    Get an existing Trustedhostprofile resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, state?: TrustedhostprofileState, opts?: CustomResourceOptions): Trustedhostprofile
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            configpb_attributes: Optional[Sequence[TrustedhostprofileConfigpbAttributeArgs]] = None,
            hosts: Optional[Sequence[TrustedhostprofileHostArgs]] = None,
            name: Optional[str] = None,
            tenant_ref: Optional[str] = None,
            trustedhostprofile_id: Optional[str] = None,
            uuid: Optional[str] = None) -> Trustedhostprofile
    func GetTrustedhostprofile(ctx *Context, name string, id IDInput, state *TrustedhostprofileState, opts ...ResourceOption) (*Trustedhostprofile, error)
    public static Trustedhostprofile Get(string name, Input<string> id, TrustedhostprofileState? state, CustomResourceOptions? opts = null)
    public static Trustedhostprofile get(String name, Output<String> id, TrustedhostprofileState state, CustomResourceOptions options)
    resources:  _:    type: avi:Trustedhostprofile    get:      id: ${id}
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    ConfigpbAttributes List<TrustedhostprofileConfigpbAttribute>
    Protobuf versioning for config pbs. Field introduced in 31.1.1. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
    Hosts List<TrustedhostprofileHost>
    List of host ip(v4/v6) addresses or fqdns. Field introduced in 31.1.1. Minimum of 1 items required. Maximum of 20 items allowed. Allowed with any value in enterprise, enterprise with cloud services edition.
    Name string
    Trustedhostprofile name. Field introduced in 31.1.1. Allowed with any value in enterprise, enterprise with cloud services edition.
    TenantRef string
    Tenant ref for trusted host profile. 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.
    TrustedhostprofileId string
    Uuid string
    Trustedhostprofile uuid. Field introduced in 31.1.1. Allowed with any value in enterprise, enterprise with cloud services edition.
    ConfigpbAttributes []TrustedhostprofileConfigpbAttributeArgs
    Protobuf versioning for config pbs. Field introduced in 31.1.1. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
    Hosts []TrustedhostprofileHostArgs
    List of host ip(v4/v6) addresses or fqdns. Field introduced in 31.1.1. Minimum of 1 items required. Maximum of 20 items allowed. Allowed with any value in enterprise, enterprise with cloud services edition.
    Name string
    Trustedhostprofile name. Field introduced in 31.1.1. Allowed with any value in enterprise, enterprise with cloud services edition.
    TenantRef string
    Tenant ref for trusted host profile. 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.
    TrustedhostprofileId string
    Uuid string
    Trustedhostprofile uuid. Field introduced in 31.1.1. Allowed with any value in enterprise, enterprise with cloud services edition.
    configpbAttributes List<TrustedhostprofileConfigpbAttribute>
    Protobuf versioning for config pbs. Field introduced in 31.1.1. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
    hosts List<TrustedhostprofileHost>
    List of host ip(v4/v6) addresses or fqdns. Field introduced in 31.1.1. Minimum of 1 items required. Maximum of 20 items allowed. Allowed with any value in enterprise, enterprise with cloud services edition.
    name String
    Trustedhostprofile name. Field introduced in 31.1.1. Allowed with any value in enterprise, enterprise with cloud services edition.
    tenantRef String
    Tenant ref for trusted host profile. 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.
    trustedhostprofileId String
    uuid String
    Trustedhostprofile uuid. Field introduced in 31.1.1. Allowed with any value in enterprise, enterprise with cloud services edition.
    configpbAttributes TrustedhostprofileConfigpbAttribute[]
    Protobuf versioning for config pbs. Field introduced in 31.1.1. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
    hosts TrustedhostprofileHost[]
    List of host ip(v4/v6) addresses or fqdns. Field introduced in 31.1.1. Minimum of 1 items required. Maximum of 20 items allowed. Allowed with any value in enterprise, enterprise with cloud services edition.
    name string
    Trustedhostprofile name. Field introduced in 31.1.1. Allowed with any value in enterprise, enterprise with cloud services edition.
    tenantRef string
    Tenant ref for trusted host profile. 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.
    trustedhostprofileId string
    uuid string
    Trustedhostprofile uuid. Field introduced in 31.1.1. Allowed with any value in enterprise, enterprise with cloud services edition.
    configpb_attributes Sequence[TrustedhostprofileConfigpbAttributeArgs]
    Protobuf versioning for config pbs. Field introduced in 31.1.1. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
    hosts Sequence[TrustedhostprofileHostArgs]
    List of host ip(v4/v6) addresses or fqdns. Field introduced in 31.1.1. Minimum of 1 items required. Maximum of 20 items allowed. Allowed with any value in enterprise, enterprise with cloud services edition.
    name str
    Trustedhostprofile name. Field introduced in 31.1.1. Allowed with any value in enterprise, enterprise with cloud services edition.
    tenant_ref str
    Tenant ref for trusted host profile. 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.
    trustedhostprofile_id str
    uuid str
    Trustedhostprofile uuid. Field introduced in 31.1.1. Allowed with any value in enterprise, enterprise with cloud services edition.
    configpbAttributes List<Property Map>
    Protobuf versioning for config pbs. Field introduced in 31.1.1. Allowed with any value in enterprise, essentials, basic, enterprise with cloud services edition.
    hosts List<Property Map>
    List of host ip(v4/v6) addresses or fqdns. Field introduced in 31.1.1. Minimum of 1 items required. Maximum of 20 items allowed. Allowed with any value in enterprise, enterprise with cloud services edition.
    name String
    Trustedhostprofile name. Field introduced in 31.1.1. Allowed with any value in enterprise, enterprise with cloud services edition.
    tenantRef String
    Tenant ref for trusted host profile. 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.
    trustedhostprofileId String
    uuid String
    Trustedhostprofile uuid. Field introduced in 31.1.1. Allowed with any value in enterprise, enterprise with cloud services edition.

    Supporting Types

    TrustedhostprofileConfigpbAttribute, TrustedhostprofileConfigpbAttributeArgs

    Version string
    Version string
    version String
    version string
    version String

    TrustedhostprofileHost, TrustedhostprofileHostArgs

    TrustedhostprofileHostHost, TrustedhostprofileHostHostArgs

    Addr string
    Type string
    Addr string
    Type string
    addr String
    type String
    addr string
    type string
    addr str
    type str
    addr String
    type String

    Package Details

    Repository
    avi vmware/terraform-provider-avi
    License
    Notes
    This Pulumi package is based on the avi Terraform Provider.
    avi logo
    avi 31.1.1 published on Monday, Apr 14, 2025 by vmware