1. Packages
  2. Nutanix
  3. API Docs
  4. getOperationV2
Nutanix v0.7.4 published on Friday, Mar 21, 2025 by Piers Karsenbarg

nutanix.getOperationV2

Explore with Pulumi AI

Nutanix v0.7.4 published on Friday, Mar 21, 2025 by Piers Karsenbarg

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>",
});
Copy
import pulumi
import pulumi_nutanix as nutanix

operation = nutanix.get_operation_v2(ext_id="<ext-id>")
Copy
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
	})
}
Copy
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>",
    });

});
Copy
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());

    }
}
Copy
variables:
  operation:
    fn::invoke:
      function: nutanix:getOperationV2
      arguments:
        extId: <ext-id>
Copy

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>
Copy
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]
Copy
func GetOperationV2(ctx *Context, args *GetOperationV2Args, opts ...InvokeOption) (*GetOperationV2Result, error)
func GetOperationV2Output(ctx *Context, args *GetOperationV2OutputArgs, opts ...InvokeOption) GetOperationV2ResultOutput
Copy

> 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)
}
Copy
public static CompletableFuture<GetOperationV2Result> getOperationV2(GetOperationV2Args args, InvokeOptions options)
public static Output<GetOperationV2Result> getOperationV2(GetOperationV2Args args, InvokeOptions options)
Copy
fn::invoke:
  function: nutanix:index/getOperationV2:getOperationV2
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

ExtId This property is required. string
ExtId of the Operation.
ExtId This property is required. string
ExtId of the Operation.
extId This property is required. String
ExtId of the Operation.
extId This property is required. string
ExtId of the Operation.
ext_id This property is required. str
ExtId of the Operation.
extId This property is required. String
ExtId of the Operation.

getOperationV2 Result

The following output properties are available:

AssociatedEndpointLists List<PiersKarsenbarg.Nutanix.Outputs.GetOperationV2AssociatedEndpointList>
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.
LastUpdatedTime string
Permission last updated time.
OperationType string
The Operation type. Currently we support INTERNAL, EXTERNAL and SYSTEM_DEFINED_ONLY.
RelatedOperationLists 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.
AssociatedEndpointLists []GetOperationV2AssociatedEndpointList
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.
LastUpdatedTime string
Permission last updated time.
OperationType string
The Operation type. Currently we support INTERNAL, EXTERNAL and SYSTEM_DEFINED_ONLY.
RelatedOperationLists []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.
associatedEndpointLists List<GetOperationV2AssociatedEndpointList>
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.
lastUpdatedTime String
Permission last updated time.
operationType String
The Operation type. Currently we support INTERNAL, EXTERNAL and SYSTEM_DEFINED_ONLY.
relatedOperationLists 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.
associatedEndpointLists GetOperationV2AssociatedEndpointList[]
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.
lastUpdatedTime string
Permission last updated time.
operationType string
The Operation type. Currently we support INTERNAL, EXTERNAL and SYSTEM_DEFINED_ONLY.
relatedOperationLists 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_lists Sequence[GetOperationV2AssociatedEndpointList]
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_time str
Permission last updated time.
operation_type str
The Operation type. Currently we support INTERNAL, EXTERNAL and SYSTEM_DEFINED_ONLY.
related_operation_lists 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.
associatedEndpointLists List<Property Map>
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.
lastUpdatedTime String
Permission last updated time.
operationType String
The Operation type. Currently we support INTERNAL, EXTERNAL and SYSTEM_DEFINED_ONLY.
relatedOperationLists 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 This property is required. string
Version of the API for the provided associated endpoint.
EndpointUrl This property is required. string
Endpoint URL.
HttpMethod This property is required. string
HTTP method for the provided associated endpoint.
ApiVersion This property is required. string
Version of the API for the provided associated endpoint.
EndpointUrl This property is required. string
Endpoint URL.
HttpMethod This property is required. string
HTTP method for the provided associated endpoint.
apiVersion This property is required. String
Version of the API for the provided associated endpoint.
endpointUrl This property is required. String
Endpoint URL.
httpMethod This property is required. String
HTTP method for the provided associated endpoint.
apiVersion This property is required. string
Version of the API for the provided associated endpoint.
endpointUrl This property is required. string
Endpoint URL.
httpMethod This property is required. string
HTTP method for the provided associated endpoint.
api_version This property is required. str
Version of the API for the provided associated endpoint.
endpoint_url This property is required. str
Endpoint URL.
http_method This property is required. str
HTTP method for the provided associated endpoint.
apiVersion This property is required. String
Version of the API for the provided associated endpoint.
endpointUrl This property is required. String
Endpoint URL.
httpMethod This property is required. 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 nutanix Terraform Provider.
Nutanix v0.7.4 published on Friday, Mar 21, 2025 by Piers Karsenbarg