mso.TenantPoliciesDhcpRelayPolicy
Explore with Pulumi AI
Create TenantPoliciesDhcpRelayPolicy Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new TenantPoliciesDhcpRelayPolicy(name: string, args: TenantPoliciesDhcpRelayPolicyArgs, opts?: CustomResourceOptions);
@overload
def TenantPoliciesDhcpRelayPolicy(resource_name: str,
args: TenantPoliciesDhcpRelayPolicyArgs,
opts: Optional[ResourceOptions] = None)
@overload
def TenantPoliciesDhcpRelayPolicy(resource_name: str,
opts: Optional[ResourceOptions] = None,
dhcp_relay_providers: Optional[Sequence[TenantPoliciesDhcpRelayPolicyDhcpRelayProviderArgs]] = None,
template_id: Optional[str] = None,
description: Optional[str] = None,
name: Optional[str] = None,
tenant_policies_dhcp_relay_policy_id: Optional[str] = None)
func NewTenantPoliciesDhcpRelayPolicy(ctx *Context, name string, args TenantPoliciesDhcpRelayPolicyArgs, opts ...ResourceOption) (*TenantPoliciesDhcpRelayPolicy, error)
public TenantPoliciesDhcpRelayPolicy(string name, TenantPoliciesDhcpRelayPolicyArgs args, CustomResourceOptions? opts = null)
public TenantPoliciesDhcpRelayPolicy(String name, TenantPoliciesDhcpRelayPolicyArgs args)
public TenantPoliciesDhcpRelayPolicy(String name, TenantPoliciesDhcpRelayPolicyArgs args, CustomResourceOptions options)
type: mso:TenantPoliciesDhcpRelayPolicy
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 TenantPoliciesDhcpRelayPolicyArgs
- 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 TenantPoliciesDhcpRelayPolicyArgs
- 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 TenantPoliciesDhcpRelayPolicyArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args TenantPoliciesDhcpRelayPolicyArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args TenantPoliciesDhcpRelayPolicyArgs
- 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 tenantPoliciesDhcpRelayPolicyResource = new Mso.TenantPoliciesDhcpRelayPolicy("tenantPoliciesDhcpRelayPolicyResource", new()
{
DhcpRelayProviders = new[]
{
new Mso.Inputs.TenantPoliciesDhcpRelayPolicyDhcpRelayProviderArgs
{
DhcpServerAddress = "string",
ApplicationEpgUuid = "string",
DhcpServerVrfPreference = false,
ExternalEpgUuid = "string",
},
},
TemplateId = "string",
Description = "string",
Name = "string",
TenantPoliciesDhcpRelayPolicyId = "string",
});
example, err := mso.NewTenantPoliciesDhcpRelayPolicy(ctx, "tenantPoliciesDhcpRelayPolicyResource", &mso.TenantPoliciesDhcpRelayPolicyArgs{
DhcpRelayProviders: mso.TenantPoliciesDhcpRelayPolicyDhcpRelayProviderArray{
&mso.TenantPoliciesDhcpRelayPolicyDhcpRelayProviderArgs{
DhcpServerAddress: pulumi.String("string"),
ApplicationEpgUuid: pulumi.String("string"),
DhcpServerVrfPreference: pulumi.Bool(false),
ExternalEpgUuid: pulumi.String("string"),
},
},
TemplateId: pulumi.String("string"),
Description: pulumi.String("string"),
Name: pulumi.String("string"),
TenantPoliciesDhcpRelayPolicyId: pulumi.String("string"),
})
var tenantPoliciesDhcpRelayPolicyResource = new TenantPoliciesDhcpRelayPolicy("tenantPoliciesDhcpRelayPolicyResource", TenantPoliciesDhcpRelayPolicyArgs.builder()
.dhcpRelayProviders(TenantPoliciesDhcpRelayPolicyDhcpRelayProviderArgs.builder()
.dhcpServerAddress("string")
.applicationEpgUuid("string")
.dhcpServerVrfPreference(false)
.externalEpgUuid("string")
.build())
.templateId("string")
.description("string")
.name("string")
.tenantPoliciesDhcpRelayPolicyId("string")
.build());
tenant_policies_dhcp_relay_policy_resource = mso.TenantPoliciesDhcpRelayPolicy("tenantPoliciesDhcpRelayPolicyResource",
dhcp_relay_providers=[{
"dhcp_server_address": "string",
"application_epg_uuid": "string",
"dhcp_server_vrf_preference": False,
"external_epg_uuid": "string",
}],
template_id="string",
description="string",
name="string",
tenant_policies_dhcp_relay_policy_id="string")
const tenantPoliciesDhcpRelayPolicyResource = new mso.TenantPoliciesDhcpRelayPolicy("tenantPoliciesDhcpRelayPolicyResource", {
dhcpRelayProviders: [{
dhcpServerAddress: "string",
applicationEpgUuid: "string",
dhcpServerVrfPreference: false,
externalEpgUuid: "string",
}],
templateId: "string",
description: "string",
name: "string",
tenantPoliciesDhcpRelayPolicyId: "string",
});
type: mso:TenantPoliciesDhcpRelayPolicy
properties:
description: string
dhcpRelayProviders:
- applicationEpgUuid: string
dhcpServerAddress: string
dhcpServerVrfPreference: false
externalEpgUuid: string
name: string
templateId: string
tenantPoliciesDhcpRelayPolicyId: string
TenantPoliciesDhcpRelayPolicy 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 TenantPoliciesDhcpRelayPolicy resource accepts the following input properties:
- dhcp
Relay List<Property Map>Providers - template
Id String - description String
- name String
- tenant
Policies StringDhcp Relay Policy Id
Outputs
All input properties are implicitly available as output properties. Additionally, the TenantPoliciesDhcpRelayPolicy resource produces the following output properties:
Look up Existing TenantPoliciesDhcpRelayPolicy Resource
Get an existing TenantPoliciesDhcpRelayPolicy 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?: TenantPoliciesDhcpRelayPolicyState, opts?: CustomResourceOptions): TenantPoliciesDhcpRelayPolicy
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
description: Optional[str] = None,
dhcp_relay_providers: Optional[Sequence[TenantPoliciesDhcpRelayPolicyDhcpRelayProviderArgs]] = None,
name: Optional[str] = None,
template_id: Optional[str] = None,
tenant_policies_dhcp_relay_policy_id: Optional[str] = None,
uuid: Optional[str] = None) -> TenantPoliciesDhcpRelayPolicy
func GetTenantPoliciesDhcpRelayPolicy(ctx *Context, name string, id IDInput, state *TenantPoliciesDhcpRelayPolicyState, opts ...ResourceOption) (*TenantPoliciesDhcpRelayPolicy, error)
public static TenantPoliciesDhcpRelayPolicy Get(string name, Input<string> id, TenantPoliciesDhcpRelayPolicyState? state, CustomResourceOptions? opts = null)
public static TenantPoliciesDhcpRelayPolicy get(String name, Output<String> id, TenantPoliciesDhcpRelayPolicyState state, CustomResourceOptions options)
resources: _: type: mso:TenantPoliciesDhcpRelayPolicy 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.
- Description string
- Dhcp
Relay List<TenantProviders Policies Dhcp Relay Policy Dhcp Relay Provider> - Name string
- Template
Id string - Tenant
Policies stringDhcp Relay Policy Id - Uuid string
- Description string
- Dhcp
Relay []TenantProviders Policies Dhcp Relay Policy Dhcp Relay Provider Args - Name string
- Template
Id string - Tenant
Policies stringDhcp Relay Policy Id - Uuid string
- description String
- dhcp
Relay List<TenantProviders Policies Dhcp Relay Policy Dhcp Relay Provider> - name String
- template
Id String - tenant
Policies StringDhcp Relay Policy Id - uuid String
- description string
- dhcp
Relay TenantProviders Policies Dhcp Relay Policy Dhcp Relay Provider[] - name string
- template
Id string - tenant
Policies stringDhcp Relay Policy Id - uuid string
- description String
- dhcp
Relay List<Property Map>Providers - name String
- template
Id String - tenant
Policies StringDhcp Relay Policy Id - uuid String
Supporting Types
TenantPoliciesDhcpRelayPolicyDhcpRelayProvider, TenantPoliciesDhcpRelayPolicyDhcpRelayProviderArgs
- Dhcp
Server stringAddress - Application
Epg stringUuid - Dhcp
Server boolVrf Preference - External
Epg stringUuid
- Dhcp
Server stringAddress - Application
Epg stringUuid - Dhcp
Server boolVrf Preference - External
Epg stringUuid
- dhcp
Server StringAddress - application
Epg StringUuid - dhcp
Server BooleanVrf Preference - external
Epg StringUuid
- dhcp
Server stringAddress - application
Epg stringUuid - dhcp
Server booleanVrf Preference - external
Epg stringUuid
- dhcp
Server StringAddress - application
Epg StringUuid - dhcp
Server BooleanVrf Preference - external
Epg StringUuid
Package Details
- Repository
- mso ciscodevnet/terraform-provider-mso
- License
- Notes
- This Pulumi package is based on the
mso
Terraform Provider.