nsxt.getPolicySegmentRealization
Explore with Pulumi AI
This data source provides information about the realization of a policy segment or policy vlan segment on hypervisor. This data source will wait until realization is complete with either success, partial success or error. It is recommended to use this data source in conjunction with vsphere provider, in order to ensure segment is realized on hypervisor before VM is created on same network.
This data source is applicable to NSX Policy Manager.
Using getPolicySegmentRealization
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getPolicySegmentRealization(args: GetPolicySegmentRealizationArgs, opts?: InvokeOptions): Promise<GetPolicySegmentRealizationResult>
function getPolicySegmentRealizationOutput(args: GetPolicySegmentRealizationOutputArgs, opts?: InvokeOptions): Output<GetPolicySegmentRealizationResult>
def get_policy_segment_realization(context: Optional[GetPolicySegmentRealizationContext] = None,
id: Optional[str] = None,
path: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetPolicySegmentRealizationResult
def get_policy_segment_realization_output(context: Optional[pulumi.Input[GetPolicySegmentRealizationContextArgs]] = None,
id: Optional[pulumi.Input[str]] = None,
path: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetPolicySegmentRealizationResult]
func GetPolicySegmentRealization(ctx *Context, args *GetPolicySegmentRealizationArgs, opts ...InvokeOption) (*GetPolicySegmentRealizationResult, error)
func GetPolicySegmentRealizationOutput(ctx *Context, args *GetPolicySegmentRealizationOutputArgs, opts ...InvokeOption) GetPolicySegmentRealizationResultOutput
> Note: This function is named GetPolicySegmentRealization
in the Go SDK.
public static class GetPolicySegmentRealization
{
public static Task<GetPolicySegmentRealizationResult> InvokeAsync(GetPolicySegmentRealizationArgs args, InvokeOptions? opts = null)
public static Output<GetPolicySegmentRealizationResult> Invoke(GetPolicySegmentRealizationInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetPolicySegmentRealizationResult> getPolicySegmentRealization(GetPolicySegmentRealizationArgs args, InvokeOptions options)
public static Output<GetPolicySegmentRealizationResult> getPolicySegmentRealization(GetPolicySegmentRealizationArgs args, InvokeOptions options)
fn::invoke:
function: nsxt:index/getPolicySegmentRealization:getPolicySegmentRealization
arguments:
# arguments dictionary
The following arguments are supported:
- Path string
- The policy path of the segment.
- Context
Get
Policy Segment Realization Context - The context which the object belongs to
- Id string
- Path string
- The policy path of the segment.
- Context
Get
Policy Segment Realization Context - The context which the object belongs to
- Id string
- path String
- The policy path of the segment.
- context
Get
Policy Segment Realization Context - The context which the object belongs to
- id String
- path string
- The policy path of the segment.
- context
Get
Policy Segment Realization Context - The context which the object belongs to
- id string
- path str
- The policy path of the segment.
- context
Get
Policy Segment Realization Context - The context which the object belongs to
- id str
- path String
- The policy path of the segment.
- context Property Map
- The context which the object belongs to
- id String
getPolicySegmentRealization Result
The following output properties are available:
- Id string
- Network
Name string - Network name on the hypervisor. This attribute can be used in vsphere provider in order to ensure implicit dependency on segment realization.
- Path string
- State string
- The realization state of the resource:
success
,partial_success
,orphaned
,failed
orerror
. - Context
Get
Policy Segment Realization Context
- Id string
- Network
Name string - Network name on the hypervisor. This attribute can be used in vsphere provider in order to ensure implicit dependency on segment realization.
- Path string
- State string
- The realization state of the resource:
success
,partial_success
,orphaned
,failed
orerror
. - Context
Get
Policy Segment Realization Context
- id String
- network
Name String - Network name on the hypervisor. This attribute can be used in vsphere provider in order to ensure implicit dependency on segment realization.
- path String
- state String
- The realization state of the resource:
success
,partial_success
,orphaned
,failed
orerror
. - context
Get
Policy Segment Realization Context
- id string
- network
Name string - Network name on the hypervisor. This attribute can be used in vsphere provider in order to ensure implicit dependency on segment realization.
- path string
- state string
- The realization state of the resource:
success
,partial_success
,orphaned
,failed
orerror
. - context
Get
Policy Segment Realization Context
- id str
- network_
name str - Network name on the hypervisor. This attribute can be used in vsphere provider in order to ensure implicit dependency on segment realization.
- path str
- state str
- The realization state of the resource:
success
,partial_success
,orphaned
,failed
orerror
. - context
Get
Policy Segment Realization Context
- id String
- network
Name String - Network name on the hypervisor. This attribute can be used in vsphere provider in order to ensure implicit dependency on segment realization.
- path String
- state String
- The realization state of the resource:
success
,partial_success
,orphaned
,failed
orerror
. - context Property Map
Supporting Types
GetPolicySegmentRealizationContext
- Project
Id string - The ID of the project which the object belongs to
- Project
Id string - The ID of the project which the object belongs to
- project
Id String - The ID of the project which the object belongs to
- project
Id string - The ID of the project which the object belongs to
- project_
id str - The ID of the project which the object belongs to
- project
Id String - The ID of the project which the object belongs to
Package Details
- Repository
- nsxt vmware/terraform-provider-nsxt
- License
- Notes
- This Pulumi package is based on the
nsxt
Terraform Provider.