1. Packages
  2. Oracle Cloud Infrastructure
  3. API Docs
  4. ContainerEngine
  5. getClusterCredentialRotationStatus
Oracle Cloud Infrastructure v1.40.0 published on Wednesday, Jun 12, 2024 by Pulumi

oci.ContainerEngine.getClusterCredentialRotationStatus

Explore with Pulumi AI

oci logo
Oracle Cloud Infrastructure v1.40.0 published on Wednesday, Jun 12, 2024 by Pulumi

    This data source provides details about a specific Cluster Credential Rotation Status resource in Oracle Cloud Infrastructure Container Engine service.

    Get cluster credential rotation status.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as oci from "@pulumi/oci";
    
    const testClusterCredentialRotationStatus = oci.ContainerEngine.getClusterCredentialRotationStatus({
        clusterId: testCluster.id,
    });
    
    import pulumi
    import pulumi_oci as oci
    
    test_cluster_credential_rotation_status = oci.ContainerEngine.get_cluster_credential_rotation_status(cluster_id=test_cluster["id"])
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-oci/sdk/go/oci/ContainerEngine"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := ContainerEngine.GetClusterCredentialRotationStatus(ctx, &containerengine.GetClusterCredentialRotationStatusArgs{
    			ClusterId: testCluster.Id,
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Oci = Pulumi.Oci;
    
    return await Deployment.RunAsync(() => 
    {
        var testClusterCredentialRotationStatus = Oci.ContainerEngine.GetClusterCredentialRotationStatus.Invoke(new()
        {
            ClusterId = testCluster.Id,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.oci.ContainerEngine.ContainerEngineFunctions;
    import com.pulumi.oci.ContainerEngine.inputs.GetClusterCredentialRotationStatusArgs;
    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 testClusterCredentialRotationStatus = ContainerEngineFunctions.getClusterCredentialRotationStatus(GetClusterCredentialRotationStatusArgs.builder()
                .clusterId(testCluster.id())
                .build());
    
        }
    }
    
    variables:
      testClusterCredentialRotationStatus:
        fn::invoke:
          Function: oci:ContainerEngine:getClusterCredentialRotationStatus
          Arguments:
            clusterId: ${testCluster.id}
    

    Using getClusterCredentialRotationStatus

    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 getClusterCredentialRotationStatus(args: GetClusterCredentialRotationStatusArgs, opts?: InvokeOptions): Promise<GetClusterCredentialRotationStatusResult>
    function getClusterCredentialRotationStatusOutput(args: GetClusterCredentialRotationStatusOutputArgs, opts?: InvokeOptions): Output<GetClusterCredentialRotationStatusResult>
    def get_cluster_credential_rotation_status(cluster_id: Optional[str] = None,
                                               opts: Optional[InvokeOptions] = None) -> GetClusterCredentialRotationStatusResult
    def get_cluster_credential_rotation_status_output(cluster_id: Optional[pulumi.Input[str]] = None,
                                               opts: Optional[InvokeOptions] = None) -> Output[GetClusterCredentialRotationStatusResult]
    func GetClusterCredentialRotationStatus(ctx *Context, args *GetClusterCredentialRotationStatusArgs, opts ...InvokeOption) (*GetClusterCredentialRotationStatusResult, error)
    func GetClusterCredentialRotationStatusOutput(ctx *Context, args *GetClusterCredentialRotationStatusOutputArgs, opts ...InvokeOption) GetClusterCredentialRotationStatusResultOutput

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

    public static class GetClusterCredentialRotationStatus 
    {
        public static Task<GetClusterCredentialRotationStatusResult> InvokeAsync(GetClusterCredentialRotationStatusArgs args, InvokeOptions? opts = null)
        public static Output<GetClusterCredentialRotationStatusResult> Invoke(GetClusterCredentialRotationStatusInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetClusterCredentialRotationStatusResult> getClusterCredentialRotationStatus(GetClusterCredentialRotationStatusArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: oci:ContainerEngine/getClusterCredentialRotationStatus:getClusterCredentialRotationStatus
      arguments:
        # arguments dictionary

    The following arguments are supported:

    ClusterId string
    The OCID of the cluster.
    ClusterId string
    The OCID of the cluster.
    clusterId String
    The OCID of the cluster.
    clusterId string
    The OCID of the cluster.
    cluster_id str
    The OCID of the cluster.
    clusterId String
    The OCID of the cluster.

    getClusterCredentialRotationStatus Result

    The following output properties are available:

    ClusterId string
    Id string
    The provider-assigned unique ID for this managed resource.
    Status string
    Credential rotation status of a kubernetes cluster IN_PROGRESS: Issuing new credentials to kubernetes cluster control plane and worker nodes or retiring old credentials from kubernetes cluster control plane and worker nodes. WAITING: Waiting for customer to invoke the complete rotation action or the automcatic complete rotation action. COMPLETED: New credentials are functional on kuberentes cluster.
    StatusDetails string
    Details of a kuberenetes cluster credential rotation status: ISSUING_NEW_CREDENTIALS: Credential rotation is in progress. Starting to issue new credentials to kubernetes cluster control plane and worker nodes. NEW_CREDENTIALS_ISSUED: New credentials are added. At this stage cluster has both old and new credentials and is awaiting old credentials retirement. RETIRING_OLD_CREDENTIALS: Retirement of old credentials is in progress. Starting to remove old credentials from kubernetes cluster control plane and worker nodes. COMPLETED: Credential rotation is complete. Old credentials are retired.
    TimeAutoCompletionScheduled string
    The time by which retirement of old credentials should start.
    ClusterId string
    Id string
    The provider-assigned unique ID for this managed resource.
    Status string
    Credential rotation status of a kubernetes cluster IN_PROGRESS: Issuing new credentials to kubernetes cluster control plane and worker nodes or retiring old credentials from kubernetes cluster control plane and worker nodes. WAITING: Waiting for customer to invoke the complete rotation action or the automcatic complete rotation action. COMPLETED: New credentials are functional on kuberentes cluster.
    StatusDetails string
    Details of a kuberenetes cluster credential rotation status: ISSUING_NEW_CREDENTIALS: Credential rotation is in progress. Starting to issue new credentials to kubernetes cluster control plane and worker nodes. NEW_CREDENTIALS_ISSUED: New credentials are added. At this stage cluster has both old and new credentials and is awaiting old credentials retirement. RETIRING_OLD_CREDENTIALS: Retirement of old credentials is in progress. Starting to remove old credentials from kubernetes cluster control plane and worker nodes. COMPLETED: Credential rotation is complete. Old credentials are retired.
    TimeAutoCompletionScheduled string
    The time by which retirement of old credentials should start.
    clusterId String
    id String
    The provider-assigned unique ID for this managed resource.
    status String
    Credential rotation status of a kubernetes cluster IN_PROGRESS: Issuing new credentials to kubernetes cluster control plane and worker nodes or retiring old credentials from kubernetes cluster control plane and worker nodes. WAITING: Waiting for customer to invoke the complete rotation action or the automcatic complete rotation action. COMPLETED: New credentials are functional on kuberentes cluster.
    statusDetails String
    Details of a kuberenetes cluster credential rotation status: ISSUING_NEW_CREDENTIALS: Credential rotation is in progress. Starting to issue new credentials to kubernetes cluster control plane and worker nodes. NEW_CREDENTIALS_ISSUED: New credentials are added. At this stage cluster has both old and new credentials and is awaiting old credentials retirement. RETIRING_OLD_CREDENTIALS: Retirement of old credentials is in progress. Starting to remove old credentials from kubernetes cluster control plane and worker nodes. COMPLETED: Credential rotation is complete. Old credentials are retired.
    timeAutoCompletionScheduled String
    The time by which retirement of old credentials should start.
    clusterId string
    id string
    The provider-assigned unique ID for this managed resource.
    status string
    Credential rotation status of a kubernetes cluster IN_PROGRESS: Issuing new credentials to kubernetes cluster control plane and worker nodes or retiring old credentials from kubernetes cluster control plane and worker nodes. WAITING: Waiting for customer to invoke the complete rotation action or the automcatic complete rotation action. COMPLETED: New credentials are functional on kuberentes cluster.
    statusDetails string
    Details of a kuberenetes cluster credential rotation status: ISSUING_NEW_CREDENTIALS: Credential rotation is in progress. Starting to issue new credentials to kubernetes cluster control plane and worker nodes. NEW_CREDENTIALS_ISSUED: New credentials are added. At this stage cluster has both old and new credentials and is awaiting old credentials retirement. RETIRING_OLD_CREDENTIALS: Retirement of old credentials is in progress. Starting to remove old credentials from kubernetes cluster control plane and worker nodes. COMPLETED: Credential rotation is complete. Old credentials are retired.
    timeAutoCompletionScheduled string
    The time by which retirement of old credentials should start.
    cluster_id str
    id str
    The provider-assigned unique ID for this managed resource.
    status str
    Credential rotation status of a kubernetes cluster IN_PROGRESS: Issuing new credentials to kubernetes cluster control plane and worker nodes or retiring old credentials from kubernetes cluster control plane and worker nodes. WAITING: Waiting for customer to invoke the complete rotation action or the automcatic complete rotation action. COMPLETED: New credentials are functional on kuberentes cluster.
    status_details str
    Details of a kuberenetes cluster credential rotation status: ISSUING_NEW_CREDENTIALS: Credential rotation is in progress. Starting to issue new credentials to kubernetes cluster control plane and worker nodes. NEW_CREDENTIALS_ISSUED: New credentials are added. At this stage cluster has both old and new credentials and is awaiting old credentials retirement. RETIRING_OLD_CREDENTIALS: Retirement of old credentials is in progress. Starting to remove old credentials from kubernetes cluster control plane and worker nodes. COMPLETED: Credential rotation is complete. Old credentials are retired.
    time_auto_completion_scheduled str
    The time by which retirement of old credentials should start.
    clusterId String
    id String
    The provider-assigned unique ID for this managed resource.
    status String
    Credential rotation status of a kubernetes cluster IN_PROGRESS: Issuing new credentials to kubernetes cluster control plane and worker nodes or retiring old credentials from kubernetes cluster control plane and worker nodes. WAITING: Waiting for customer to invoke the complete rotation action or the automcatic complete rotation action. COMPLETED: New credentials are functional on kuberentes cluster.
    statusDetails String
    Details of a kuberenetes cluster credential rotation status: ISSUING_NEW_CREDENTIALS: Credential rotation is in progress. Starting to issue new credentials to kubernetes cluster control plane and worker nodes. NEW_CREDENTIALS_ISSUED: New credentials are added. At this stage cluster has both old and new credentials and is awaiting old credentials retirement. RETIRING_OLD_CREDENTIALS: Retirement of old credentials is in progress. Starting to remove old credentials from kubernetes cluster control plane and worker nodes. COMPLETED: Credential rotation is complete. Old credentials are retired.
    timeAutoCompletionScheduled String
    The time by which retirement of old credentials should start.

    Package Details

    Repository
    oci pulumi/pulumi-oci
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the oci Terraform Provider.
    oci logo
    Oracle Cloud Infrastructure v1.40.0 published on Wednesday, Jun 12, 2024 by Pulumi