Nutanix v0.7.4 published on Friday, Mar 21, 2025 by Piers Karsenbarg
nutanix.getOperationV2
Explore with Pulumi AI
Fetches an operation based on the external identifier.
Example
import * as pulumi from "@pulumi/pulumi";
import * as nutanix from "@pulumi/nutanix";
const operation = nutanix.getOperationV2({
    extId: "<ext-id>",
});
import pulumi
import pulumi_nutanix as nutanix
operation = nutanix.get_operation_v2(ext_id="<ext-id>")
package main
import (
	"github.com/pierskarsenbarg/pulumi-nutanix/sdk/go/nutanix"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := nutanix.GetOperationV2(ctx, &nutanix.GetOperationV2Args{
			ExtId: "<ext-id>",
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Nutanix = Pulumi.Nutanix;
return await Deployment.RunAsync(() => 
{
    var operation = Nutanix.GetOperationV2.Invoke(new()
    {
        ExtId = "<ext-id>",
    });
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.nutanix.NutanixFunctions;
import com.pulumi.nutanix.inputs.GetOperationV2Args;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }
    public static void stack(Context ctx) {
        final var operation = NutanixFunctions.getOperationV2(GetOperationV2Args.builder()
            .extId("<ext-id>")
            .build());
    }
}
variables:
  operation:
    fn::invoke:
      function: nutanix:getOperationV2
      arguments:
        extId: <ext-id>
Using getOperationV2
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 getOperationV2(args: GetOperationV2Args, opts?: InvokeOptions): Promise<GetOperationV2Result>
function getOperationV2Output(args: GetOperationV2OutputArgs, opts?: InvokeOptions): Output<GetOperationV2Result>def get_operation_v2(ext_id: Optional[str] = None,
                     opts: Optional[InvokeOptions] = None) -> GetOperationV2Result
def get_operation_v2_output(ext_id: Optional[pulumi.Input[str]] = None,
                     opts: Optional[InvokeOptions] = None) -> Output[GetOperationV2Result]func GetOperationV2(ctx *Context, args *GetOperationV2Args, opts ...InvokeOption) (*GetOperationV2Result, error)
func GetOperationV2Output(ctx *Context, args *GetOperationV2OutputArgs, opts ...InvokeOption) GetOperationV2ResultOutput> Note: This function is named GetOperationV2 in the Go SDK.
public static class GetOperationV2 
{
    public static Task<GetOperationV2Result> InvokeAsync(GetOperationV2Args args, InvokeOptions? opts = null)
    public static Output<GetOperationV2Result> Invoke(GetOperationV2InvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetOperationV2Result> getOperationV2(GetOperationV2Args args, InvokeOptions options)
public static Output<GetOperationV2Result> getOperationV2(GetOperationV2Args args, InvokeOptions options)
fn::invoke:
  function: nutanix:index/getOperationV2:getOperationV2
  arguments:
    # arguments dictionaryThe following arguments are supported:
- Ext
Id string - ExtId of the Operation.
 
- Ext
Id string - ExtId of the Operation.
 
- ext
Id String - ExtId of the Operation.
 
- ext
Id string - ExtId of the Operation.
 
- ext_
id str - ExtId of the Operation.
 
- ext
Id String - ExtId of the Operation.
 
getOperationV2 Result
The following output properties are available:
- Associated
Endpoint List<PiersLists Karsenbarg. Nutanix. Outputs. Get Operation V2Associated Endpoint List>  - List of associated endpoint objects for the Operation.
 - Client
Name string - Client that created the entity.
 - Created
Time string - Description string
 - Permission description
 - Display
Name string - Permission name.
 - Entity
Type string - Type of entity associated with this Operation.
 - Ext
Id string - A globally unique identifier of an instance that is suitable for external consumption.
 - Id string
 - The provider-assigned unique ID for this managed resource.
 - Last
Updated stringTime  - Permission last updated time.
 - Operation
Type string - The Operation type. Currently we support INTERNAL, EXTERNAL and SYSTEM_DEFINED_ONLY.
 - List<string>
 - List of related Operations. These are the Operations which might need to be given access to, along with the current Operation, for certain workflows to succeed.
 
- Associated
Endpoint []GetLists Operation V2Associated Endpoint List  - List of associated endpoint objects for the Operation.
 - Client
Name string - Client that created the entity.
 - Created
Time string - Description string
 - Permission description
 - Display
Name string - Permission name.
 - Entity
Type string - Type of entity associated with this Operation.
 - Ext
Id string - A globally unique identifier of an instance that is suitable for external consumption.
 - Id string
 - The provider-assigned unique ID for this managed resource.
 - Last
Updated stringTime  - Permission last updated time.
 - Operation
Type string - The Operation type. Currently we support INTERNAL, EXTERNAL and SYSTEM_DEFINED_ONLY.
 - []string
 - List of related Operations. These are the Operations which might need to be given access to, along with the current Operation, for certain workflows to succeed.
 
- associated
Endpoint List<GetLists Operation V2Associated Endpoint List>  - List of associated endpoint objects for the Operation.
 - client
Name String - Client that created the entity.
 - created
Time String - description String
 - Permission description
 - display
Name String - Permission name.
 - entity
Type String - Type of entity associated with this Operation.
 - ext
Id String - A globally unique identifier of an instance that is suitable for external consumption.
 - id String
 - The provider-assigned unique ID for this managed resource.
 - last
Updated StringTime  - Permission last updated time.
 - operation
Type String - The Operation type. Currently we support INTERNAL, EXTERNAL and SYSTEM_DEFINED_ONLY.
 - List<String>
 - List of related Operations. These are the Operations which might need to be given access to, along with the current Operation, for certain workflows to succeed.
 
- associated
Endpoint GetLists Operation V2Associated Endpoint List[]  - List of associated endpoint objects for the Operation.
 - client
Name string - Client that created the entity.
 - created
Time string - description string
 - Permission description
 - display
Name string - Permission name.
 - entity
Type string - Type of entity associated with this Operation.
 - ext
Id string - A globally unique identifier of an instance that is suitable for external consumption.
 - id string
 - The provider-assigned unique ID for this managed resource.
 - last
Updated stringTime  - Permission last updated time.
 - operation
Type string - The Operation type. Currently we support INTERNAL, EXTERNAL and SYSTEM_DEFINED_ONLY.
 - string[]
 - List of related Operations. These are the Operations which might need to be given access to, along with the current Operation, for certain workflows to succeed.
 
- associated_
endpoint_ Sequence[Getlists Operation V2Associated Endpoint List]  - List of associated endpoint objects for the Operation.
 - client_
name str - Client that created the entity.
 - created_
time str - description str
 - Permission description
 - display_
name str - Permission name.
 - entity_
type str - Type of entity associated with this Operation.
 - ext_
id str - A globally unique identifier of an instance that is suitable for external consumption.
 - id str
 - The provider-assigned unique ID for this managed resource.
 - last_
updated_ strtime  - Permission last updated time.
 - operation_
type str - The Operation type. Currently we support INTERNAL, EXTERNAL and SYSTEM_DEFINED_ONLY.
 - Sequence[str]
 - List of related Operations. These are the Operations which might need to be given access to, along with the current Operation, for certain workflows to succeed.
 
- associated
Endpoint List<Property Map>Lists  - List of associated endpoint objects for the Operation.
 - client
Name String - Client that created the entity.
 - created
Time String - description String
 - Permission description
 - display
Name String - Permission name.
 - entity
Type String - Type of entity associated with this Operation.
 - ext
Id String - A globally unique identifier of an instance that is suitable for external consumption.
 - id String
 - The provider-assigned unique ID for this managed resource.
 - last
Updated StringTime  - Permission last updated time.
 - operation
Type String - The Operation type. Currently we support INTERNAL, EXTERNAL and SYSTEM_DEFINED_ONLY.
 - List<String>
 - List of related Operations. These are the Operations which might need to be given access to, along with the current Operation, for certain workflows to succeed.
 
Supporting Types
GetOperationV2AssociatedEndpointList    
- Api
Version string - Version of the API for the provided associated endpoint.
 - Endpoint
Url string - Endpoint URL.
 - Http
Method string - HTTP method for the provided associated endpoint.
 
- Api
Version string - Version of the API for the provided associated endpoint.
 - Endpoint
Url string - Endpoint URL.
 - Http
Method string - HTTP method for the provided associated endpoint.
 
- api
Version String - Version of the API for the provided associated endpoint.
 - endpoint
Url String - Endpoint URL.
 - http
Method String - HTTP method for the provided associated endpoint.
 
- api
Version string - Version of the API for the provided associated endpoint.
 - endpoint
Url string - Endpoint URL.
 - http
Method string - HTTP method for the provided associated endpoint.
 
- api_
version str - Version of the API for the provided associated endpoint.
 - endpoint_
url str - Endpoint URL.
 - http_
method str - HTTP method for the provided associated endpoint.
 
- api
Version String - Version of the API for the provided associated endpoint.
 - endpoint
Url String - Endpoint URL.
 - http
Method String - HTTP method for the provided associated endpoint.
 
Package Details
- Repository
 - nutanix pierskarsenbarg/pulumi-nutanix
 - License
 - Apache-2.0
 - Notes
 - This Pulumi package is based on the 
nutanixTerraform Provider.