1. Packages
  2. Azure Native v2
  3. API Docs
  4. redhatopenshift
  5. listOpenShiftClusterAdminCredentials
These are the docs for Azure Native v2. We recommenend using the latest version, Azure Native v3.
Azure Native v2 v2.90.0 published on Thursday, Mar 27, 2025 by Pulumi

azure-native-v2.redhatopenshift.listOpenShiftClusterAdminCredentials

Explore with Pulumi AI

These are the docs for Azure Native v2. We recommenend using the latest version, Azure Native v3.
Azure Native v2 v2.90.0 published on Thursday, Mar 27, 2025 by Pulumi

The operation returns the admin kubeconfig. Azure REST API version: 2022-09-04.

Other available API versions: 2023-04-01, 2023-07-01-preview, 2023-09-04, 2023-11-22.

Using listOpenShiftClusterAdminCredentials

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 listOpenShiftClusterAdminCredentials(args: ListOpenShiftClusterAdminCredentialsArgs, opts?: InvokeOptions): Promise<ListOpenShiftClusterAdminCredentialsResult>
function listOpenShiftClusterAdminCredentialsOutput(args: ListOpenShiftClusterAdminCredentialsOutputArgs, opts?: InvokeOptions): Output<ListOpenShiftClusterAdminCredentialsResult>
Copy
def list_open_shift_cluster_admin_credentials(resource_group_name: Optional[str] = None,
                                              resource_name: Optional[str] = None,
                                              opts: Optional[InvokeOptions] = None) -> ListOpenShiftClusterAdminCredentialsResult
def list_open_shift_cluster_admin_credentials_output(resource_group_name: Optional[pulumi.Input[str]] = None,
                                              resource_name: Optional[pulumi.Input[str]] = None,
                                              opts: Optional[InvokeOptions] = None) -> Output[ListOpenShiftClusterAdminCredentialsResult]
Copy
func ListOpenShiftClusterAdminCredentials(ctx *Context, args *ListOpenShiftClusterAdminCredentialsArgs, opts ...InvokeOption) (*ListOpenShiftClusterAdminCredentialsResult, error)
func ListOpenShiftClusterAdminCredentialsOutput(ctx *Context, args *ListOpenShiftClusterAdminCredentialsOutputArgs, opts ...InvokeOption) ListOpenShiftClusterAdminCredentialsResultOutput
Copy

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

public static class ListOpenShiftClusterAdminCredentials 
{
    public static Task<ListOpenShiftClusterAdminCredentialsResult> InvokeAsync(ListOpenShiftClusterAdminCredentialsArgs args, InvokeOptions? opts = null)
    public static Output<ListOpenShiftClusterAdminCredentialsResult> Invoke(ListOpenShiftClusterAdminCredentialsInvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<ListOpenShiftClusterAdminCredentialsResult> listOpenShiftClusterAdminCredentials(ListOpenShiftClusterAdminCredentialsArgs args, InvokeOptions options)
public static Output<ListOpenShiftClusterAdminCredentialsResult> listOpenShiftClusterAdminCredentials(ListOpenShiftClusterAdminCredentialsArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: azure-native:redhatopenshift:listOpenShiftClusterAdminCredentials
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

ResourceGroupName
This property is required.
Changes to this property will trigger replacement.
string
The name of the resource group. The name is case insensitive.
ResourceName
This property is required.
Changes to this property will trigger replacement.
string
The name of the OpenShift cluster resource.
ResourceGroupName
This property is required.
Changes to this property will trigger replacement.
string
The name of the resource group. The name is case insensitive.
ResourceName
This property is required.
Changes to this property will trigger replacement.
string
The name of the OpenShift cluster resource.
resourceGroupName
This property is required.
Changes to this property will trigger replacement.
String
The name of the resource group. The name is case insensitive.
resourceName
This property is required.
Changes to this property will trigger replacement.
String
The name of the OpenShift cluster resource.
resourceGroupName
This property is required.
Changes to this property will trigger replacement.
string
The name of the resource group. The name is case insensitive.
resourceName
This property is required.
Changes to this property will trigger replacement.
string
The name of the OpenShift cluster resource.
resource_group_name
This property is required.
Changes to this property will trigger replacement.
str
The name of the resource group. The name is case insensitive.
resource_name
This property is required.
Changes to this property will trigger replacement.
str
The name of the OpenShift cluster resource.
resourceGroupName
This property is required.
Changes to this property will trigger replacement.
String
The name of the resource group. The name is case insensitive.
resourceName
This property is required.
Changes to this property will trigger replacement.
String
The name of the OpenShift cluster resource.

listOpenShiftClusterAdminCredentials Result

The following output properties are available:

Kubeconfig string
The base64-encoded kubeconfig file.
Kubeconfig string
The base64-encoded kubeconfig file.
kubeconfig String
The base64-encoded kubeconfig file.
kubeconfig string
The base64-encoded kubeconfig file.
kubeconfig str
The base64-encoded kubeconfig file.
kubeconfig String
The base64-encoded kubeconfig file.

Package Details

Repository
azure-native-v2 pulumi/pulumi-azure-native
License
Apache-2.0
These are the docs for Azure Native v2. We recommenend using the latest version, Azure Native v3.
Azure Native v2 v2.90.0 published on Thursday, Mar 27, 2025 by Pulumi