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

castai.ServiceAccount

Get Started
castai logo
CAST AI v7.73.2 published on Wednesday, Oct 29, 2025 by CAST AI

    Create ServiceAccount Resource

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

    Constructor syntax

    new ServiceAccount(name: string, args: ServiceAccountArgs, opts?: CustomResourceOptions);
    @overload
    def ServiceAccount(resource_name: str,
                       args: ServiceAccountArgs,
                       opts: Optional[ResourceOptions] = None)
    
    @overload
    def ServiceAccount(resource_name: str,
                       opts: Optional[ResourceOptions] = None,
                       organization_id: Optional[str] = None,
                       description: Optional[str] = None,
                       name: Optional[str] = None)
    func NewServiceAccount(ctx *Context, name string, args ServiceAccountArgs, opts ...ResourceOption) (*ServiceAccount, error)
    public ServiceAccount(string name, ServiceAccountArgs args, CustomResourceOptions? opts = null)
    public ServiceAccount(String name, ServiceAccountArgs args)
    public ServiceAccount(String name, ServiceAccountArgs args, CustomResourceOptions options)
    
    type: castai:organization:ServiceAccount
    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 ServiceAccountArgs
    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 ServiceAccountArgs
    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 ServiceAccountArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args ServiceAccountArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args ServiceAccountArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    ServiceAccount 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 ServiceAccount resource accepts the following input properties:

    OrganizationId string
    ID of the organization.
    Description string
    Description of the service account.
    Name string
    Name of the service account.
    OrganizationId string
    ID of the organization.
    Description string
    Description of the service account.
    Name string
    Name of the service account.
    organizationId String
    ID of the organization.
    description String
    Description of the service account.
    name String
    Name of the service account.
    organizationId string
    ID of the organization.
    description string
    Description of the service account.
    name string
    Name of the service account.
    organization_id str
    ID of the organization.
    description str
    Description of the service account.
    name str
    Name of the service account.
    organizationId String
    ID of the organization.
    description String
    Description of the service account.
    name String
    Name of the service account.

    Outputs

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

    Authors List<Pulumi.CastAI.Organization.Outputs.ServiceAccountAuthor>
    Author of the service account.
    Email string
    Email of the service account.
    Id string
    The provider-assigned unique ID for this managed resource.
    Authors ServiceAccountAuthor
    Author of the service account.
    Email string
    Email of the service account.
    Id string
    The provider-assigned unique ID for this managed resource.
    authors List<ServiceAccountAuthor>
    Author of the service account.
    email String
    Email of the service account.
    id String
    The provider-assigned unique ID for this managed resource.
    authors organizationServiceAccountAuthor[]
    Author of the service account.
    email string
    Email of the service account.
    id string
    The provider-assigned unique ID for this managed resource.
    authors Sequence[organization.ServiceAccountAuthor]
    Author of the service account.
    email str
    Email of the service account.
    id str
    The provider-assigned unique ID for this managed resource.
    authors List<Property Map>
    Author of the service account.
    email String
    Email of the service account.
    id String
    The provider-assigned unique ID for this managed resource.

    Look up Existing ServiceAccount Resource

    Get an existing ServiceAccount 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?: ServiceAccountState, opts?: CustomResourceOptions): ServiceAccount
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            authors: Optional[Sequence[_organization.ServiceAccountAuthorArgs]] = None,
            description: Optional[str] = None,
            email: Optional[str] = None,
            name: Optional[str] = None,
            organization_id: Optional[str] = None) -> ServiceAccount
    func GetServiceAccount(ctx *Context, name string, id IDInput, state *ServiceAccountState, opts ...ResourceOption) (*ServiceAccount, error)
    public static ServiceAccount Get(string name, Input<string> id, ServiceAccountState? state, CustomResourceOptions? opts = null)
    public static ServiceAccount get(String name, Output<String> id, ServiceAccountState state, CustomResourceOptions options)
    resources:  _:    type: castai:organization:ServiceAccount    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:
    Authors List<Pulumi.CastAI.Organization.Inputs.ServiceAccountAuthor>
    Author of the service account.
    Description string
    Description of the service account.
    Email string
    Email of the service account.
    Name string
    Name of the service account.
    OrganizationId string
    ID of the organization.
    Authors ServiceAccountAuthorArgs
    Author of the service account.
    Description string
    Description of the service account.
    Email string
    Email of the service account.
    Name string
    Name of the service account.
    OrganizationId string
    ID of the organization.
    authors List<ServiceAccountAuthor>
    Author of the service account.
    description String
    Description of the service account.
    email String
    Email of the service account.
    name String
    Name of the service account.
    organizationId String
    ID of the organization.
    authors organizationServiceAccountAuthor[]
    Author of the service account.
    description string
    Description of the service account.
    email string
    Email of the service account.
    name string
    Name of the service account.
    organizationId string
    ID of the organization.
    authors Sequence[organization.ServiceAccountAuthorArgs]
    Author of the service account.
    description str
    Description of the service account.
    email str
    Email of the service account.
    name str
    Name of the service account.
    organization_id str
    ID of the organization.
    authors List<Property Map>
    Author of the service account.
    description String
    Description of the service account.
    email String
    Email of the service account.
    name String
    Name of the service account.
    organizationId String
    ID of the organization.

    Supporting Types

    ServiceAccountAuthor, ServiceAccountAuthorArgs

    Email string
    Id string
    Kind string
    Email string
    Id string
    Kind string
    email String
    id String
    kind String
    email string
    id string
    kind string
    email str
    id str
    kind str
    email String
    id String
    kind String

    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