1. Packages
  2. CAST AI
  3. API Docs
  4. ServiceAccountKey
CAST AI v7.73.2 published on Wednesday, Oct 29, 2025 by CAST AI

castai.ServiceAccountKey

Start a Neo task
Explain and create a castai.ServiceAccountKey resource
castai logo
CAST AI v7.73.2 published on Wednesday, Oct 29, 2025 by CAST AI

    Create ServiceAccountKey Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new ServiceAccountKey(name: string, args: ServiceAccountKeyArgs, opts?: CustomResourceOptions);
    @overload
    def ServiceAccountKey(resource_name: str,
                          args: ServiceAccountKeyArgs,
                          opts: Optional[ResourceOptions] = None)
    
    @overload
    def ServiceAccountKey(resource_name: str,
                          opts: Optional[ResourceOptions] = None,
                          organization_id: Optional[str] = None,
                          service_account_id: Optional[str] = None,
                          active: Optional[bool] = None,
                          expires_at: Optional[str] = None,
                          name: Optional[str] = None)
    func NewServiceAccountKey(ctx *Context, name string, args ServiceAccountKeyArgs, opts ...ResourceOption) (*ServiceAccountKey, error)
    public ServiceAccountKey(string name, ServiceAccountKeyArgs args, CustomResourceOptions? opts = null)
    public ServiceAccountKey(String name, ServiceAccountKeyArgs args)
    public ServiceAccountKey(String name, ServiceAccountKeyArgs args, CustomResourceOptions options)
    
    type: castai:organization:ServiceAccountKey
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args ServiceAccountKeyArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args ServiceAccountKeyArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args ServiceAccountKeyArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args ServiceAccountKeyArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args ServiceAccountKeyArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    ServiceAccountKey Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The ServiceAccountKey resource accepts the following input properties:

    OrganizationId string
    ID of the organization.
    ServiceAccountId string
    ID of the service account.
    Active bool
    Whether the service account key is active. Defaults to true.
    ExpiresAt string
    The expiration time of the service account key in RFC3339 format. Defaults to an empty string.
    Name string
    Name of the service account key.
    OrganizationId string
    ID of the organization.
    ServiceAccountId string
    ID of the service account.
    Active bool
    Whether the service account key is active. Defaults to true.
    ExpiresAt string
    The expiration time of the service account key in RFC3339 format. Defaults to an empty string.
    Name string
    Name of the service account key.
    organizationId String
    ID of the organization.
    serviceAccountId String
    ID of the service account.
    active Boolean
    Whether the service account key is active. Defaults to true.
    expiresAt String
    The expiration time of the service account key in RFC3339 format. Defaults to an empty string.
    name String
    Name of the service account key.
    organizationId string
    ID of the organization.
    serviceAccountId string
    ID of the service account.
    active boolean
    Whether the service account key is active. Defaults to true.
    expiresAt string
    The expiration time of the service account key in RFC3339 format. Defaults to an empty string.
    name string
    Name of the service account key.
    organization_id str
    ID of the organization.
    service_account_id str
    ID of the service account.
    active bool
    Whether the service account key is active. Defaults to true.
    expires_at str
    The expiration time of the service account key in RFC3339 format. Defaults to an empty string.
    name str
    Name of the service account key.
    organizationId String
    ID of the organization.
    serviceAccountId String
    ID of the service account.
    active Boolean
    Whether the service account key is active. Defaults to true.
    expiresAt String
    The expiration time of the service account key in RFC3339 format. Defaults to an empty string.
    name String
    Name of the service account key.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the ServiceAccountKey resource produces the following output properties:

    Id string
    The provider-assigned unique ID for this managed resource.
    LastUsedAt string
    Last time the service account key was used.
    Prefix string
    Prefix of the service account key.
    Token string
    The token of the service account key used for authentication.
    Id string
    The provider-assigned unique ID for this managed resource.
    LastUsedAt string
    Last time the service account key was used.
    Prefix string
    Prefix of the service account key.
    Token string
    The token of the service account key used for authentication.
    id String
    The provider-assigned unique ID for this managed resource.
    lastUsedAt String
    Last time the service account key was used.
    prefix String
    Prefix of the service account key.
    token String
    The token of the service account key used for authentication.
    id string
    The provider-assigned unique ID for this managed resource.
    lastUsedAt string
    Last time the service account key was used.
    prefix string
    Prefix of the service account key.
    token string
    The token of the service account key used for authentication.
    id str
    The provider-assigned unique ID for this managed resource.
    last_used_at str
    Last time the service account key was used.
    prefix str
    Prefix of the service account key.
    token str
    The token of the service account key used for authentication.
    id String
    The provider-assigned unique ID for this managed resource.
    lastUsedAt String
    Last time the service account key was used.
    prefix String
    Prefix of the service account key.
    token String
    The token of the service account key used for authentication.

    Look up Existing ServiceAccountKey Resource

    Get an existing ServiceAccountKey resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, state?: ServiceAccountKeyState, opts?: CustomResourceOptions): ServiceAccountKey
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            active: Optional[bool] = None,
            expires_at: Optional[str] = None,
            last_used_at: Optional[str] = None,
            name: Optional[str] = None,
            organization_id: Optional[str] = None,
            prefix: Optional[str] = None,
            service_account_id: Optional[str] = None,
            token: Optional[str] = None) -> ServiceAccountKey
    func GetServiceAccountKey(ctx *Context, name string, id IDInput, state *ServiceAccountKeyState, opts ...ResourceOption) (*ServiceAccountKey, error)
    public static ServiceAccountKey Get(string name, Input<string> id, ServiceAccountKeyState? state, CustomResourceOptions? opts = null)
    public static ServiceAccountKey get(String name, Output<String> id, ServiceAccountKeyState state, CustomResourceOptions options)
    resources:  _:    type: castai:organization:ServiceAccountKey    get:      id: ${id}
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    Active bool
    Whether the service account key is active. Defaults to true.
    ExpiresAt string
    The expiration time of the service account key in RFC3339 format. Defaults to an empty string.
    LastUsedAt string
    Last time the service account key was used.
    Name string
    Name of the service account key.
    OrganizationId string
    ID of the organization.
    Prefix string
    Prefix of the service account key.
    ServiceAccountId string
    ID of the service account.
    Token string
    The token of the service account key used for authentication.
    Active bool
    Whether the service account key is active. Defaults to true.
    ExpiresAt string
    The expiration time of the service account key in RFC3339 format. Defaults to an empty string.
    LastUsedAt string
    Last time the service account key was used.
    Name string
    Name of the service account key.
    OrganizationId string
    ID of the organization.
    Prefix string
    Prefix of the service account key.
    ServiceAccountId string
    ID of the service account.
    Token string
    The token of the service account key used for authentication.
    active Boolean
    Whether the service account key is active. Defaults to true.
    expiresAt String
    The expiration time of the service account key in RFC3339 format. Defaults to an empty string.
    lastUsedAt String
    Last time the service account key was used.
    name String
    Name of the service account key.
    organizationId String
    ID of the organization.
    prefix String
    Prefix of the service account key.
    serviceAccountId String
    ID of the service account.
    token String
    The token of the service account key used for authentication.
    active boolean
    Whether the service account key is active. Defaults to true.
    expiresAt string
    The expiration time of the service account key in RFC3339 format. Defaults to an empty string.
    lastUsedAt string
    Last time the service account key was used.
    name string
    Name of the service account key.
    organizationId string
    ID of the organization.
    prefix string
    Prefix of the service account key.
    serviceAccountId string
    ID of the service account.
    token string
    The token of the service account key used for authentication.
    active bool
    Whether the service account key is active. Defaults to true.
    expires_at str
    The expiration time of the service account key in RFC3339 format. Defaults to an empty string.
    last_used_at str
    Last time the service account key was used.
    name str
    Name of the service account key.
    organization_id str
    ID of the organization.
    prefix str
    Prefix of the service account key.
    service_account_id str
    ID of the service account.
    token str
    The token of the service account key used for authentication.
    active Boolean
    Whether the service account key is active. Defaults to true.
    expiresAt String
    The expiration time of the service account key in RFC3339 format. Defaults to an empty string.
    lastUsedAt String
    Last time the service account key was used.
    name String
    Name of the service account key.
    organizationId String
    ID of the organization.
    prefix String
    Prefix of the service account key.
    serviceAccountId String
    ID of the service account.
    token String
    The token of the service account key used for authentication.

    Package Details

    Repository
    castai castai/pulumi-castai
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the castai Terraform Provider.
    castai logo
    CAST AI v7.73.2 published on Wednesday, Oct 29, 2025 by CAST AI
      Meet Neo: Your AI Platform Teammate