1. Packages
  2. Avi Provider
  3. API Docs
  4. getStatediffoperation
avi 31.1.1 published on Monday, Apr 14, 2025 by vmware

avi.getStatediffoperation

Explore with Pulumi AI

avi logo
avi 31.1.1 published on Monday, Apr 14, 2025 by vmware

    <!–

    Copyright 2021 VMware, Inc.
    SPDX-License-Identifier: Mozilla Public License 2.0
    

    –>

    layout: “avi”

    page_title: “AVI: avi.Statediffoperation” sidebar_current: “docs-avi-datasource-statediffoperation” description: |- Get information of Avi StatediffOperation.

    avi.Statediffoperation

    This data source is used to to get avi.Statediffoperation objects.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as avi from "@pulumi/avi";
    
    const fooStatediffoperation = avi.getStatediffoperation({
        name: "foo",
        uuid: "statediffoperation-f9cf6b3e-a411-436f-95e2-2982ba2b217b",
    });
    
    import pulumi
    import pulumi_avi as avi
    
    foo_statediffoperation = avi.get_statediffoperation(name="foo",
        uuid="statediffoperation-f9cf6b3e-a411-436f-95e2-2982ba2b217b")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/avi/v31/avi"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := avi.LookupStatediffoperation(ctx, &avi.LookupStatediffoperationArgs{
    			Name: pulumi.StringRef("foo"),
    			Uuid: pulumi.StringRef("statediffoperation-f9cf6b3e-a411-436f-95e2-2982ba2b217b"),
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Avi = Pulumi.Avi;
    
    return await Deployment.RunAsync(() => 
    {
        var fooStatediffoperation = Avi.GetStatediffoperation.Invoke(new()
        {
            Name = "foo",
            Uuid = "statediffoperation-f9cf6b3e-a411-436f-95e2-2982ba2b217b",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.avi.AviFunctions;
    import com.pulumi.avi.inputs.GetStatediffoperationArgs;
    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 fooStatediffoperation = AviFunctions.getStatediffoperation(GetStatediffoperationArgs.builder()
                .name("foo")
                .uuid("statediffoperation-f9cf6b3e-a411-436f-95e2-2982ba2b217b")
                .build());
    
        }
    }
    
    variables:
      fooStatediffoperation:
        fn::invoke:
          function: avi:getStatediffoperation
          arguments:
            name: foo
            uuid: statediffoperation-f9cf6b3e-a411-436f-95e2-2982ba2b217b
    

    Using getStatediffoperation

    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 getStatediffoperation(args: GetStatediffoperationArgs, opts?: InvokeOptions): Promise<GetStatediffoperationResult>
    function getStatediffoperationOutput(args: GetStatediffoperationOutputArgs, opts?: InvokeOptions): Output<GetStatediffoperationResult>
    def get_statediffoperation(id: Optional[str] = None,
                               name: Optional[str] = None,
                               tenant_ref: Optional[str] = None,
                               uuid: Optional[str] = None,
                               opts: Optional[InvokeOptions] = None) -> GetStatediffoperationResult
    def get_statediffoperation_output(id: Optional[pulumi.Input[str]] = None,
                               name: Optional[pulumi.Input[str]] = None,
                               tenant_ref: Optional[pulumi.Input[str]] = None,
                               uuid: Optional[pulumi.Input[str]] = None,
                               opts: Optional[InvokeOptions] = None) -> Output[GetStatediffoperationResult]
    func LookupStatediffoperation(ctx *Context, args *LookupStatediffoperationArgs, opts ...InvokeOption) (*LookupStatediffoperationResult, error)
    func LookupStatediffoperationOutput(ctx *Context, args *LookupStatediffoperationOutputArgs, opts ...InvokeOption) LookupStatediffoperationResultOutput

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

    public static class GetStatediffoperation 
    {
        public static Task<GetStatediffoperationResult> InvokeAsync(GetStatediffoperationArgs args, InvokeOptions? opts = null)
        public static Output<GetStatediffoperationResult> Invoke(GetStatediffoperationInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetStatediffoperationResult> getStatediffoperation(GetStatediffoperationArgs args, InvokeOptions options)
    public static Output<GetStatediffoperationResult> getStatediffoperation(GetStatediffoperationArgs args, InvokeOptions options)
    
    fn::invoke:
      function: avi:index/getStatediffoperation:getStatediffoperation
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Id string
    Name string
    Search StatediffOperation by name.
    TenantRef string
    Tenant that this object belongs to. It is a reference to an object of type tenant. Field introduced in 21.1.3. Allowed with any value in enterprise, enterprise with cloud services edition.
    Uuid string
    Search StatediffOperation by uuid.
    Id string
    Name string
    Search StatediffOperation by name.
    TenantRef string
    Tenant that this object belongs to. It is a reference to an object of type tenant. Field introduced in 21.1.3. Allowed with any value in enterprise, enterprise with cloud services edition.
    Uuid string
    Search StatediffOperation by uuid.
    id String
    name String
    Search StatediffOperation by name.
    tenantRef String
    Tenant that this object belongs to. It is a reference to an object of type tenant. Field introduced in 21.1.3. Allowed with any value in enterprise, enterprise with cloud services edition.
    uuid String
    Search StatediffOperation by uuid.
    id string
    name string
    Search StatediffOperation by name.
    tenantRef string
    Tenant that this object belongs to. It is a reference to an object of type tenant. Field introduced in 21.1.3. Allowed with any value in enterprise, enterprise with cloud services edition.
    uuid string
    Search StatediffOperation by uuid.
    id str
    name str
    Search StatediffOperation by name.
    tenant_ref str
    Tenant that this object belongs to. It is a reference to an object of type tenant. Field introduced in 21.1.3. Allowed with any value in enterprise, enterprise with cloud services edition.
    uuid str
    Search StatediffOperation by uuid.
    id String
    name String
    Search StatediffOperation by name.
    tenantRef String
    Tenant that this object belongs to. It is a reference to an object of type tenant. Field introduced in 21.1.3. Allowed with any value in enterprise, enterprise with cloud services edition.
    uuid String
    Search StatediffOperation by uuid.

    getStatediffoperation Result

    The following output properties are available:

    Events List<GetStatediffoperationEvent>
    Info for each statediff event. Field introduced in 21.1.3. Allowed with any value in enterprise, enterprise with cloud services edition.
    Id string
    Name string
    Name of statediff operation. Field introduced in 21.1.3. Allowed with any value in enterprise, enterprise with cloud services edition.
    NodeUuid string
    Uuid of node for statediff operation entry. Field introduced in 21.1.3. Allowed with any value in enterprise, enterprise with cloud services edition.
    Operation string
    Type of statediff operation. Enum options - FB_UPGRADE, FB_ROLLBACK, FB_PATCH, FB_ROLLBACK_PATCH. Field introduced in 21.1.3. Allowed with any value in enterprise, enterprise with cloud services edition.
    Phase string
    Phase of statediff operation. Enum options - FB_PRE_SNAPSHOT, FB_POST_SNAPSHOT. Field introduced in 21.1.3. Allowed with any value in enterprise, enterprise with cloud services edition.
    Status string
    Status of statediff operation. Enum options - FB_INIT, FB_IN_PROGRESS, FB_COMPLETED, FB_FAILED, FB_COMPLETED_WITH_ERRORS. Field introduced in 21.1.3. Allowed with any value in enterprise, enterprise with cloud services edition.
    TenantRef string
    Tenant that this object belongs to. It is a reference to an object of type tenant. Field introduced in 21.1.3. Allowed with any value in enterprise, enterprise with cloud services edition.
    Uuid string
    Unique identifier for statediff entry. Field introduced in 21.1.3. Allowed with any value in enterprise, enterprise with cloud services edition.
    Events []GetStatediffoperationEvent
    Info for each statediff event. Field introduced in 21.1.3. Allowed with any value in enterprise, enterprise with cloud services edition.
    Id string
    Name string
    Name of statediff operation. Field introduced in 21.1.3. Allowed with any value in enterprise, enterprise with cloud services edition.
    NodeUuid string
    Uuid of node for statediff operation entry. Field introduced in 21.1.3. Allowed with any value in enterprise, enterprise with cloud services edition.
    Operation string
    Type of statediff operation. Enum options - FB_UPGRADE, FB_ROLLBACK, FB_PATCH, FB_ROLLBACK_PATCH. Field introduced in 21.1.3. Allowed with any value in enterprise, enterprise with cloud services edition.
    Phase string
    Phase of statediff operation. Enum options - FB_PRE_SNAPSHOT, FB_POST_SNAPSHOT. Field introduced in 21.1.3. Allowed with any value in enterprise, enterprise with cloud services edition.
    Status string
    Status of statediff operation. Enum options - FB_INIT, FB_IN_PROGRESS, FB_COMPLETED, FB_FAILED, FB_COMPLETED_WITH_ERRORS. Field introduced in 21.1.3. Allowed with any value in enterprise, enterprise with cloud services edition.
    TenantRef string
    Tenant that this object belongs to. It is a reference to an object of type tenant. Field introduced in 21.1.3. Allowed with any value in enterprise, enterprise with cloud services edition.
    Uuid string
    Unique identifier for statediff entry. Field introduced in 21.1.3. Allowed with any value in enterprise, enterprise with cloud services edition.
    events List<GetStatediffoperationEvent>
    Info for each statediff event. Field introduced in 21.1.3. Allowed with any value in enterprise, enterprise with cloud services edition.
    id String
    name String
    Name of statediff operation. Field introduced in 21.1.3. Allowed with any value in enterprise, enterprise with cloud services edition.
    nodeUuid String
    Uuid of node for statediff operation entry. Field introduced in 21.1.3. Allowed with any value in enterprise, enterprise with cloud services edition.
    operation String
    Type of statediff operation. Enum options - FB_UPGRADE, FB_ROLLBACK, FB_PATCH, FB_ROLLBACK_PATCH. Field introduced in 21.1.3. Allowed with any value in enterprise, enterprise with cloud services edition.
    phase String
    Phase of statediff operation. Enum options - FB_PRE_SNAPSHOT, FB_POST_SNAPSHOT. Field introduced in 21.1.3. Allowed with any value in enterprise, enterprise with cloud services edition.
    status String
    Status of statediff operation. Enum options - FB_INIT, FB_IN_PROGRESS, FB_COMPLETED, FB_FAILED, FB_COMPLETED_WITH_ERRORS. Field introduced in 21.1.3. Allowed with any value in enterprise, enterprise with cloud services edition.
    tenantRef String
    Tenant that this object belongs to. It is a reference to an object of type tenant. Field introduced in 21.1.3. Allowed with any value in enterprise, enterprise with cloud services edition.
    uuid String
    Unique identifier for statediff entry. Field introduced in 21.1.3. Allowed with any value in enterprise, enterprise with cloud services edition.
    events GetStatediffoperationEvent[]
    Info for each statediff event. Field introduced in 21.1.3. Allowed with any value in enterprise, enterprise with cloud services edition.
    id string
    name string
    Name of statediff operation. Field introduced in 21.1.3. Allowed with any value in enterprise, enterprise with cloud services edition.
    nodeUuid string
    Uuid of node for statediff operation entry. Field introduced in 21.1.3. Allowed with any value in enterprise, enterprise with cloud services edition.
    operation string
    Type of statediff operation. Enum options - FB_UPGRADE, FB_ROLLBACK, FB_PATCH, FB_ROLLBACK_PATCH. Field introduced in 21.1.3. Allowed with any value in enterprise, enterprise with cloud services edition.
    phase string
    Phase of statediff operation. Enum options - FB_PRE_SNAPSHOT, FB_POST_SNAPSHOT. Field introduced in 21.1.3. Allowed with any value in enterprise, enterprise with cloud services edition.
    status string
    Status of statediff operation. Enum options - FB_INIT, FB_IN_PROGRESS, FB_COMPLETED, FB_FAILED, FB_COMPLETED_WITH_ERRORS. Field introduced in 21.1.3. Allowed with any value in enterprise, enterprise with cloud services edition.
    tenantRef string
    Tenant that this object belongs to. It is a reference to an object of type tenant. Field introduced in 21.1.3. Allowed with any value in enterprise, enterprise with cloud services edition.
    uuid string
    Unique identifier for statediff entry. Field introduced in 21.1.3. Allowed with any value in enterprise, enterprise with cloud services edition.
    events Sequence[GetStatediffoperationEvent]
    Info for each statediff event. Field introduced in 21.1.3. Allowed with any value in enterprise, enterprise with cloud services edition.
    id str
    name str
    Name of statediff operation. Field introduced in 21.1.3. Allowed with any value in enterprise, enterprise with cloud services edition.
    node_uuid str
    Uuid of node for statediff operation entry. Field introduced in 21.1.3. Allowed with any value in enterprise, enterprise with cloud services edition.
    operation str
    Type of statediff operation. Enum options - FB_UPGRADE, FB_ROLLBACK, FB_PATCH, FB_ROLLBACK_PATCH. Field introduced in 21.1.3. Allowed with any value in enterprise, enterprise with cloud services edition.
    phase str
    Phase of statediff operation. Enum options - FB_PRE_SNAPSHOT, FB_POST_SNAPSHOT. Field introduced in 21.1.3. Allowed with any value in enterprise, enterprise with cloud services edition.
    status str
    Status of statediff operation. Enum options - FB_INIT, FB_IN_PROGRESS, FB_COMPLETED, FB_FAILED, FB_COMPLETED_WITH_ERRORS. Field introduced in 21.1.3. Allowed with any value in enterprise, enterprise with cloud services edition.
    tenant_ref str
    Tenant that this object belongs to. It is a reference to an object of type tenant. Field introduced in 21.1.3. Allowed with any value in enterprise, enterprise with cloud services edition.
    uuid str
    Unique identifier for statediff entry. Field introduced in 21.1.3. Allowed with any value in enterprise, enterprise with cloud services edition.
    events List<Property Map>
    Info for each statediff event. Field introduced in 21.1.3. Allowed with any value in enterprise, enterprise with cloud services edition.
    id String
    name String
    Name of statediff operation. Field introduced in 21.1.3. Allowed with any value in enterprise, enterprise with cloud services edition.
    nodeUuid String
    Uuid of node for statediff operation entry. Field introduced in 21.1.3. Allowed with any value in enterprise, enterprise with cloud services edition.
    operation String
    Type of statediff operation. Enum options - FB_UPGRADE, FB_ROLLBACK, FB_PATCH, FB_ROLLBACK_PATCH. Field introduced in 21.1.3. Allowed with any value in enterprise, enterprise with cloud services edition.
    phase String
    Phase of statediff operation. Enum options - FB_PRE_SNAPSHOT, FB_POST_SNAPSHOT. Field introduced in 21.1.3. Allowed with any value in enterprise, enterprise with cloud services edition.
    status String
    Status of statediff operation. Enum options - FB_INIT, FB_IN_PROGRESS, FB_COMPLETED, FB_FAILED, FB_COMPLETED_WITH_ERRORS. Field introduced in 21.1.3. Allowed with any value in enterprise, enterprise with cloud services edition.
    tenantRef String
    Tenant that this object belongs to. It is a reference to an object of type tenant. Field introduced in 21.1.3. Allowed with any value in enterprise, enterprise with cloud services edition.
    uuid String
    Unique identifier for statediff entry. Field introduced in 21.1.3. Allowed with any value in enterprise, enterprise with cloud services edition.

    Supporting Types

    GetStatediffoperationEvent

    Duration string
    EndTime string
    Message string
    StartTime string
    Status string
    Status of statediff operation. Enum options - FB_INIT, FB_IN_PROGRESS, FB_COMPLETED, FB_FAILED, FB_COMPLETED_WITH_ERRORS. Field introduced in 21.1.3. Allowed with any value in enterprise, enterprise with cloud services edition.
    TaskName string
    Duration string
    EndTime string
    Message string
    StartTime string
    Status string
    Status of statediff operation. Enum options - FB_INIT, FB_IN_PROGRESS, FB_COMPLETED, FB_FAILED, FB_COMPLETED_WITH_ERRORS. Field introduced in 21.1.3. Allowed with any value in enterprise, enterprise with cloud services edition.
    TaskName string
    duration String
    endTime String
    message String
    startTime String
    status String
    Status of statediff operation. Enum options - FB_INIT, FB_IN_PROGRESS, FB_COMPLETED, FB_FAILED, FB_COMPLETED_WITH_ERRORS. Field introduced in 21.1.3. Allowed with any value in enterprise, enterprise with cloud services edition.
    taskName String
    duration string
    endTime string
    message string
    startTime string
    status string
    Status of statediff operation. Enum options - FB_INIT, FB_IN_PROGRESS, FB_COMPLETED, FB_FAILED, FB_COMPLETED_WITH_ERRORS. Field introduced in 21.1.3. Allowed with any value in enterprise, enterprise with cloud services edition.
    taskName string
    duration str
    end_time str
    message str
    start_time str
    status str
    Status of statediff operation. Enum options - FB_INIT, FB_IN_PROGRESS, FB_COMPLETED, FB_FAILED, FB_COMPLETED_WITH_ERRORS. Field introduced in 21.1.3. Allowed with any value in enterprise, enterprise with cloud services edition.
    task_name str
    duration String
    endTime String
    message String
    startTime String
    status String
    Status of statediff operation. Enum options - FB_INIT, FB_IN_PROGRESS, FB_COMPLETED, FB_FAILED, FB_COMPLETED_WITH_ERRORS. Field introduced in 21.1.3. Allowed with any value in enterprise, enterprise with cloud services edition.
    taskName String

    Package Details

    Repository
    avi vmware/terraform-provider-avi
    License
    Notes
    This Pulumi package is based on the avi Terraform Provider.
    avi logo
    avi 31.1.1 published on Monday, Apr 14, 2025 by vmware