1. Packages
  2. Volcengine
  3. API Docs
  4. cr
  5. AuthorizationTokens
Volcengine v0.0.26 published on Friday, Sep 13, 2024 by Volcengine

volcengine.cr.AuthorizationTokens

Explore with Pulumi AI

volcengine logo
Volcengine v0.0.26 published on Friday, Sep 13, 2024 by Volcengine

    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.
    OutputFile string
    File name where to save data source results.
    Registry string
    The cr instance name want to query.
    OutputFile string
    File name where to save data source results.
    registry String
    The cr instance name want to query.
    outputFile String
    File name where to save data source results.
    registry string
    The cr instance name want to query.
    outputFile 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.
    outputFile 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.AuthorizationTokensToken>
    The collection of users.
    TotalCount int
    The total count of instance query.
    OutputFile string
    Id string
    The provider-assigned unique ID for this managed resource.
    Registry string
    Tokens []AuthorizationTokensToken
    The collection of users.
    TotalCount int
    The total count of instance query.
    OutputFile string
    id String
    The provider-assigned unique ID for this managed resource.
    registry String
    tokens List<AuthorizationTokensToken>
    The collection of users.
    totalCount Integer
    The total count of instance query.
    outputFile String
    id string
    The provider-assigned unique ID for this managed resource.
    registry string
    tokens AuthorizationTokensToken[]
    The collection of users.
    totalCount number
    The total count of instance query.
    outputFile string
    id str
    The provider-assigned unique ID for this managed resource.
    registry str
    tokens Sequence[AuthorizationTokensToken]
    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.
    totalCount Number
    The total count of instance query.
    outputFile String

    Supporting Types

    AuthorizationTokensToken

    ExpireTime string
    The expiration time of the temporary access token.
    Token string
    The Temporary access token.
    Username string
    The username for login repository instance.
    ExpireTime string
    The expiration time of the temporary access token.
    Token string
    The Temporary access token.
    Username string
    The username for login repository instance.
    expireTime String
    The expiration time of the temporary access token.
    token String
    The Temporary access token.
    username String
    The username for login repository instance.
    expireTime 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.
    expireTime 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.
    volcengine logo
    Volcengine v0.0.26 published on Friday, Sep 13, 2024 by Volcengine