Profiles Service
The configuration profiles feature is in an alpha state, we will be making breaking changes to its API in release 1.12. Please contact Tetrate if you have any questions or concerns.
Profiles
The Profiles service exposes methods to manage the profiles that exist in TSB.
CreateProfile
GetProfile
UpdateProfile
ListProfiles
ListAvailableProfiles
DeleteProfile
Blame
ImpactAnalysis
BlameRequest
Request to gather profile blame data for a given resource.
Field | Description | Validation Rule |
---|---|---|
fqn | string | string = { |
BlameResponse
Blame data for a given resource. Example:
effectiveProfileConfig:
trafficSettings:
reachability:
mode: GROUP
resilience:
circuitBreakerSensitivity: MEDIUM
authenticationSettings:
trafficMode: REQUIRED
effectiveProfilePaths:
authenticationSettings: organizations/my-org/profiles/profile1
authenticationSettings.trafficMode: organizations/my-org/profiles/profile1
trafficSettings: organizations/my-org/tenants/my-tenant/workspaces/ws/trafficgroups/tg/profiles/profile2
trafficSettings.reachability: organizations/my-org/tenants/my-tenant/workspaces/ws/trafficgroups/tg/profiles/profile2
trafficSettings.reachability.mode: organizations/my-org/tenants/my-tenant/workspaces/ws/trafficgroups/tg/profiles/profile2
trafficSettings.resilience: organizations/my-org/tenants/my-tenant/workspaces/ws/trafficgroups/tg/profiles/profile2
trafficSettings.resilience.circuitBreakerSensitivity: organizations/my-org/tenants/my-tenant/workspaces/ws/trafficgroups/tg/profiles/profile2
effectiveProfileMandatedPaths:
- authenticationSettings
- authenticationSettings.trafficMode
Field | Description | Validation Rule |
---|---|---|
effectiveProfileConfig | tetrateio.api.tsb.profile.v2.ProfileConfig | – |
effectiveProfilePaths | map<string, string> | – |
effectiveProfileMandatedPaths | List of string | – |
effectiveProfileAttachmentPaths | map<string, string> | – |
CreateProfileRequest
Request to create a profile belonging to a given resource.
Field | Description | Validation Rule |
---|---|---|
parent | string | string = { |
name | string | string = { |
profile | tetrateio.api.tsb.profile.v2.Profile | message = { |
DeleteProfileRequest
Request to delete a specific profile belonging to a given resource.
Field | Description | Validation Rule |
---|---|---|
fqn | string | string = { |
force | bool | – |
ExistingProfile
ExistingProfile represents a request to analyze the impact of an existing profile.
Field | Description | Validation Rule |
---|---|---|
fqn | string | string = { |
ExistingResource
ExistingResource represents a request to analyze the impact of the attached profiles of a resource.
Field | Description | Validation Rule |
---|---|---|
fqn | string | string = { |
GetProfileRequest
Request to retrieve a profile belonging to a given resource.
Field | Description | Validation Rule |
---|---|---|
fqn | string | string = { |
Impact
Impact represents a single impact on a field. It specifies how a profile affects a field and the type of the impact (e.g., effective or overridden).
Field | Description | Validation Rule |
---|---|---|
fieldPath | string | – |
type | tetrateio.api.tsb.profile.v2.Impact.ImpactType | – |
ImpactAnalysis
ImpactAnalysis represents the impact of a profile on a resource.
Field | Description | Validation Rule |
---|---|---|
effectiveImpactsCount | int32 | – |
overriddenImpactsCount | int32 | – |
impacts | List of tetrateio.api.tsb.profile.v2.Impact | – |
ImpactAnalysisRequest
ImpactAnalysisRequest is used to request the analysis of different types of impacts on profiles or resources. Only one of the fields should be set at a time, as the request can only analyze one type of impact per request. This ensures clarity in the request scope.
Field | Description | Validation Rule |
---|---|---|
existingProfile | tetrateio.api.tsb.profile.v2.ExistingProfile | – |
modifyProfile | tetrateio.api.tsb.profile.v2.ModifyProfile | – |
existingResource | tetrateio.api.tsb.profile.v2.ExistingResource | – |
modifyAttachedProfiles | tetrateio.api.tsb.profile.v2.ModifyAttachedProfiles | – |
fieldPaths | List of string | – |
ImpactAnalysisResponse
ImpactAnalysisResponse represents the response to the ImpactAnalysisRequest. It contains detailed information about the impacts of the analyzed profiles.
Field | Description | Validation Rule |
---|---|---|
fqn | string | – |
current | tetrateio.api.tsb.profile.v2.ImpactAnalysis | – |
modified | tetrateio.api.tsb.profile.v2.ImpactAnalysis | – |
ListAvailableProfilesRequest
Request to list available profiles that can be attached to a given resource.
Field | Description | Validation Rule |
---|---|---|
fqn | string | string = { |
ListAvailableProfilesResponse
List of profiles that can be attached to a given resource.
Field | Description | Validation Rule |
---|---|---|
profiles | List of tetrateio.api.tsb.profile.v2.Profile | – |
ListProfilesRequest
Request to list profiles belonging to a given resource.
Field | Description | Validation Rule |
---|---|---|
parent | string | string = { |
ListProfilesResponse
List of profiles belonging to a given resource.
Field | Description | Validation Rule |
---|---|---|
profiles | List of tetrateio.api.tsb.profile.v2.Profile | – |
ModifyAttachedProfiles
ModifyAttachedProfiles represents a request to analyze the impact of modifying the attached profiles of a resource.
Field | Description | Validation Rule |
---|---|---|
fqn | string | string = { |
profiles | List of string | – |
ModifyProfile
ModifyProfile represents a request to analyze the impact of modifying a profile.
Field | Description | Validation Rule |
---|---|---|
fqn | string | string = { |
profile | tetrateio.api.tsb.profile.v2.Profile | – |
ImpactType
Enum representing the different types of impact a profile can have on a field.
Field | Number | Description |
---|---|---|
UNKNOWN | 0 | The impact type is unknown or unspecified. |
EFFECTIVE | 1 | The profile is effective on the field, meaning the profile directly sets the field's value. |
OVERRIDE | 2 | The field's value is overridden by another profile or configuration, but was previously set by the profile being analyzed. |