# WorkloadIdentities Object

> Source: https://truto.one/docs/api-reference/unified-cloud-infrastructure-api/workloadidentities/

Schema for the `WorkloadIdentities` resource in **Unified Cloud Infrastructure API**.

## Properties

- **`id`** _(string, required)_
  Truto's stable unified identifier for this object. Opaque; use provider_id to address the object in the provider's own console or API.
- **`provider_id`** _(string)_
  The provider's own identifier, verbatim -- a full ARN, resource id, or self-link. Never truncated or normalised. Use it to find the object in the provider's console.
- **`provider`** _(string)_
  Which cloud this object was read from.
  Allowed: `aws`, `azure`, `gcp`
- **`account`** _(string)_
  The account, subscription or project this object belongs to.
- **`region`** _(string)_
  Where the object is located. 'global' marks resources with no region (e.g. IAM, a GCP VPC network). If the provider gives none, the collector's queried region is used instead and flagged in unreadable_fields.
- **`native_type`** _(string)_
  The provider's own type string, unmodified -- for example 'AWS::S3::Bucket', 'aws_iam_role', 'Microsoft.Sql/servers'. Used for display and drill-down.
- **`tags`** _(object)_
  Key-value pairs exactly as the customer set them -- no case folding, key/value normalisation, or merging across providers. An empty object means no tags; unreadable tags appear in unreadable_fields instead.
- **`collected_at`** _(string)_
  When Truto read this object from the provider, in UTC ISO 8601 with offset. Not the request time, and not a provider-supplied timestamp.
- **`updated_at`** _(string)_
  When the object was last modified at the provider, in UTC ISO 8601. Null when the provider does not record one - see unreadable_fields.
- **`unreadable_fields`** _(array<object>)_
  Fields on this object that could not be read, and why. An empty array means everything was read. Use this to tell a real value from a missing one.
  - **`field`** _(string)_
    The property on this resource that could not be read.
  - **`reason`** _(string)_
    Why the field could not be read. available_on_get: Not read on list to keep the list fast; call GET for this resource's id to get it.
    Allowed: `not_supported_by_provider`, `not_configured`, `permission_denied`, `not_collected`, `collection_error`, `partially_collected`, `available_on_get`
  - **`detail`** _(string)_
    Additional detail on the reason, when there is any.
- **`remote_data`** _(object)_
  Raw data returned from the remote API call.
- **`identity_id`** _(string)_
  The provider's own identifier for the workload identity.
- **`name`** _(string)_
  The identity name as the provider names it.
- **`identity_type`** _(string)_
  Role, managed identity, service principal or service account.
  Allowed: `role`, `managed_identity`, `service_principal`, `service_account`, `other`
- **`trusted_external_principals`** _(array<string>)_
  External accounts, services and federated issuers allowed to assume this identity, as provider principal strings.
- **`trust_policy_document`** _(string)_
  The raw trust or assume-role policy document, verbatim.
- **`has_unconditional_wildcard_trust`** _(boolean)_
  Whether the identity can be assumed by a bare wildcard principal with no condition -- wide open. Derived.
- **`federated_credentials`** _(array<object>)_
  Federated access configuration assembled from the trust policy.
  - **`issuer`** _(string)_
    The federated identity provider, without its URL scheme.
  - **`audience`** _(array<string>)_
    Audience values the trust policy accepts.
  - **`has_subject_condition`** _(boolean)_
    Whether the trust is also scoped by subject.
- **`has_subject_condition`** _(boolean)_
  Whether a subject condition is present on the federated trust. Absence matters: a trust with no subject condition lets any subject from that issuer assume the identity -- e.g. any GitHub repository for a GitHub Actions provider.
- **`permissions`** _(array<object>)_
  The permission definitions attached to this identity.
  - **`id`** _(string)_
    The target's `id`.
- **`inline_permission_count`** _(integer)_
  How many inline permission documents are attached directly.
- **`last_used_at`** _(string)_
  When the identity was last used. On AWS the tracking window is about 400 days, so a null does not mean unused -- report as unknown, not dormant.
- **`last_used_region`** _(string)_
  Where the identity was last used, where the provider exposes it.
- **`has_static_keys`** _(boolean)_
  Whether the machine identity holds long-lived keys. Always false for AWS IAM roles, which have no long-term credentials -- a provider fact, not a data gap.
- **`key_count`** _(integer)_
  How many long-lived keys the identity holds. Always 0 for AWS IAM roles.
- **`created_at`** _(string)_
  When the identity was created.

## Methods

- [GET /unified/cloud-infrastructure/workload_identities](/docs/api-reference/unified-cloud-infrastructure-api/workloadidentities/list) — List Workload identities
