Alibaba Cloud v3.68.0 published on Monday, Dec 2, 2024 by Pulumi
alicloud.dcdn.getKvAccount
Explore with Pulumi AI
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",
});
import pulumi
import pulumi_alicloud as alicloud
status = alicloud.dcdn.get_kv_account(status="online")
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
})
}
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",
});
});
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());
}
}
variables:
status:
fn::invoke:
Function: alicloud:dcdn:getKvAccount
Arguments:
status: online
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>
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]
func GetKvAccount(ctx *Context, args *GetKvAccountArgs, opts ...InvokeOption) (*GetKvAccountResult, error)
func GetKvAccountOutput(ctx *Context, args *GetKvAccountOutputArgs, opts ...InvokeOption) GetKvAccountResultOutput
> 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)
}
public static CompletableFuture<GetKvAccountResult> getKvAccount(GetKvAccountArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: alicloud:dcdn/getKvAccount:getKvAccount
arguments:
# arguments dictionary
The following arguments are supported:
- Status string
- The status of the KV feature for your account. Valid values:
online
,offline
.
- Status string
- The status of the KV feature for your account. Valid values:
online
,offline
.
- status String
- The status of the KV feature for your account. Valid values:
online
,offline
.
- status string
- The status of the KV feature for your account. Valid values:
online
,offline
.
- status str
- The status of the KV feature for your account. Valid values:
online
,offline
.
- status String
- The status of the KV feature for your account. Valid values:
online
,offline
.
getKvAccount Result
The following output properties are available:
Package Details
- Repository
- Alibaba Cloud pulumi/pulumi-alicloud
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
alicloud
Terraform Provider.