1. Packages
  2. Packages
  3. Thoth
  4. API Docs
  5. access
  6. getApiKeyAuthorization
Viewing docs for Thoth v0.1.15
published on Thursday, Jul 23, 2026 by Aten Security
thoth logo
Viewing docs for Thoth v0.1.15
published on Thursday, Jul 23, 2026 by Aten Security

    Using getApiKeyAuthorization

    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 getApiKeyAuthorization(args: GetApiKeyAuthorizationArgs, opts?: InvokeOptions): Promise<GetApiKeyAuthorizationResult>
    function getApiKeyAuthorizationOutput(args: GetApiKeyAuthorizationOutputArgs, opts?: InvokeOptions): Output<GetApiKeyAuthorizationResult>
    def get_api_key_authorization(api_key: Optional[str] = None,
                                  key_id: Optional[str] = None,
                                  permission: Optional[str] = None,
                                  resource_id: Optional[str] = None,
                                  resource_type: Optional[str] = None,
                                  opts: Optional[InvokeOptions] = None) -> GetApiKeyAuthorizationResult
    def get_api_key_authorization_output(api_key: pulumi.Input[Optional[str]] = None,
                                  key_id: pulumi.Input[Optional[str]] = None,
                                  permission: pulumi.Input[Optional[str]] = None,
                                  resource_id: pulumi.Input[Optional[str]] = None,
                                  resource_type: pulumi.Input[Optional[str]] = None,
                                  opts: Optional[InvokeOptions] = None) -> Output[GetApiKeyAuthorizationResult]
    func GetApiKeyAuthorization(ctx *Context, args *GetApiKeyAuthorizationArgs, opts ...InvokeOption) (*GetApiKeyAuthorizationResult, error)
    func GetApiKeyAuthorizationOutput(ctx *Context, args *GetApiKeyAuthorizationOutputArgs, opts ...InvokeOption) GetApiKeyAuthorizationResultOutput

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

    public static class GetApiKeyAuthorization 
    {
        public static Task<GetApiKeyAuthorizationResult> InvokeAsync(GetApiKeyAuthorizationArgs args, InvokeOptions? opts = null)
        public static Output<GetApiKeyAuthorizationResult> Invoke(GetApiKeyAuthorizationInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetApiKeyAuthorizationResult> getApiKeyAuthorization(GetApiKeyAuthorizationArgs args, InvokeOptions options)
    public static Output<GetApiKeyAuthorizationResult> getApiKeyAuthorization(GetApiKeyAuthorizationArgs args, InvokeOptions options)
    
    fn::invoke:
      function: thoth:access/getApiKeyAuthorization:getApiKeyAuthorization
      arguments:
        # arguments dictionary
    data "thoth_access_get_api_key_authorization" "name" {
        # arguments
    }

    The following arguments are supported:

    ApiKey string
    KeyId string
    Permission string
    ResourceType string
    ResourceId string
    ApiKey string
    KeyId string
    Permission string
    ResourceType string
    ResourceId string
    api_key string
    key_id string
    permission string
    resource_type string
    resource_id string
    apiKey String
    keyId String
    permission String
    resourceType String
    resourceId String
    apiKey string
    keyId string
    permission string
    resourceType string
    resourceId string
    apiKey String
    keyId String
    permission String
    resourceType String
    resourceId String

    getApiKeyAuthorization Result

    The following output properties are available:

    ApiKey string
    Authorized bool
    Expired bool
    Id string
    The provider-assigned unique ID for this managed resource.
    KeyId string
    Permission string
    PermissionAllowed bool
    ResourceType string
    ResponseJson string
    ScopeAllowed bool
    ScopeLevel string
    ScopeTargetId string
    Valid bool
    ValidatedAt string
    ResourceId string
    ApiKey string
    Authorized bool
    Expired bool
    Id string
    The provider-assigned unique ID for this managed resource.
    KeyId string
    Permission string
    PermissionAllowed bool
    ResourceType string
    ResponseJson string
    ScopeAllowed bool
    ScopeLevel string
    ScopeTargetId string
    Valid bool
    ValidatedAt string
    ResourceId string
    api_key string
    authorized bool
    expired bool
    id string
    The provider-assigned unique ID for this managed resource.
    key_id string
    permission string
    permission_allowed bool
    resource_type string
    response_json string
    scope_allowed bool
    scope_level string
    scope_target_id string
    valid bool
    validated_at string
    resource_id string
    apiKey String
    authorized Boolean
    expired Boolean
    id String
    The provider-assigned unique ID for this managed resource.
    keyId String
    permission String
    permissionAllowed Boolean
    resourceType String
    responseJson String
    scopeAllowed Boolean
    scopeLevel String
    scopeTargetId String
    valid Boolean
    validatedAt String
    resourceId String
    apiKey string
    authorized boolean
    expired boolean
    id string
    The provider-assigned unique ID for this managed resource.
    keyId string
    permission string
    permissionAllowed boolean
    resourceType string
    responseJson string
    scopeAllowed boolean
    scopeLevel string
    scopeTargetId string
    valid boolean
    validatedAt string
    resourceId string
    api_key str
    authorized bool
    expired bool
    id str
    The provider-assigned unique ID for this managed resource.
    key_id str
    permission str
    permission_allowed bool
    resource_type str
    response_json str
    scope_allowed bool
    scope_level str
    scope_target_id str
    valid bool
    validated_at str
    resource_id str
    apiKey String
    authorized Boolean
    expired Boolean
    id String
    The provider-assigned unique ID for this managed resource.
    keyId String
    permission String
    permissionAllowed Boolean
    resourceType String
    responseJson String
    scopeAllowed Boolean
    scopeLevel String
    scopeTargetId String
    valid Boolean
    validatedAt String
    resourceId String

    Package Details

    Repository
    thoth atensecurity/pulumi-thoth
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the thoth Terraform Provider.
    thoth logo
    Viewing docs for Thoth v0.1.15
    published on Thursday, Jul 23, 2026 by Aten Security

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial