Volcengine v0.0.26 published on Friday, Sep 13, 2024 by Volcengine
volcengine.cr.AuthorizationTokens
Explore with Pulumi AI
Use this data source to query detailed information of cr authorization tokens
Example Usage
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Volcengine = Pulumi.Volcengine;
return await Deployment.RunAsync(() =>
{
var foo = Volcengine.Cr.AuthorizationTokens.Invoke(new()
{
Registry = "tf-1",
});
});
package main
import (
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/volcengine/pulumi-volcengine/sdk/go/volcengine/cr"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := cr.AuthorizationTokens(ctx, &cr.AuthorizationTokensArgs{
Registry: "tf-1",
}, nil)
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.volcengine.cr.CrFunctions;
import com.pulumi.volcengine.cr.inputs.AuthorizationTokensArgs;
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 foo = CrFunctions.AuthorizationTokens(AuthorizationTokensArgs.builder()
.registry("tf-1")
.build());
}
}
import pulumi
import pulumi_volcengine as volcengine
foo = volcengine.cr.authorization_tokens(registry="tf-1")
import * as pulumi from "@pulumi/pulumi";
import * as volcengine from "@pulumi/volcengine";
const foo = volcengine.cr.AuthorizationTokens({
registry: "tf-1",
});
variables:
foo:
fn::invoke:
Function: volcengine:cr:AuthorizationTokens
Arguments:
registry: tf-1
Using AuthorizationTokens
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 authorizationTokens(args: AuthorizationTokensArgs, opts?: InvokeOptions): Promise<AuthorizationTokensResult>
function authorizationTokensOutput(args: AuthorizationTokensOutputArgs, opts?: InvokeOptions): Output<AuthorizationTokensResult>
def authorization_tokens(output_file: Optional[str] = None,
registry: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> AuthorizationTokensResult
def authorization_tokens_output(output_file: Optional[pulumi.Input[str]] = None,
registry: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[AuthorizationTokensResult]
func AuthorizationTokens(ctx *Context, args *AuthorizationTokensArgs, opts ...InvokeOption) (*AuthorizationTokensResult, error)
func AuthorizationTokensOutput(ctx *Context, args *AuthorizationTokensOutputArgs, opts ...InvokeOption) AuthorizationTokensResultOutput
public static class AuthorizationTokens
{
public static Task<AuthorizationTokensResult> InvokeAsync(AuthorizationTokensArgs args, InvokeOptions? opts = null)
public static Output<AuthorizationTokensResult> Invoke(AuthorizationTokensInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<AuthorizationTokensResult> authorizationTokens(AuthorizationTokensArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: volcengine:cr:AuthorizationTokens
arguments:
# arguments dictionary
The following arguments are supported:
- Registry string
- The cr instance name want to query.
- Output
File string - File name where to save data source results.
- Registry string
- The cr instance name want to query.
- Output
File string - File name where to save data source results.
- registry String
- The cr instance name want to query.
- output
File String - File name where to save data source results.
- registry string
- The cr instance name want to query.
- output
File string - File name where to save data source results.
- registry str
- The cr instance name want to query.
- output_
file str - File name where to save data source results.
- registry String
- The cr instance name want to query.
- output
File String - File name where to save data source results.
AuthorizationTokens Result
The following output properties are available:
- Id string
- The provider-assigned unique ID for this managed resource.
- Registry string
- Tokens
List<Pulumi.
Volcengine. Cr. Outputs. Authorization Tokens Token> - The collection of users.
- Total
Count int - The total count of instance query.
- Output
File string
- Id string
- The provider-assigned unique ID for this managed resource.
- Registry string
- Tokens
[]Authorization
Tokens Token - The collection of users.
- Total
Count int - The total count of instance query.
- Output
File string
- id String
- The provider-assigned unique ID for this managed resource.
- registry String
- tokens
List<Authorization
Tokens Token> - The collection of users.
- total
Count Integer - The total count of instance query.
- output
File String
- id string
- The provider-assigned unique ID for this managed resource.
- registry string
- tokens
Authorization
Tokens Token[] - The collection of users.
- total
Count number - The total count of instance query.
- output
File string
- id str
- The provider-assigned unique ID for this managed resource.
- registry str
- tokens
Sequence[Authorization
Tokens Token] - The collection of users.
- total_
count int - The total count of instance query.
- output_
file str
- id String
- The provider-assigned unique ID for this managed resource.
- registry String
- tokens List<Property Map>
- The collection of users.
- total
Count Number - The total count of instance query.
- output
File String
Supporting Types
AuthorizationTokensToken
- Expire
Time string - The expiration time of the temporary access token.
- Token string
- The Temporary access token.
- Username string
- The username for login repository instance.
- Expire
Time string - The expiration time of the temporary access token.
- Token string
- The Temporary access token.
- Username string
- The username for login repository instance.
- expire
Time String - The expiration time of the temporary access token.
- token String
- The Temporary access token.
- username String
- The username for login repository instance.
- expire
Time string - The expiration time of the temporary access token.
- token string
- The Temporary access token.
- username string
- The username for login repository instance.
- expire_
time str - The expiration time of the temporary access token.
- token str
- The Temporary access token.
- username str
- The username for login repository instance.
- expire
Time String - The expiration time of the temporary access token.
- token String
- The Temporary access token.
- username String
- The username for login repository instance.
Package Details
- Repository
- volcengine volcengine/pulumi-volcengine
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
volcengine
Terraform Provider.