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

nutanix.getOperationsV2

Explore with Pulumi AI

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

Lists the operations defined on the system. List of operations can be further filtered out using various filtering options.

Example

import * as pulumi from "@pulumi/pulumi";
import * as nutanix from "@pulumi/nutanix";

const operations_1 = nutanix.getOperationsV2({});
const operations_2 = nutanix.getOperationsV2({
    filter: "display_name eq 'test-Permission-filter'",
});
Copy
import pulumi
import pulumi_nutanix as nutanix

operations_1 = nutanix.get_operations_v2()
operations_2 = nutanix.get_operations_v2(filter="display_name eq 'test-Permission-filter'")
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.GetOperationsV2(ctx, &nutanix.GetOperationsV2Args{}, nil)
		if err != nil {
			return err
		}
		_, err = nutanix.GetOperationsV2(ctx, &nutanix.GetOperationsV2Args{
			Filter: pulumi.StringRef("display_name eq 'test-Permission-filter'"),
		}, 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 operations_1 = Nutanix.GetOperationsV2.Invoke();

    var operations_2 = Nutanix.GetOperationsV2.Invoke(new()
    {
        Filter = "display_name eq 'test-Permission-filter'",
    });

});
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.GetOperationsV2Args;
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 operations-1 = NutanixFunctions.getOperationsV2();

        final var operations-2 = NutanixFunctions.getOperationsV2(GetOperationsV2Args.builder()
            .filter("display_name eq 'test-Permission-filter'")
            .build());

    }
}
Copy
variables:
  operations-1:
    fn::invoke:
      function: nutanix:getOperationsV2
      arguments: {}
  operations-2:
    fn::invoke:
      function: nutanix:getOperationsV2
      arguments:
        filter: display_name eq 'test-Permission-filter'
Copy

Using getOperationsV2

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 getOperationsV2(args: GetOperationsV2Args, opts?: InvokeOptions): Promise<GetOperationsV2Result>
function getOperationsV2Output(args: GetOperationsV2OutputArgs, opts?: InvokeOptions): Output<GetOperationsV2Result>
Copy
def get_operations_v2(filter: Optional[str] = None,
                      limit: Optional[int] = None,
                      order_by: Optional[str] = None,
                      page: Optional[int] = None,
                      select: Optional[str] = None,
                      opts: Optional[InvokeOptions] = None) -> GetOperationsV2Result
def get_operations_v2_output(filter: Optional[pulumi.Input[str]] = None,
                      limit: Optional[pulumi.Input[int]] = None,
                      order_by: Optional[pulumi.Input[str]] = None,
                      page: Optional[pulumi.Input[int]] = None,
                      select: Optional[pulumi.Input[str]] = None,
                      opts: Optional[InvokeOptions] = None) -> Output[GetOperationsV2Result]
Copy
func GetOperationsV2(ctx *Context, args *GetOperationsV2Args, opts ...InvokeOption) (*GetOperationsV2Result, error)
func GetOperationsV2Output(ctx *Context, args *GetOperationsV2OutputArgs, opts ...InvokeOption) GetOperationsV2ResultOutput
Copy

> Note: This function is named GetOperationsV2 in the Go SDK.

public static class GetOperationsV2 
{
    public static Task<GetOperationsV2Result> InvokeAsync(GetOperationsV2Args args, InvokeOptions? opts = null)
    public static Output<GetOperationsV2Result> Invoke(GetOperationsV2InvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<GetOperationsV2Result> getOperationsV2(GetOperationsV2Args args, InvokeOptions options)
public static Output<GetOperationsV2Result> getOperationsV2(GetOperationsV2Args args, InvokeOptions options)
Copy
fn::invoke:
  function: nutanix:index/getOperationsV2:getOperationsV2
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

Filter string
A URL query parameter that allows clients to filter a collection of resources. The expression specified with $filter is evaluated for each resource in the collection, and only items where the expression evaluates to true are included in the response. Expression specified with the $filter must conform to the OData V4.01 URL conventions
Limit int
A URL query parameter that specifies the total number of records returned in the result set. Must be a positive integer between 1 and 100. Any number out of this range will lead to a validation error. If the limit is not provided, a default value of 50 records will be returned in the result set.
OrderBy string
A URL query parameter that allows clients to specify the sort criteria for the returned list of objects. Resources can be sorted in ascending order using asc or descending order using desc. If asc or desc are not specified, the resources will be sorted in ascending order by default
Page int
A URL query parameter that specifies the page number of the result set. It must be a positive integer between 0 and the maximum number of pages that are available for that resource. Any number out of this range might lead to no results.
Select string
A URL query parameter that allows clients to request a specific set of properties for each entity or complex type. Expression specified with the $select must conform to the OData V4.01 URL conventions.
Filter string
A URL query parameter that allows clients to filter a collection of resources. The expression specified with $filter is evaluated for each resource in the collection, and only items where the expression evaluates to true are included in the response. Expression specified with the $filter must conform to the OData V4.01 URL conventions
Limit int
A URL query parameter that specifies the total number of records returned in the result set. Must be a positive integer between 1 and 100. Any number out of this range will lead to a validation error. If the limit is not provided, a default value of 50 records will be returned in the result set.
OrderBy string
A URL query parameter that allows clients to specify the sort criteria for the returned list of objects. Resources can be sorted in ascending order using asc or descending order using desc. If asc or desc are not specified, the resources will be sorted in ascending order by default
Page int
A URL query parameter that specifies the page number of the result set. It must be a positive integer between 0 and the maximum number of pages that are available for that resource. Any number out of this range might lead to no results.
Select string
A URL query parameter that allows clients to request a specific set of properties for each entity or complex type. Expression specified with the $select must conform to the OData V4.01 URL conventions.
filter String
A URL query parameter that allows clients to filter a collection of resources. The expression specified with $filter is evaluated for each resource in the collection, and only items where the expression evaluates to true are included in the response. Expression specified with the $filter must conform to the OData V4.01 URL conventions
limit Integer
A URL query parameter that specifies the total number of records returned in the result set. Must be a positive integer between 1 and 100. Any number out of this range will lead to a validation error. If the limit is not provided, a default value of 50 records will be returned in the result set.
orderBy String
A URL query parameter that allows clients to specify the sort criteria for the returned list of objects. Resources can be sorted in ascending order using asc or descending order using desc. If asc or desc are not specified, the resources will be sorted in ascending order by default
page Integer
A URL query parameter that specifies the page number of the result set. It must be a positive integer between 0 and the maximum number of pages that are available for that resource. Any number out of this range might lead to no results.
select String
A URL query parameter that allows clients to request a specific set of properties for each entity or complex type. Expression specified with the $select must conform to the OData V4.01 URL conventions.
filter string
A URL query parameter that allows clients to filter a collection of resources. The expression specified with $filter is evaluated for each resource in the collection, and only items where the expression evaluates to true are included in the response. Expression specified with the $filter must conform to the OData V4.01 URL conventions
limit number
A URL query parameter that specifies the total number of records returned in the result set. Must be a positive integer between 1 and 100. Any number out of this range will lead to a validation error. If the limit is not provided, a default value of 50 records will be returned in the result set.
orderBy string
A URL query parameter that allows clients to specify the sort criteria for the returned list of objects. Resources can be sorted in ascending order using asc or descending order using desc. If asc or desc are not specified, the resources will be sorted in ascending order by default
page number
A URL query parameter that specifies the page number of the result set. It must be a positive integer between 0 and the maximum number of pages that are available for that resource. Any number out of this range might lead to no results.
select string
A URL query parameter that allows clients to request a specific set of properties for each entity or complex type. Expression specified with the $select must conform to the OData V4.01 URL conventions.
filter str
A URL query parameter that allows clients to filter a collection of resources. The expression specified with $filter is evaluated for each resource in the collection, and only items where the expression evaluates to true are included in the response. Expression specified with the $filter must conform to the OData V4.01 URL conventions
limit int
A URL query parameter that specifies the total number of records returned in the result set. Must be a positive integer between 1 and 100. Any number out of this range will lead to a validation error. If the limit is not provided, a default value of 50 records will be returned in the result set.
order_by str
A URL query parameter that allows clients to specify the sort criteria for the returned list of objects. Resources can be sorted in ascending order using asc or descending order using desc. If asc or desc are not specified, the resources will be sorted in ascending order by default
page int
A URL query parameter that specifies the page number of the result set. It must be a positive integer between 0 and the maximum number of pages that are available for that resource. Any number out of this range might lead to no results.
select str
A URL query parameter that allows clients to request a specific set of properties for each entity or complex type. Expression specified with the $select must conform to the OData V4.01 URL conventions.
filter String
A URL query parameter that allows clients to filter a collection of resources. The expression specified with $filter is evaluated for each resource in the collection, and only items where the expression evaluates to true are included in the response. Expression specified with the $filter must conform to the OData V4.01 URL conventions
limit Number
A URL query parameter that specifies the total number of records returned in the result set. Must be a positive integer between 1 and 100. Any number out of this range will lead to a validation error. If the limit is not provided, a default value of 50 records will be returned in the result set.
orderBy String
A URL query parameter that allows clients to specify the sort criteria for the returned list of objects. Resources can be sorted in ascending order using asc or descending order using desc. If asc or desc are not specified, the resources will be sorted in ascending order by default
page Number
A URL query parameter that specifies the page number of the result set. It must be a positive integer between 0 and the maximum number of pages that are available for that resource. Any number out of this range might lead to no results.
select String
A URL query parameter that allows clients to request a specific set of properties for each entity or complex type. Expression specified with the $select must conform to the OData V4.01 URL conventions.

getOperationsV2 Result

The following output properties are available:

Id string
The provider-assigned unique ID for this managed resource.
Operations List<PiersKarsenbarg.Nutanix.Outputs.GetOperationsV2Operation>
List of all operations
Filter string
A URL query parameter that allows clients to filter a collection of resources. The expression specified with $filter is evaluated for each resource in the collection, and only items where the expression evaluates to true are included in the response. Expression specified with the $filter must conform to the OData V4.01 URL conventions
Limit int
A URL query parameter that specifies the total number of records returned in the result set. Must be a positive integer between 1 and 100. Any number out of this range will lead to a validation error. If the limit is not provided, a default value of 50 records will be returned in the result set.
OrderBy string
A URL query parameter that allows clients to specify the sort criteria for the returned list of objects. Resources can be sorted in ascending order using asc or descending order using desc. If asc or desc are not specified, the resources will be sorted in ascending order by default
Page int
A URL query parameter that specifies the page number of the result set. It must be a positive integer between 0 and the maximum number of pages that are available for that resource. Any number out of this range might lead to no results.
Select string
A URL query parameter that allows clients to request a specific set of properties for each entity or complex type. Expression specified with the $select must conform to the OData V4.01 URL conventions.
Id string
The provider-assigned unique ID for this managed resource.
Operations []GetOperationsV2Operation
List of all operations
Filter string
A URL query parameter that allows clients to filter a collection of resources. The expression specified with $filter is evaluated for each resource in the collection, and only items where the expression evaluates to true are included in the response. Expression specified with the $filter must conform to the OData V4.01 URL conventions
Limit int
A URL query parameter that specifies the total number of records returned in the result set. Must be a positive integer between 1 and 100. Any number out of this range will lead to a validation error. If the limit is not provided, a default value of 50 records will be returned in the result set.
OrderBy string
A URL query parameter that allows clients to specify the sort criteria for the returned list of objects. Resources can be sorted in ascending order using asc or descending order using desc. If asc or desc are not specified, the resources will be sorted in ascending order by default
Page int
A URL query parameter that specifies the page number of the result set. It must be a positive integer between 0 and the maximum number of pages that are available for that resource. Any number out of this range might lead to no results.
Select string
A URL query parameter that allows clients to request a specific set of properties for each entity or complex type. Expression specified with the $select must conform to the OData V4.01 URL conventions.
id String
The provider-assigned unique ID for this managed resource.
operations List<GetOperationsV2Operation>
List of all operations
filter String
A URL query parameter that allows clients to filter a collection of resources. The expression specified with $filter is evaluated for each resource in the collection, and only items where the expression evaluates to true are included in the response. Expression specified with the $filter must conform to the OData V4.01 URL conventions
limit Integer
A URL query parameter that specifies the total number of records returned in the result set. Must be a positive integer between 1 and 100. Any number out of this range will lead to a validation error. If the limit is not provided, a default value of 50 records will be returned in the result set.
orderBy String
A URL query parameter that allows clients to specify the sort criteria for the returned list of objects. Resources can be sorted in ascending order using asc or descending order using desc. If asc or desc are not specified, the resources will be sorted in ascending order by default
page Integer
A URL query parameter that specifies the page number of the result set. It must be a positive integer between 0 and the maximum number of pages that are available for that resource. Any number out of this range might lead to no results.
select String
A URL query parameter that allows clients to request a specific set of properties for each entity or complex type. Expression specified with the $select must conform to the OData V4.01 URL conventions.
id string
The provider-assigned unique ID for this managed resource.
operations GetOperationsV2Operation[]
List of all operations
filter string
A URL query parameter that allows clients to filter a collection of resources. The expression specified with $filter is evaluated for each resource in the collection, and only items where the expression evaluates to true are included in the response. Expression specified with the $filter must conform to the OData V4.01 URL conventions
limit number
A URL query parameter that specifies the total number of records returned in the result set. Must be a positive integer between 1 and 100. Any number out of this range will lead to a validation error. If the limit is not provided, a default value of 50 records will be returned in the result set.
orderBy string
A URL query parameter that allows clients to specify the sort criteria for the returned list of objects. Resources can be sorted in ascending order using asc or descending order using desc. If asc or desc are not specified, the resources will be sorted in ascending order by default
page number
A URL query parameter that specifies the page number of the result set. It must be a positive integer between 0 and the maximum number of pages that are available for that resource. Any number out of this range might lead to no results.
select string
A URL query parameter that allows clients to request a specific set of properties for each entity or complex type. Expression specified with the $select must conform to the OData V4.01 URL conventions.
id str
The provider-assigned unique ID for this managed resource.
operations Sequence[GetOperationsV2Operation]
List of all operations
filter str
A URL query parameter that allows clients to filter a collection of resources. The expression specified with $filter is evaluated for each resource in the collection, and only items where the expression evaluates to true are included in the response. Expression specified with the $filter must conform to the OData V4.01 URL conventions
limit int
A URL query parameter that specifies the total number of records returned in the result set. Must be a positive integer between 1 and 100. Any number out of this range will lead to a validation error. If the limit is not provided, a default value of 50 records will be returned in the result set.
order_by str
A URL query parameter that allows clients to specify the sort criteria for the returned list of objects. Resources can be sorted in ascending order using asc or descending order using desc. If asc or desc are not specified, the resources will be sorted in ascending order by default
page int
A URL query parameter that specifies the page number of the result set. It must be a positive integer between 0 and the maximum number of pages that are available for that resource. Any number out of this range might lead to no results.
select str
A URL query parameter that allows clients to request a specific set of properties for each entity or complex type. Expression specified with the $select must conform to the OData V4.01 URL conventions.
id String
The provider-assigned unique ID for this managed resource.
operations List<Property Map>
List of all operations
filter String
A URL query parameter that allows clients to filter a collection of resources. The expression specified with $filter is evaluated for each resource in the collection, and only items where the expression evaluates to true are included in the response. Expression specified with the $filter must conform to the OData V4.01 URL conventions
limit Number
A URL query parameter that specifies the total number of records returned in the result set. Must be a positive integer between 1 and 100. Any number out of this range will lead to a validation error. If the limit is not provided, a default value of 50 records will be returned in the result set.
orderBy String
A URL query parameter that allows clients to specify the sort criteria for the returned list of objects. Resources can be sorted in ascending order using asc or descending order using desc. If asc or desc are not specified, the resources will be sorted in ascending order by default
page Number
A URL query parameter that specifies the page number of the result set. It must be a positive integer between 0 and the maximum number of pages that are available for that resource. Any number out of this range might lead to no results.
select String
A URL query parameter that allows clients to request a specific set of properties for each entity or complex type. Expression specified with the $select must conform to the OData V4.01 URL conventions.

Supporting Types

GetOperationsV2Operation

AssociatedEndpointLists This property is required. List<PiersKarsenbarg.Nutanix.Inputs.GetOperationsV2OperationAssociatedEndpointList>
List of associated endpoint objects for the Operation.
ClientName This property is required. string
Client that created the entity.
CreatedTime This property is required. string
Description This property is required. string
DisplayName This property is required. string
Permission name.
EntityType This property is required. string
Type of entity associated with this Operation.
ExtId This property is required. string
A globally unique identifier of an instance that is suitable for external consumption.
LastUpdatedTime This property is required. string
Permission last updated time.
OperationType This property is required. string
The Operation type. Currently we support INTERNAL, EXTERNAL and SYSTEM_DEFINED_ONLY.
RelatedOperationLists This property is required. 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 This property is required. []GetOperationsV2OperationAssociatedEndpointList
List of associated endpoint objects for the Operation.
ClientName This property is required. string
Client that created the entity.
CreatedTime This property is required. string
Description This property is required. string
DisplayName This property is required. string
Permission name.
EntityType This property is required. string
Type of entity associated with this Operation.
ExtId This property is required. string
A globally unique identifier of an instance that is suitable for external consumption.
LastUpdatedTime This property is required. string
Permission last updated time.
OperationType This property is required. string
The Operation type. Currently we support INTERNAL, EXTERNAL and SYSTEM_DEFINED_ONLY.
RelatedOperationLists This property is required. []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 This property is required. List<GetOperationsV2OperationAssociatedEndpointList>
List of associated endpoint objects for the Operation.
clientName This property is required. String
Client that created the entity.
createdTime This property is required. String
description This property is required. String
displayName This property is required. String
Permission name.
entityType This property is required. String
Type of entity associated with this Operation.
extId This property is required. String
A globally unique identifier of an instance that is suitable for external consumption.
lastUpdatedTime This property is required. String
Permission last updated time.
operationType This property is required. String
The Operation type. Currently we support INTERNAL, EXTERNAL and SYSTEM_DEFINED_ONLY.
relatedOperationLists This property is required. 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 This property is required. GetOperationsV2OperationAssociatedEndpointList[]
List of associated endpoint objects for the Operation.
clientName This property is required. string
Client that created the entity.
createdTime This property is required. string
description This property is required. string
displayName This property is required. string
Permission name.
entityType This property is required. string
Type of entity associated with this Operation.
extId This property is required. string
A globally unique identifier of an instance that is suitable for external consumption.
lastUpdatedTime This property is required. string
Permission last updated time.
operationType This property is required. string
The Operation type. Currently we support INTERNAL, EXTERNAL and SYSTEM_DEFINED_ONLY.
relatedOperationLists This property is required. 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 This property is required. Sequence[GetOperationsV2OperationAssociatedEndpointList]
List of associated endpoint objects for the Operation.
client_name This property is required. str
Client that created the entity.
created_time This property is required. str
description This property is required. str
display_name This property is required. str
Permission name.
entity_type This property is required. str
Type of entity associated with this Operation.
ext_id This property is required. str
A globally unique identifier of an instance that is suitable for external consumption.
last_updated_time This property is required. str
Permission last updated time.
operation_type This property is required. str
The Operation type. Currently we support INTERNAL, EXTERNAL and SYSTEM_DEFINED_ONLY.
related_operation_lists This property is required. 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 This property is required. List<Property Map>
List of associated endpoint objects for the Operation.
clientName This property is required. String
Client that created the entity.
createdTime This property is required. String
description This property is required. String
displayName This property is required. String
Permission name.
entityType This property is required. String
Type of entity associated with this Operation.
extId This property is required. String
A globally unique identifier of an instance that is suitable for external consumption.
lastUpdatedTime This property is required. String
Permission last updated time.
operationType This property is required. String
The Operation type. Currently we support INTERNAL, EXTERNAL and SYSTEM_DEFINED_ONLY.
relatedOperationLists This property is required. 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.

GetOperationsV2OperationAssociatedEndpointList

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