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
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:
- Organization
Id string - ID of the organization.
- Service
Account stringId - ID of the service account.
- Active bool
- Whether the service account key is active. Defaults to true.
- Expires
At 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 string - ID of the organization.
- Service
Account stringId - ID of the service account.
- Active bool
- Whether the service account key is active. Defaults to true.
- Expires
At 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 String - ID of the organization.
- service
Account StringId - ID of the service account.
- active Boolean
- Whether the service account key is active. Defaults to true.
- expires
At 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 string - ID of the organization.
- service
Account stringId - ID of the service account.
- active boolean
- Whether the service account key is active. Defaults to true.
- expires
At 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_ strid - 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.
- organization
Id String - ID of the organization.
- service
Account StringId - ID of the service account.
- active Boolean
- Whether the service account key is active. Defaults to true.
- expires
At 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.
- Last
Used stringAt - 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.
- Last
Used stringAt - 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.
- last
Used StringAt - 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.
- last
Used stringAt - 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_ strat - 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.
- last
Used StringAt - 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) -> ServiceAccountKeyfunc 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.
- Active bool
- Whether the service account key is active. Defaults to true.
- Expires
At string - The expiration time of the service account key in RFC3339 format. Defaults to an empty string.
- Last
Used stringAt - Last time the service account key was used.
- Name string
- Name of the service account key.
- Organization
Id string - ID of the organization.
- Prefix string
- Prefix of the service account key.
- Service
Account stringId - 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 string - The expiration time of the service account key in RFC3339 format. Defaults to an empty string.
- Last
Used stringAt - Last time the service account key was used.
- Name string
- Name of the service account key.
- Organization
Id string - ID of the organization.
- Prefix string
- Prefix of the service account key.
- Service
Account stringId - 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.
- expires
At String - The expiration time of the service account key in RFC3339 format. Defaults to an empty string.
- last
Used StringAt - Last time the service account key was used.
- name String
- Name of the service account key.
- organization
Id String - ID of the organization.
- prefix String
- Prefix of the service account key.
- service
Account StringId - 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.
- expires
At string - The expiration time of the service account key in RFC3339 format. Defaults to an empty string.
- last
Used stringAt - Last time the service account key was used.
- name string
- Name of the service account key.
- organization
Id string - ID of the organization.
- prefix string
- Prefix of the service account key.
- service
Account stringId - 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_ strat - 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_ strid - 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.
- expires
At String - The expiration time of the service account key in RFC3339 format. Defaults to an empty string.
- last
Used StringAt - Last time the service account key was used.
- name String
- Name of the service account key.
- organization
Id String - ID of the organization.
- prefix String
- Prefix of the service account key.
- service
Account StringId - 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
castaiTerraform Provider.
