1. Packages
  2. Alibaba Cloud Provider
  3. API Docs
  4. dcdn
  5. getKvAccount
Alibaba Cloud v3.75.0 published on Friday, Mar 7, 2025 by Pulumi

alicloud.dcdn.getKvAccount

Explore with Pulumi AI

Alibaba Cloud v3.75.0 published on Friday, Mar 7, 2025 by Pulumi

This data source provides DCDN kv account available to the user.What is DCDN Kv Account

NOTE: Available since v1.198.0.

Example Usage

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

const status = alicloud.dcdn.getKvAccount({
    status: "online",
});
Copy
import pulumi
import pulumi_alicloud as alicloud

status = alicloud.dcdn.get_kv_account(status="online")
Copy
package main

import (
	"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/dcdn"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := dcdn.GetKvAccount(ctx, &dcdn.GetKvAccountArgs{
			Status: pulumi.StringRef("online"),
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AliCloud = Pulumi.AliCloud;

return await Deployment.RunAsync(() => 
{
    var status = AliCloud.Dcdn.GetKvAccount.Invoke(new()
    {
        Status = "online",
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.alicloud.dcdn.DcdnFunctions;
import com.pulumi.alicloud.dcdn.inputs.GetKvAccountArgs;
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 status = DcdnFunctions.getKvAccount(GetKvAccountArgs.builder()
            .status("online")
            .build());

    }
}
Copy
variables:
  status:
    fn::invoke:
      function: alicloud:dcdn:getKvAccount
      arguments:
        status: online
Copy

Using getKvAccount

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 getKvAccount(args: GetKvAccountArgs, opts?: InvokeOptions): Promise<GetKvAccountResult>
function getKvAccountOutput(args: GetKvAccountOutputArgs, opts?: InvokeOptions): Output<GetKvAccountResult>
Copy
def get_kv_account(status: Optional[str] = None,
                   opts: Optional[InvokeOptions] = None) -> GetKvAccountResult
def get_kv_account_output(status: Optional[pulumi.Input[str]] = None,
                   opts: Optional[InvokeOptions] = None) -> Output[GetKvAccountResult]
Copy
func GetKvAccount(ctx *Context, args *GetKvAccountArgs, opts ...InvokeOption) (*GetKvAccountResult, error)
func GetKvAccountOutput(ctx *Context, args *GetKvAccountOutputArgs, opts ...InvokeOption) GetKvAccountResultOutput
Copy

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

public static class GetKvAccount 
{
    public static Task<GetKvAccountResult> InvokeAsync(GetKvAccountArgs args, InvokeOptions? opts = null)
    public static Output<GetKvAccountResult> Invoke(GetKvAccountInvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<GetKvAccountResult> getKvAccount(GetKvAccountArgs args, InvokeOptions options)
public static Output<GetKvAccountResult> getKvAccount(GetKvAccountArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: alicloud:dcdn/getKvAccount:getKvAccount
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

Status Changes to this property will trigger replacement. string
The status of the KV feature for your account. Valid values: online, offline.
Status Changes to this property will trigger replacement. string
The status of the KV feature for your account. Valid values: online, offline.
status Changes to this property will trigger replacement. String
The status of the KV feature for your account. Valid values: online, offline.
status Changes to this property will trigger replacement. string
The status of the KV feature for your account. Valid values: online, offline.
status Changes to this property will trigger replacement. str
The status of the KV feature for your account. Valid values: online, offline.
status Changes to this property will trigger replacement. String
The status of the KV feature for your account. Valid values: online, offline.

getKvAccount Result

The following output properties are available:

Id string
The provider-assigned unique ID for this managed resource.
Status string
The current kv account enable status.
Id string
The provider-assigned unique ID for this managed resource.
Status string
The current kv account enable status.
id String
The provider-assigned unique ID for this managed resource.
status String
The current kv account enable status.
id string
The provider-assigned unique ID for this managed resource.
status string
The current kv account enable status.
id str
The provider-assigned unique ID for this managed resource.
status str
The current kv account enable status.
id String
The provider-assigned unique ID for this managed resource.
status String
The current kv account enable status.

Package Details

Repository
Alibaba Cloud pulumi/pulumi-alicloud
License
Apache-2.0
Notes
This Pulumi package is based on the alicloud Terraform Provider.
Alibaba Cloud v3.75.0 published on Friday, Mar 7, 2025 by Pulumi