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

avi.Botipreputationtypemapping

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.Botipreputationtypemapping” sidebar_current: “docs-avi-resource-botipreputationtypemapping” description: |- Creates and manages Avi BotIPReputationTypeMapping.

    avi.Botipreputationtypemapping

    The BotIPReputationTypeMapping resource allows the creation and management of Avi BotIPReputationTypeMapping

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as avi from "@pulumi/avi";
    
    const foo = new avi.Botipreputationtypemapping("foo", {tenantRef: "/api/tenant/?name=admin"});
    
    import pulumi
    import pulumi_avi as avi
    
    foo = avi.Botipreputationtypemapping("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.NewBotipreputationtypemapping(ctx, "foo", &avi.BotipreputationtypemappingArgs{
    			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.Botipreputationtypemapping("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.Botipreputationtypemapping;
    import com.pulumi.avi.BotipreputationtypemappingArgs;
    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 Botipreputationtypemapping("foo", BotipreputationtypemappingArgs.builder()
                .tenantRef("/api/tenant/?name=admin")
                .build());
    
        }
    }
    
    resources:
      foo:
        type: avi:Botipreputationtypemapping
        properties:
          tenantRef: /api/tenant/?name=admin
    

    Create Botipreputationtypemapping Resource

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

    Constructor syntax

    new Botipreputationtypemapping(name: string, args?: BotipreputationtypemappingArgs, opts?: CustomResourceOptions);
    @overload
    def Botipreputationtypemapping(resource_name: str,
                                   args: Optional[BotipreputationtypemappingArgs] = None,
                                   opts: Optional[ResourceOptions] = None)
    
    @overload
    def Botipreputationtypemapping(resource_name: str,
                                   opts: Optional[ResourceOptions] = None,
                                   botipreputationtypemapping_id: Optional[str] = None,
                                   ip_reputation_mappings: Optional[Sequence[BotipreputationtypemappingIpReputationMappingArgs]] = None,
                                   name: Optional[str] = None,
                                   tenant_ref: Optional[str] = None,
                                   uuid: Optional[str] = None)
    func NewBotipreputationtypemapping(ctx *Context, name string, args *BotipreputationtypemappingArgs, opts ...ResourceOption) (*Botipreputationtypemapping, error)
    public Botipreputationtypemapping(string name, BotipreputationtypemappingArgs? args = null, CustomResourceOptions? opts = null)
    public Botipreputationtypemapping(String name, BotipreputationtypemappingArgs args)
    public Botipreputationtypemapping(String name, BotipreputationtypemappingArgs args, CustomResourceOptions options)
    
    type: avi:Botipreputationtypemapping
    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 BotipreputationtypemappingArgs
    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 BotipreputationtypemappingArgs
    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 BotipreputationtypemappingArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args BotipreputationtypemappingArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args BotipreputationtypemappingArgs
    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 botipreputationtypemappingResource = new Avi.Botipreputationtypemapping("botipreputationtypemappingResource", new()
    {
        BotipreputationtypemappingId = "string",
        IpReputationMappings = new[]
        {
            new Avi.Inputs.BotipreputationtypemappingIpReputationMappingArgs
            {
                BotIdentifications = new[]
                {
                    new Avi.Inputs.BotipreputationtypemappingIpReputationMappingBotIdentificationArgs
                    {
                        Class = "string",
                        Identifier = "string",
                        Type = "string",
                    },
                },
                IpReputationType = "string",
            },
        },
        Name = "string",
        TenantRef = "string",
        Uuid = "string",
    });
    
    example, err := avi.NewBotipreputationtypemapping(ctx, "botipreputationtypemappingResource", &avi.BotipreputationtypemappingArgs{
    	BotipreputationtypemappingId: pulumi.String("string"),
    	IpReputationMappings: avi.BotipreputationtypemappingIpReputationMappingArray{
    		&avi.BotipreputationtypemappingIpReputationMappingArgs{
    			BotIdentifications: avi.BotipreputationtypemappingIpReputationMappingBotIdentificationArray{
    				&avi.BotipreputationtypemappingIpReputationMappingBotIdentificationArgs{
    					Class:      pulumi.String("string"),
    					Identifier: pulumi.String("string"),
    					Type:       pulumi.String("string"),
    				},
    			},
    			IpReputationType: pulumi.String("string"),
    		},
    	},
    	Name:      pulumi.String("string"),
    	TenantRef: pulumi.String("string"),
    	Uuid:      pulumi.String("string"),
    })
    
    var botipreputationtypemappingResource = new Botipreputationtypemapping("botipreputationtypemappingResource", BotipreputationtypemappingArgs.builder()
        .botipreputationtypemappingId("string")
        .ipReputationMappings(BotipreputationtypemappingIpReputationMappingArgs.builder()
            .botIdentifications(BotipreputationtypemappingIpReputationMappingBotIdentificationArgs.builder()
                .class_("string")
                .identifier("string")
                .type("string")
                .build())
            .ipReputationType("string")
            .build())
        .name("string")
        .tenantRef("string")
        .uuid("string")
        .build());
    
    botipreputationtypemapping_resource = avi.Botipreputationtypemapping("botipreputationtypemappingResource",
        botipreputationtypemapping_id="string",
        ip_reputation_mappings=[{
            "bot_identifications": [{
                "class_": "string",
                "identifier": "string",
                "type": "string",
            }],
            "ip_reputation_type": "string",
        }],
        name="string",
        tenant_ref="string",
        uuid="string")
    
    const botipreputationtypemappingResource = new avi.Botipreputationtypemapping("botipreputationtypemappingResource", {
        botipreputationtypemappingId: "string",
        ipReputationMappings: [{
            botIdentifications: [{
                "class": "string",
                identifier: "string",
                type: "string",
            }],
            ipReputationType: "string",
        }],
        name: "string",
        tenantRef: "string",
        uuid: "string",
    });
    
    type: avi:Botipreputationtypemapping
    properties:
        botipreputationtypemappingId: string
        ipReputationMappings:
            - botIdentifications:
                - class: string
                  identifier: string
                  type: string
              ipReputationType: string
        name: string
        tenantRef: string
        uuid: string
    

    Botipreputationtypemapping 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 Botipreputationtypemapping resource accepts the following input properties:

    BotipreputationtypemappingId string
    IpReputationMappings List<BotipreputationtypemappingIpReputationMapping>
    Map every ipreputationtype to a bot type (can be unknown). Field introduced in 21.1.1. Allowed with any value in enterprise, enterprise with cloud services edition.
    Name string
    The name of this mapping. Field introduced in 21.1.1. Allowed with any value in enterprise, enterprise with cloud services edition.
    TenantRef string
    The unique identifier of the tenant to which this mapping belongs. It is a reference to an object of type tenant. Field introduced in 21.1.1. Allowed with any value in enterprise, enterprise with cloud services edition.
    Uuid string
    A unique identifier of this mapping. Field introduced in 21.1.1. Allowed with any value in enterprise, enterprise with cloud services edition.
    BotipreputationtypemappingId string
    IpReputationMappings []BotipreputationtypemappingIpReputationMappingArgs
    Map every ipreputationtype to a bot type (can be unknown). Field introduced in 21.1.1. Allowed with any value in enterprise, enterprise with cloud services edition.
    Name string
    The name of this mapping. Field introduced in 21.1.1. Allowed with any value in enterprise, enterprise with cloud services edition.
    TenantRef string
    The unique identifier of the tenant to which this mapping belongs. It is a reference to an object of type tenant. Field introduced in 21.1.1. Allowed with any value in enterprise, enterprise with cloud services edition.
    Uuid string
    A unique identifier of this mapping. Field introduced in 21.1.1. Allowed with any value in enterprise, enterprise with cloud services edition.
    botipreputationtypemappingId String
    ipReputationMappings List<BotipreputationtypemappingIpReputationMapping>
    Map every ipreputationtype to a bot type (can be unknown). Field introduced in 21.1.1. Allowed with any value in enterprise, enterprise with cloud services edition.
    name String
    The name of this mapping. Field introduced in 21.1.1. Allowed with any value in enterprise, enterprise with cloud services edition.
    tenantRef String
    The unique identifier of the tenant to which this mapping belongs. It is a reference to an object of type tenant. Field introduced in 21.1.1. Allowed with any value in enterprise, enterprise with cloud services edition.
    uuid String
    A unique identifier of this mapping. Field introduced in 21.1.1. Allowed with any value in enterprise, enterprise with cloud services edition.
    botipreputationtypemappingId string
    ipReputationMappings BotipreputationtypemappingIpReputationMapping[]
    Map every ipreputationtype to a bot type (can be unknown). Field introduced in 21.1.1. Allowed with any value in enterprise, enterprise with cloud services edition.
    name string
    The name of this mapping. Field introduced in 21.1.1. Allowed with any value in enterprise, enterprise with cloud services edition.
    tenantRef string
    The unique identifier of the tenant to which this mapping belongs. It is a reference to an object of type tenant. Field introduced in 21.1.1. Allowed with any value in enterprise, enterprise with cloud services edition.
    uuid string
    A unique identifier of this mapping. Field introduced in 21.1.1. Allowed with any value in enterprise, enterprise with cloud services edition.
    botipreputationtypemapping_id str
    ip_reputation_mappings Sequence[BotipreputationtypemappingIpReputationMappingArgs]
    Map every ipreputationtype to a bot type (can be unknown). Field introduced in 21.1.1. Allowed with any value in enterprise, enterprise with cloud services edition.
    name str
    The name of this mapping. Field introduced in 21.1.1. Allowed with any value in enterprise, enterprise with cloud services edition.
    tenant_ref str
    The unique identifier of the tenant to which this mapping belongs. It is a reference to an object of type tenant. Field introduced in 21.1.1. Allowed with any value in enterprise, enterprise with cloud services edition.
    uuid str
    A unique identifier of this mapping. Field introduced in 21.1.1. Allowed with any value in enterprise, enterprise with cloud services edition.
    botipreputationtypemappingId String
    ipReputationMappings List<Property Map>
    Map every ipreputationtype to a bot type (can be unknown). Field introduced in 21.1.1. Allowed with any value in enterprise, enterprise with cloud services edition.
    name String
    The name of this mapping. Field introduced in 21.1.1. Allowed with any value in enterprise, enterprise with cloud services edition.
    tenantRef String
    The unique identifier of the tenant to which this mapping belongs. It is a reference to an object of type tenant. Field introduced in 21.1.1. Allowed with any value in enterprise, enterprise with cloud services edition.
    uuid String
    A unique identifier of this mapping. Field introduced in 21.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 Botipreputationtypemapping 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 Botipreputationtypemapping Resource

    Get an existing Botipreputationtypemapping 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?: BotipreputationtypemappingState, opts?: CustomResourceOptions): Botipreputationtypemapping
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            botipreputationtypemapping_id: Optional[str] = None,
            ip_reputation_mappings: Optional[Sequence[BotipreputationtypemappingIpReputationMappingArgs]] = None,
            name: Optional[str] = None,
            tenant_ref: Optional[str] = None,
            uuid: Optional[str] = None) -> Botipreputationtypemapping
    func GetBotipreputationtypemapping(ctx *Context, name string, id IDInput, state *BotipreputationtypemappingState, opts ...ResourceOption) (*Botipreputationtypemapping, error)
    public static Botipreputationtypemapping Get(string name, Input<string> id, BotipreputationtypemappingState? state, CustomResourceOptions? opts = null)
    public static Botipreputationtypemapping get(String name, Output<String> id, BotipreputationtypemappingState state, CustomResourceOptions options)
    resources:  _:    type: avi:Botipreputationtypemapping    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:
    BotipreputationtypemappingId string
    IpReputationMappings List<BotipreputationtypemappingIpReputationMapping>
    Map every ipreputationtype to a bot type (can be unknown). Field introduced in 21.1.1. Allowed with any value in enterprise, enterprise with cloud services edition.
    Name string
    The name of this mapping. Field introduced in 21.1.1. Allowed with any value in enterprise, enterprise with cloud services edition.
    TenantRef string
    The unique identifier of the tenant to which this mapping belongs. It is a reference to an object of type tenant. Field introduced in 21.1.1. Allowed with any value in enterprise, enterprise with cloud services edition.
    Uuid string
    A unique identifier of this mapping. Field introduced in 21.1.1. Allowed with any value in enterprise, enterprise with cloud services edition.
    BotipreputationtypemappingId string
    IpReputationMappings []BotipreputationtypemappingIpReputationMappingArgs
    Map every ipreputationtype to a bot type (can be unknown). Field introduced in 21.1.1. Allowed with any value in enterprise, enterprise with cloud services edition.
    Name string
    The name of this mapping. Field introduced in 21.1.1. Allowed with any value in enterprise, enterprise with cloud services edition.
    TenantRef string
    The unique identifier of the tenant to which this mapping belongs. It is a reference to an object of type tenant. Field introduced in 21.1.1. Allowed with any value in enterprise, enterprise with cloud services edition.
    Uuid string
    A unique identifier of this mapping. Field introduced in 21.1.1. Allowed with any value in enterprise, enterprise with cloud services edition.
    botipreputationtypemappingId String
    ipReputationMappings List<BotipreputationtypemappingIpReputationMapping>
    Map every ipreputationtype to a bot type (can be unknown). Field introduced in 21.1.1. Allowed with any value in enterprise, enterprise with cloud services edition.
    name String
    The name of this mapping. Field introduced in 21.1.1. Allowed with any value in enterprise, enterprise with cloud services edition.
    tenantRef String
    The unique identifier of the tenant to which this mapping belongs. It is a reference to an object of type tenant. Field introduced in 21.1.1. Allowed with any value in enterprise, enterprise with cloud services edition.
    uuid String
    A unique identifier of this mapping. Field introduced in 21.1.1. Allowed with any value in enterprise, enterprise with cloud services edition.
    botipreputationtypemappingId string
    ipReputationMappings BotipreputationtypemappingIpReputationMapping[]
    Map every ipreputationtype to a bot type (can be unknown). Field introduced in 21.1.1. Allowed with any value in enterprise, enterprise with cloud services edition.
    name string
    The name of this mapping. Field introduced in 21.1.1. Allowed with any value in enterprise, enterprise with cloud services edition.
    tenantRef string
    The unique identifier of the tenant to which this mapping belongs. It is a reference to an object of type tenant. Field introduced in 21.1.1. Allowed with any value in enterprise, enterprise with cloud services edition.
    uuid string
    A unique identifier of this mapping. Field introduced in 21.1.1. Allowed with any value in enterprise, enterprise with cloud services edition.
    botipreputationtypemapping_id str
    ip_reputation_mappings Sequence[BotipreputationtypemappingIpReputationMappingArgs]
    Map every ipreputationtype to a bot type (can be unknown). Field introduced in 21.1.1. Allowed with any value in enterprise, enterprise with cloud services edition.
    name str
    The name of this mapping. Field introduced in 21.1.1. Allowed with any value in enterprise, enterprise with cloud services edition.
    tenant_ref str
    The unique identifier of the tenant to which this mapping belongs. It is a reference to an object of type tenant. Field introduced in 21.1.1. Allowed with any value in enterprise, enterprise with cloud services edition.
    uuid str
    A unique identifier of this mapping. Field introduced in 21.1.1. Allowed with any value in enterprise, enterprise with cloud services edition.
    botipreputationtypemappingId String
    ipReputationMappings List<Property Map>
    Map every ipreputationtype to a bot type (can be unknown). Field introduced in 21.1.1. Allowed with any value in enterprise, enterprise with cloud services edition.
    name String
    The name of this mapping. Field introduced in 21.1.1. Allowed with any value in enterprise, enterprise with cloud services edition.
    tenantRef String
    The unique identifier of the tenant to which this mapping belongs. It is a reference to an object of type tenant. Field introduced in 21.1.1. Allowed with any value in enterprise, enterprise with cloud services edition.
    uuid String
    A unique identifier of this mapping. Field introduced in 21.1.1. Allowed with any value in enterprise, enterprise with cloud services edition.

    Supporting Types

    BotipreputationtypemappingIpReputationMapping, BotipreputationtypemappingIpReputationMappingArgs

    BotipreputationtypemappingIpReputationMappingBotIdentification, BotipreputationtypemappingIpReputationMappingBotIdentificationArgs

    Class string
    Identifier string
    Type string
    Class string
    Identifier string
    Type string
    class_ String
    identifier String
    type String
    class string
    identifier string
    type string
    class String
    identifier 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