1. Packages
  2. Mso Provider
  3. API Docs
  4. TenantPoliciesBgpPeerPrefixPolicy
mso 1.7.0 published on Tuesday, Dec 9, 2025 by ciscodevnet
mso logo
mso 1.7.0 published on Tuesday, Dec 9, 2025 by ciscodevnet

    Create TenantPoliciesBgpPeerPrefixPolicy Resource

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

    Constructor syntax

    new TenantPoliciesBgpPeerPrefixPolicy(name: string, args: TenantPoliciesBgpPeerPrefixPolicyArgs, opts?: CustomResourceOptions);
    @overload
    def TenantPoliciesBgpPeerPrefixPolicy(resource_name: str,
                                          args: TenantPoliciesBgpPeerPrefixPolicyArgs,
                                          opts: Optional[ResourceOptions] = None)
    
    @overload
    def TenantPoliciesBgpPeerPrefixPolicy(resource_name: str,
                                          opts: Optional[ResourceOptions] = None,
                                          template_id: Optional[str] = None,
                                          action: Optional[str] = None,
                                          description: Optional[str] = None,
                                          max_number_of_prefixes: Optional[float] = None,
                                          name: Optional[str] = None,
                                          restart_time: Optional[float] = None,
                                          tenant_policies_bgp_peer_prefix_policy_id: Optional[str] = None,
                                          threshold_percentage: Optional[float] = None)
    func NewTenantPoliciesBgpPeerPrefixPolicy(ctx *Context, name string, args TenantPoliciesBgpPeerPrefixPolicyArgs, opts ...ResourceOption) (*TenantPoliciesBgpPeerPrefixPolicy, error)
    public TenantPoliciesBgpPeerPrefixPolicy(string name, TenantPoliciesBgpPeerPrefixPolicyArgs args, CustomResourceOptions? opts = null)
    public TenantPoliciesBgpPeerPrefixPolicy(String name, TenantPoliciesBgpPeerPrefixPolicyArgs args)
    public TenantPoliciesBgpPeerPrefixPolicy(String name, TenantPoliciesBgpPeerPrefixPolicyArgs args, CustomResourceOptions options)
    
    type: mso:TenantPoliciesBgpPeerPrefixPolicy
    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 TenantPoliciesBgpPeerPrefixPolicyArgs
    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 TenantPoliciesBgpPeerPrefixPolicyArgs
    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 TenantPoliciesBgpPeerPrefixPolicyArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args TenantPoliciesBgpPeerPrefixPolicyArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args TenantPoliciesBgpPeerPrefixPolicyArgs
    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 tenantPoliciesBgpPeerPrefixPolicyResource = new Mso.TenantPoliciesBgpPeerPrefixPolicy("tenantPoliciesBgpPeerPrefixPolicyResource", new()
    {
        TemplateId = "string",
        Action = "string",
        Description = "string",
        MaxNumberOfPrefixes = 0,
        Name = "string",
        RestartTime = 0,
        TenantPoliciesBgpPeerPrefixPolicyId = "string",
        ThresholdPercentage = 0,
    });
    
    example, err := mso.NewTenantPoliciesBgpPeerPrefixPolicy(ctx, "tenantPoliciesBgpPeerPrefixPolicyResource", &mso.TenantPoliciesBgpPeerPrefixPolicyArgs{
    	TemplateId:                          pulumi.String("string"),
    	Action:                              pulumi.String("string"),
    	Description:                         pulumi.String("string"),
    	MaxNumberOfPrefixes:                 pulumi.Float64(0),
    	Name:                                pulumi.String("string"),
    	RestartTime:                         pulumi.Float64(0),
    	TenantPoliciesBgpPeerPrefixPolicyId: pulumi.String("string"),
    	ThresholdPercentage:                 pulumi.Float64(0),
    })
    
    var tenantPoliciesBgpPeerPrefixPolicyResource = new TenantPoliciesBgpPeerPrefixPolicy("tenantPoliciesBgpPeerPrefixPolicyResource", TenantPoliciesBgpPeerPrefixPolicyArgs.builder()
        .templateId("string")
        .action("string")
        .description("string")
        .maxNumberOfPrefixes(0.0)
        .name("string")
        .restartTime(0.0)
        .tenantPoliciesBgpPeerPrefixPolicyId("string")
        .thresholdPercentage(0.0)
        .build());
    
    tenant_policies_bgp_peer_prefix_policy_resource = mso.TenantPoliciesBgpPeerPrefixPolicy("tenantPoliciesBgpPeerPrefixPolicyResource",
        template_id="string",
        action="string",
        description="string",
        max_number_of_prefixes=0,
        name="string",
        restart_time=0,
        tenant_policies_bgp_peer_prefix_policy_id="string",
        threshold_percentage=0)
    
    const tenantPoliciesBgpPeerPrefixPolicyResource = new mso.TenantPoliciesBgpPeerPrefixPolicy("tenantPoliciesBgpPeerPrefixPolicyResource", {
        templateId: "string",
        action: "string",
        description: "string",
        maxNumberOfPrefixes: 0,
        name: "string",
        restartTime: 0,
        tenantPoliciesBgpPeerPrefixPolicyId: "string",
        thresholdPercentage: 0,
    });
    
    type: mso:TenantPoliciesBgpPeerPrefixPolicy
    properties:
        action: string
        description: string
        maxNumberOfPrefixes: 0
        name: string
        restartTime: 0
        templateId: string
        tenantPoliciesBgpPeerPrefixPolicyId: string
        thresholdPercentage: 0
    

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

    TemplateId string
    The ID of the tenant policy template.
    Action string
    The action of the BGP Peer Prefix Policy. Valid values are 'log', 'reject', 'restart', 'shutdown'.
    Description string
    The description of the BGP Peer Prefix Policy.
    MaxNumberOfPrefixes double
    The maximum number of prefixes for the BGP Peer Prefix Policy. Value must be between 1 and 300000.
    Name string
    The name of the BGP Peer Prefix Policy.
    RestartTime double
    The restart time of the BGP Peer Prefix Policy in seconds. Value must be between 1 and 65535.
    TenantPoliciesBgpPeerPrefixPolicyId string
    ThresholdPercentage double
    The threshold percentage of the BGP Peer Prefix Policy. Value must be between 1 and 100.
    TemplateId string
    The ID of the tenant policy template.
    Action string
    The action of the BGP Peer Prefix Policy. Valid values are 'log', 'reject', 'restart', 'shutdown'.
    Description string
    The description of the BGP Peer Prefix Policy.
    MaxNumberOfPrefixes float64
    The maximum number of prefixes for the BGP Peer Prefix Policy. Value must be between 1 and 300000.
    Name string
    The name of the BGP Peer Prefix Policy.
    RestartTime float64
    The restart time of the BGP Peer Prefix Policy in seconds. Value must be between 1 and 65535.
    TenantPoliciesBgpPeerPrefixPolicyId string
    ThresholdPercentage float64
    The threshold percentage of the BGP Peer Prefix Policy. Value must be between 1 and 100.
    templateId String
    The ID of the tenant policy template.
    action String
    The action of the BGP Peer Prefix Policy. Valid values are 'log', 'reject', 'restart', 'shutdown'.
    description String
    The description of the BGP Peer Prefix Policy.
    maxNumberOfPrefixes Double
    The maximum number of prefixes for the BGP Peer Prefix Policy. Value must be between 1 and 300000.
    name String
    The name of the BGP Peer Prefix Policy.
    restartTime Double
    The restart time of the BGP Peer Prefix Policy in seconds. Value must be between 1 and 65535.
    tenantPoliciesBgpPeerPrefixPolicyId String
    thresholdPercentage Double
    The threshold percentage of the BGP Peer Prefix Policy. Value must be between 1 and 100.
    templateId string
    The ID of the tenant policy template.
    action string
    The action of the BGP Peer Prefix Policy. Valid values are 'log', 'reject', 'restart', 'shutdown'.
    description string
    The description of the BGP Peer Prefix Policy.
    maxNumberOfPrefixes number
    The maximum number of prefixes for the BGP Peer Prefix Policy. Value must be between 1 and 300000.
    name string
    The name of the BGP Peer Prefix Policy.
    restartTime number
    The restart time of the BGP Peer Prefix Policy in seconds. Value must be between 1 and 65535.
    tenantPoliciesBgpPeerPrefixPolicyId string
    thresholdPercentage number
    The threshold percentage of the BGP Peer Prefix Policy. Value must be between 1 and 100.
    template_id str
    The ID of the tenant policy template.
    action str
    The action of the BGP Peer Prefix Policy. Valid values are 'log', 'reject', 'restart', 'shutdown'.
    description str
    The description of the BGP Peer Prefix Policy.
    max_number_of_prefixes float
    The maximum number of prefixes for the BGP Peer Prefix Policy. Value must be between 1 and 300000.
    name str
    The name of the BGP Peer Prefix Policy.
    restart_time float
    The restart time of the BGP Peer Prefix Policy in seconds. Value must be between 1 and 65535.
    tenant_policies_bgp_peer_prefix_policy_id str
    threshold_percentage float
    The threshold percentage of the BGP Peer Prefix Policy. Value must be between 1 and 100.
    templateId String
    The ID of the tenant policy template.
    action String
    The action of the BGP Peer Prefix Policy. Valid values are 'log', 'reject', 'restart', 'shutdown'.
    description String
    The description of the BGP Peer Prefix Policy.
    maxNumberOfPrefixes Number
    The maximum number of prefixes for the BGP Peer Prefix Policy. Value must be between 1 and 300000.
    name String
    The name of the BGP Peer Prefix Policy.
    restartTime Number
    The restart time of the BGP Peer Prefix Policy in seconds. Value must be between 1 and 65535.
    tenantPoliciesBgpPeerPrefixPolicyId String
    thresholdPercentage Number
    The threshold percentage of the BGP Peer Prefix Policy. Value must be between 1 and 100.

    Outputs

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

    Id string
    The provider-assigned unique ID for this managed resource.
    Uuid string
    The UUID of the BGP Peer Prefix Policy.
    Id string
    The provider-assigned unique ID for this managed resource.
    Uuid string
    The UUID of the BGP Peer Prefix Policy.
    id String
    The provider-assigned unique ID for this managed resource.
    uuid String
    The UUID of the BGP Peer Prefix Policy.
    id string
    The provider-assigned unique ID for this managed resource.
    uuid string
    The UUID of the BGP Peer Prefix Policy.
    id str
    The provider-assigned unique ID for this managed resource.
    uuid str
    The UUID of the BGP Peer Prefix Policy.
    id String
    The provider-assigned unique ID for this managed resource.
    uuid String
    The UUID of the BGP Peer Prefix Policy.

    Look up Existing TenantPoliciesBgpPeerPrefixPolicy Resource

    Get an existing TenantPoliciesBgpPeerPrefixPolicy 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?: TenantPoliciesBgpPeerPrefixPolicyState, opts?: CustomResourceOptions): TenantPoliciesBgpPeerPrefixPolicy
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            action: Optional[str] = None,
            description: Optional[str] = None,
            max_number_of_prefixes: Optional[float] = None,
            name: Optional[str] = None,
            restart_time: Optional[float] = None,
            template_id: Optional[str] = None,
            tenant_policies_bgp_peer_prefix_policy_id: Optional[str] = None,
            threshold_percentage: Optional[float] = None,
            uuid: Optional[str] = None) -> TenantPoliciesBgpPeerPrefixPolicy
    func GetTenantPoliciesBgpPeerPrefixPolicy(ctx *Context, name string, id IDInput, state *TenantPoliciesBgpPeerPrefixPolicyState, opts ...ResourceOption) (*TenantPoliciesBgpPeerPrefixPolicy, error)
    public static TenantPoliciesBgpPeerPrefixPolicy Get(string name, Input<string> id, TenantPoliciesBgpPeerPrefixPolicyState? state, CustomResourceOptions? opts = null)
    public static TenantPoliciesBgpPeerPrefixPolicy get(String name, Output<String> id, TenantPoliciesBgpPeerPrefixPolicyState state, CustomResourceOptions options)
    resources:  _:    type: mso:TenantPoliciesBgpPeerPrefixPolicy    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:
    Action string
    The action of the BGP Peer Prefix Policy. Valid values are 'log', 'reject', 'restart', 'shutdown'.
    Description string
    The description of the BGP Peer Prefix Policy.
    MaxNumberOfPrefixes double
    The maximum number of prefixes for the BGP Peer Prefix Policy. Value must be between 1 and 300000.
    Name string
    The name of the BGP Peer Prefix Policy.
    RestartTime double
    The restart time of the BGP Peer Prefix Policy in seconds. Value must be between 1 and 65535.
    TemplateId string
    The ID of the tenant policy template.
    TenantPoliciesBgpPeerPrefixPolicyId string
    ThresholdPercentage double
    The threshold percentage of the BGP Peer Prefix Policy. Value must be between 1 and 100.
    Uuid string
    The UUID of the BGP Peer Prefix Policy.
    Action string
    The action of the BGP Peer Prefix Policy. Valid values are 'log', 'reject', 'restart', 'shutdown'.
    Description string
    The description of the BGP Peer Prefix Policy.
    MaxNumberOfPrefixes float64
    The maximum number of prefixes for the BGP Peer Prefix Policy. Value must be between 1 and 300000.
    Name string
    The name of the BGP Peer Prefix Policy.
    RestartTime float64
    The restart time of the BGP Peer Prefix Policy in seconds. Value must be between 1 and 65535.
    TemplateId string
    The ID of the tenant policy template.
    TenantPoliciesBgpPeerPrefixPolicyId string
    ThresholdPercentage float64
    The threshold percentage of the BGP Peer Prefix Policy. Value must be between 1 and 100.
    Uuid string
    The UUID of the BGP Peer Prefix Policy.
    action String
    The action of the BGP Peer Prefix Policy. Valid values are 'log', 'reject', 'restart', 'shutdown'.
    description String
    The description of the BGP Peer Prefix Policy.
    maxNumberOfPrefixes Double
    The maximum number of prefixes for the BGP Peer Prefix Policy. Value must be between 1 and 300000.
    name String
    The name of the BGP Peer Prefix Policy.
    restartTime Double
    The restart time of the BGP Peer Prefix Policy in seconds. Value must be between 1 and 65535.
    templateId String
    The ID of the tenant policy template.
    tenantPoliciesBgpPeerPrefixPolicyId String
    thresholdPercentage Double
    The threshold percentage of the BGP Peer Prefix Policy. Value must be between 1 and 100.
    uuid String
    The UUID of the BGP Peer Prefix Policy.
    action string
    The action of the BGP Peer Prefix Policy. Valid values are 'log', 'reject', 'restart', 'shutdown'.
    description string
    The description of the BGP Peer Prefix Policy.
    maxNumberOfPrefixes number
    The maximum number of prefixes for the BGP Peer Prefix Policy. Value must be between 1 and 300000.
    name string
    The name of the BGP Peer Prefix Policy.
    restartTime number
    The restart time of the BGP Peer Prefix Policy in seconds. Value must be between 1 and 65535.
    templateId string
    The ID of the tenant policy template.
    tenantPoliciesBgpPeerPrefixPolicyId string
    thresholdPercentage number
    The threshold percentage of the BGP Peer Prefix Policy. Value must be between 1 and 100.
    uuid string
    The UUID of the BGP Peer Prefix Policy.
    action str
    The action of the BGP Peer Prefix Policy. Valid values are 'log', 'reject', 'restart', 'shutdown'.
    description str
    The description of the BGP Peer Prefix Policy.
    max_number_of_prefixes float
    The maximum number of prefixes for the BGP Peer Prefix Policy. Value must be between 1 and 300000.
    name str
    The name of the BGP Peer Prefix Policy.
    restart_time float
    The restart time of the BGP Peer Prefix Policy in seconds. Value must be between 1 and 65535.
    template_id str
    The ID of the tenant policy template.
    tenant_policies_bgp_peer_prefix_policy_id str
    threshold_percentage float
    The threshold percentage of the BGP Peer Prefix Policy. Value must be between 1 and 100.
    uuid str
    The UUID of the BGP Peer Prefix Policy.
    action String
    The action of the BGP Peer Prefix Policy. Valid values are 'log', 'reject', 'restart', 'shutdown'.
    description String
    The description of the BGP Peer Prefix Policy.
    maxNumberOfPrefixes Number
    The maximum number of prefixes for the BGP Peer Prefix Policy. Value must be between 1 and 300000.
    name String
    The name of the BGP Peer Prefix Policy.
    restartTime Number
    The restart time of the BGP Peer Prefix Policy in seconds. Value must be between 1 and 65535.
    templateId String
    The ID of the tenant policy template.
    tenantPoliciesBgpPeerPrefixPolicyId String
    thresholdPercentage Number
    The threshold percentage of the BGP Peer Prefix Policy. Value must be between 1 and 100.
    uuid String
    The UUID of the BGP Peer Prefix Policy.

    Package Details

    Repository
    mso ciscodevnet/terraform-provider-mso
    License
    Notes
    This Pulumi package is based on the mso Terraform Provider.
    mso logo
    mso 1.7.0 published on Tuesday, Dec 9, 2025 by ciscodevnet
      Meet Neo: Your AI Platform Teammate