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:
- Template
Id 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.
- Max
Number doubleOf Prefixes - 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.
- Restart
Time double - The restart time of the BGP Peer Prefix Policy in seconds. Value must be between 1 and 65535.
- Tenant
Policies stringBgp Peer Prefix Policy Id - Threshold
Percentage double - The threshold percentage of the BGP Peer Prefix Policy. Value must be between 1 and 100.
- Template
Id 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.
- Max
Number float64Of Prefixes - 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.
- Restart
Time float64 - The restart time of the BGP Peer Prefix Policy in seconds. Value must be between 1 and 65535.
- Tenant
Policies stringBgp Peer Prefix Policy Id - Threshold
Percentage float64 - The threshold percentage of the BGP Peer Prefix Policy. Value must be between 1 and 100.
- template
Id 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.
- max
Number DoubleOf Prefixes - 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.
- restart
Time Double - The restart time of the BGP Peer Prefix Policy in seconds. Value must be between 1 and 65535.
- tenant
Policies StringBgp Peer Prefix Policy Id - threshold
Percentage Double - The threshold percentage of the BGP Peer Prefix Policy. Value must be between 1 and 100.
- template
Id 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.
- max
Number numberOf Prefixes - 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.
- restart
Time number - The restart time of the BGP Peer Prefix Policy in seconds. Value must be between 1 and 65535.
- tenant
Policies stringBgp Peer Prefix Policy Id - threshold
Percentage 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_ floatof_ prefixes - 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_ strbgp_ peer_ prefix_ policy_ id - threshold_
percentage float - The threshold percentage of the BGP Peer Prefix Policy. Value must be between 1 and 100.
- template
Id 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.
- max
Number NumberOf Prefixes - 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.
- restart
Time Number - The restart time of the BGP Peer Prefix Policy in seconds. Value must be between 1 and 65535.
- tenant
Policies StringBgp Peer Prefix Policy Id - threshold
Percentage 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:
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) -> TenantPoliciesBgpPeerPrefixPolicyfunc 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.
- 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.
- Max
Number doubleOf Prefixes - 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.
- Restart
Time double - The restart time of the BGP Peer Prefix Policy in seconds. Value must be between 1 and 65535.
- Template
Id string - The ID of the tenant policy template.
- Tenant
Policies stringBgp Peer Prefix Policy Id - Threshold
Percentage 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.
- Max
Number float64Of Prefixes - 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.
- Restart
Time float64 - The restart time of the BGP Peer Prefix Policy in seconds. Value must be between 1 and 65535.
- Template
Id string - The ID of the tenant policy template.
- Tenant
Policies stringBgp Peer Prefix Policy Id - Threshold
Percentage 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.
- max
Number DoubleOf Prefixes - 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.
- restart
Time Double - The restart time of the BGP Peer Prefix Policy in seconds. Value must be between 1 and 65535.
- template
Id String - The ID of the tenant policy template.
- tenant
Policies StringBgp Peer Prefix Policy Id - threshold
Percentage 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.
- max
Number numberOf Prefixes - 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.
- restart
Time number - The restart time of the BGP Peer Prefix Policy in seconds. Value must be between 1 and 65535.
- template
Id string - The ID of the tenant policy template.
- tenant
Policies stringBgp Peer Prefix Policy Id - threshold
Percentage 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_ floatof_ prefixes - 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_ strbgp_ peer_ prefix_ policy_ id - 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.
- max
Number NumberOf Prefixes - 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.
- restart
Time Number - The restart time of the BGP Peer Prefix Policy in seconds. Value must be between 1 and 65535.
- template
Id String - The ID of the tenant policy template.
- tenant
Policies StringBgp Peer Prefix Policy Id - threshold
Percentage 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
msoTerraform Provider.
