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:
- ExtId string
- ExtId of the Operation.
- ExtId string
- ExtId of the Operation.
- extId String
- ExtId of the Operation.
- extId string
- ExtId of the Operation.
- ext_id str
- ExtId of the Operation.
- extId String
- ExtId of the Operation.
getOperationV2 Result
The following output properties are available:
- AssociatedEndpoint List<PiersLists Karsenbarg. Nutanix. Outputs. Get Operation V2Associated Endpoint List> 
- List of associated endpoint objects for the Operation.
- ClientName string
- Client that created the entity.
- CreatedTime string
- Description string
- Permission description
- DisplayName string
- Permission name.
- EntityType string
- Type of entity associated with this Operation.
- ExtId 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.
- LastUpdated stringTime 
- Permission last updated time.
- OperationType 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.
- AssociatedEndpoint []GetLists Operation V2Associated Endpoint List 
- List of associated endpoint objects for the Operation.
- ClientName string
- Client that created the entity.
- CreatedTime string
- Description string
- Permission description
- DisplayName string
- Permission name.
- EntityType string
- Type of entity associated with this Operation.
- ExtId 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.
- LastUpdated stringTime 
- Permission last updated time.
- OperationType 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.
- associatedEndpoint List<GetLists Operation V2Associated Endpoint List> 
- List of associated endpoint objects for the Operation.
- clientName String
- Client that created the entity.
- createdTime String
- description String
- Permission description
- displayName String
- Permission name.
- entityType String
- Type of entity associated with this Operation.
- extId 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.
- lastUpdated StringTime 
- Permission last updated time.
- operationType 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.
- associatedEndpoint GetLists Operation V2Associated Endpoint List[] 
- List of associated endpoint objects for the Operation.
- clientName string
- Client that created the entity.
- createdTime string
- description string
- Permission description
- displayName string
- Permission name.
- entityType string
- Type of entity associated with this Operation.
- extId 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.
- lastUpdated stringTime 
- Permission last updated time.
- operationType 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.
- associatedEndpoint List<Property Map>Lists 
- List of associated endpoint objects for the Operation.
- clientName String
- Client that created the entity.
- createdTime String
- description String
- Permission description
- displayName String
- Permission name.
- entityType String
- Type of entity associated with this Operation.
- extId 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.
- lastUpdated StringTime 
- Permission last updated time.
- operationType 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    
- ApiVersion string
- Version of the API for the provided associated endpoint.
- EndpointUrl string
- Endpoint URL.
- HttpMethod string
- HTTP method for the provided associated endpoint.
- ApiVersion string
- Version of the API for the provided associated endpoint.
- EndpointUrl string
- Endpoint URL.
- HttpMethod string
- HTTP method for the provided associated endpoint.
- apiVersion String
- Version of the API for the provided associated endpoint.
- endpointUrl String
- Endpoint URL.
- httpMethod String
- HTTP method for the provided associated endpoint.
- apiVersion string
- Version of the API for the provided associated endpoint.
- endpointUrl string
- Endpoint URL.
- httpMethod 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.
- apiVersion String
- Version of the API for the provided associated endpoint.
- endpointUrl String
- Endpoint URL.
- httpMethod 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.
