1. Packages
  2. Nsxt Provider
  3. API Docs
  4. getPolicySegmentRealization
nsxt 3.8.1 published on Wednesday, Apr 30, 2025 by vmware

nsxt.getPolicySegmentRealization

Explore with Pulumi AI

nsxt logo
nsxt 3.8.1 published on Wednesday, Apr 30, 2025 by vmware

    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 GetPolicySegmentRealizationContext
    The context which the object belongs to
    Id string
    Path string
    The policy path of the segment.
    Context GetPolicySegmentRealizationContext
    The context which the object belongs to
    Id string
    path String
    The policy path of the segment.
    context GetPolicySegmentRealizationContext
    The context which the object belongs to
    id String
    path string
    The policy path of the segment.
    context GetPolicySegmentRealizationContext
    The context which the object belongs to
    id string
    path str
    The policy path of the segment.
    context GetPolicySegmentRealizationContext
    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
    NetworkName 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 or error.
    Context GetPolicySegmentRealizationContext
    Id string
    NetworkName 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 or error.
    Context GetPolicySegmentRealizationContext
    id String
    networkName 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 or error.
    context GetPolicySegmentRealizationContext
    id string
    networkName 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 or error.
    context GetPolicySegmentRealizationContext
    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 or error.
    context GetPolicySegmentRealizationContext
    id String
    networkName 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 or error.
    context Property Map

    Supporting Types

    GetPolicySegmentRealizationContext

    ProjectId string
    The ID of the project which the object belongs to
    ProjectId string
    The ID of the project which the object belongs to
    projectId String
    The ID of the project which the object belongs to
    projectId string
    The ID of the project which the object belongs to
    project_id str
    The ID of the project which the object belongs to
    projectId 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.
    nsxt logo
    nsxt 3.8.1 published on Wednesday, Apr 30, 2025 by vmware