Skip to content

Latest commit

 

History

History
239 lines (159 loc) · 10.9 KB

ServiceAccountApi.md

File metadata and controls

239 lines (159 loc) · 10.9 KB

{{classname}}

All URIs are relative to https://app.harness.io/gateway

Method HTTP request Description
CreateServiceAccount Post /ng/api/serviceaccount Creates a Service Account
DeleteServiceAccount Delete /ng/api/serviceaccount/{identifier} Deletes Service Account by ID
GetAggregatedServiceAccount Get /ng/api/serviceaccount/aggregate/{identifier} Get the Service Account by accountIdentifier and Service Account ID and Scope.
ListAggregatedServiceAccounts Get /ng/api/serviceaccount/aggregate Fetches the list of Aggregated Service Accounts corresponding to the request's filter criteria.
ListServiceAccount Get /ng/api/serviceaccount Fetches the list of Service Accounts corresponding to the request's filter criteria.
UpdateServiceAccount Put /ng/api/serviceaccount/{identifier} Updates the Service Account.

CreateServiceAccount

ResponseDtoServiceAccountDto CreateServiceAccount(ctx, body, accountIdentifier, optional) Creates a Service Account

Required Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
body ServiceAccountDto Details required to create Service Account
accountIdentifier string Account Identifier for the Entity
optional *ServiceAccountApiCreateServiceAccountOpts optional parameters nil if no parameters

Optional Parameters

Optional parameters are passed through a pointer to a ServiceAccountApiCreateServiceAccountOpts struct

Name Type Description Notes

orgIdentifier | optional.| Organization Identifier for the Entity | projectIdentifier | optional.| Project Identifier for the Entity |

Return type

ResponseDtoServiceAccountDto

Authorization

ApiKey

HTTP request headers

  • Content-Type: application/json, application/yaml, text/plain
  • Accept: application/json, application/yaml, text/plain

[Back to top] [Back to API list] [Back to Model list] [Back to README]

DeleteServiceAccount

ResponseDtoBoolean DeleteServiceAccount(ctx, accountIdentifier, identifier, optional) Deletes Service Account by ID

Required Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
accountIdentifier string Account Identifier for the Entity
identifier string Service Account ID
optional *ServiceAccountApiDeleteServiceAccountOpts optional parameters nil if no parameters

Optional Parameters

Optional parameters are passed through a pointer to a ServiceAccountApiDeleteServiceAccountOpts struct

Name Type Description Notes

orgIdentifier | optional.String| Organization Identifier for the Entity | projectIdentifier | optional.String| Project Identifier for the Entity |

Return type

ResponseDtoBoolean

Authorization

ApiKey

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json, application/yaml, text/plain

[Back to top] [Back to API list] [Back to Model list] [Back to README]

GetAggregatedServiceAccount

ResponseDtoServiceAccountAggregateDto GetAggregatedServiceAccount(ctx, accountIdentifier, identifier, optional) Get the Service Account by accountIdentifier and Service Account ID and Scope.

Required Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
accountIdentifier string Account Identifier for the Entity
identifier string Service Account IDr
optional *ServiceAccountApiGetAggregatedServiceAccountOpts optional parameters nil if no parameters

Optional Parameters

Optional parameters are passed through a pointer to a ServiceAccountApiGetAggregatedServiceAccountOpts struct

Name Type Description Notes

orgIdentifier | optional.String| Organization Identifier for the Entity | projectIdentifier | optional.String| Project Identifier for the Entity |

Return type

ResponseDtoServiceAccountAggregateDto

Authorization

ApiKey

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json, application/yaml, text/plain

[Back to top] [Back to API list] [Back to Model list] [Back to README]

ListAggregatedServiceAccounts

ResponseDtoPageResponseServiceAccountAggregateDto ListAggregatedServiceAccounts(ctx, accountIdentifier, optional) Fetches the list of Aggregated Service Accounts corresponding to the request's filter criteria.

Required Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
accountIdentifier string Account Identifier for the Entity
optional *ServiceAccountApiListAggregatedServiceAccountsOpts optional parameters nil if no parameters

Optional Parameters

Optional parameters are passed through a pointer to a ServiceAccountApiListAggregatedServiceAccountsOpts struct

Name Type Description Notes

orgIdentifier | optional.String| Organization Identifier for the Entity | projectIdentifier | optional.String| Project Identifier for the Entity | identifiers | optional.Interface of []string| This is the list of Service Account IDs. Details specific to these IDs would be fetched. | pageIndex | optional.Int32| Indicates the number of pages. Results for these pages will be retrieved. | [default to 0] pageSize | optional.Int32| The number of the elements to fetch | [default to 50] sortOrders | optional.Interface of []SortOrder| Sort criteria for the elements. | searchTerm | optional.String| This would be used to filter Service Accounts. Any Service Account having the specified string in its Name, ID and Tag would be filtered. |

Return type

ResponseDtoPageResponseServiceAccountAggregateDto

Authorization

ApiKey

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json, application/yaml, text/plain

[Back to top] [Back to API list] [Back to Model list] [Back to README]

ListServiceAccount

ResponseDtoListServiceAccountDto ListServiceAccount(ctx, accountIdentifier, optional) Fetches the list of Service Accounts corresponding to the request's filter criteria.

Required Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
accountIdentifier string Account Identifier for the Entity
optional *ServiceAccountApiListServiceAccountOpts optional parameters nil if no parameters

Optional Parameters

Optional parameters are passed through a pointer to a ServiceAccountApiListServiceAccountOpts struct

Name Type Description Notes

orgIdentifier | optional.String| Organization Identifier for the Entity | projectIdentifier | optional.String| Project Identifier for the Entity | identifiers | optional.Interface of []string| This is the list of Service Account IDs. Details specific to these IDs would be fetched. |

Return type

ResponseDtoListServiceAccountDto

Authorization

ApiKey

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json, application/yaml, text/plain

[Back to top] [Back to API list] [Back to Model list] [Back to README]

UpdateServiceAccount

ResponseDtoServiceAccountDto UpdateServiceAccount(ctx, body, accountIdentifier, identifier, optional) Updates the Service Account.

Required Parameters

Name Type Description Notes
ctx context.Context context for authentication, logging, cancellation, deadlines, tracing, etc.
body ServiceAccountDto Details of the updated Service Account
accountIdentifier string Account Identifier for the Entity
identifier string Service Account ID
optional *ServiceAccountApiUpdateServiceAccountOpts optional parameters nil if no parameters

Optional Parameters

Optional parameters are passed through a pointer to a ServiceAccountApiUpdateServiceAccountOpts struct

Name Type Description Notes

orgIdentifier | optional.| Organization Identifier for the Entity | projectIdentifier | optional.| Project Identifier for the Entity |

Return type

ResponseDtoServiceAccountDto

Authorization

ApiKey

HTTP request headers

  • Content-Type: application/json, application/yaml, text/plain
  • Accept: application/json, application/yaml, text/plain

[Back to top] [Back to API list] [Back to Model list] [Back to README]