DevOpsAgentService / Client / list_services
list_services¶
- DevOpsAgentService.Client.list_services(**kwargs)¶
List a list of registered service on the account level.
See also: AWS API Documentation
Request Syntax
response = client.list_services( maxResults=123, nextToken='string', filterServiceType='github'|'slack'|'azure'|'azuredevops'|'dynatrace'|'servicenow'|'pagerduty'|'gitlab'|'eventChannel'|'mcpservernewrelic'|'mcpservergrafana'|'mcpserverdatadog'|'mcpserver'|'mcpserversplunk'|'azureidentity' )
- Parameters:
maxResults (integer) – Maximum number of results to return in a single call.
nextToken (string) – Token for the next page of results.
filterServiceType (string) – Optional filter to list only services of a specific type.
- Return type:
dict
- Returns:
Response Syntax
{ 'nextToken': 'string', 'services': [ { 'serviceId': 'string', 'serviceType': 'github'|'slack'|'azure'|'azuredevops'|'dynatrace'|'servicenow'|'pagerduty'|'gitlab'|'eventChannel'|'mcpservernewrelic'|'mcpservergrafana'|'mcpserverdatadog'|'mcpserver'|'mcpserversplunk'|'azureidentity', 'name': 'string', 'accessibleResources': [ {...}|[...]|123|123.4|'string'|True|None, ], 'additionalServiceDetails': { 'github': { 'owner': 'string', 'ownerType': 'organization'|'user', 'targetUrl': 'string' }, 'slack': { 'teamId': 'string', 'teamName': 'string' }, 'mcpserverdatadog': { 'name': 'string', 'endpoint': 'string', 'authorizationMethod': 'oauth-client-credentials'|'oauth-3lo'|'api-key'|'bearer-token', 'description': 'string', 'apiKeyHeader': 'string' }, 'mcpserver': { 'name': 'string', 'endpoint': 'string', 'authorizationMethod': 'oauth-client-credentials'|'oauth-3lo'|'api-key'|'bearer-token', 'description': 'string', 'apiKeyHeader': 'string' }, 'servicenow': { 'instanceUrl': 'string' }, 'gitlab': { 'targetUrl': 'string', 'tokenType': 'personal'|'group', 'groupId': 'string' }, 'mcpserversplunk': { 'name': 'string', 'endpoint': 'string', 'authorizationMethod': 'oauth-client-credentials'|'oauth-3lo'|'api-key'|'bearer-token', 'description': 'string', 'apiKeyHeader': 'string' }, 'mcpservernewrelic': { 'accountId': 'string', 'region': 'US'|'EU', 'description': 'string' }, 'azuredevops': { 'organizationName': 'string' }, 'azureidentity': { 'tenantId': 'string', 'clientId': 'string', 'webIdentityRoleArn': 'string', 'webIdentityTokenAudiences': [ 'string', ] }, 'mcpservergrafana': { 'endpoint': 'string', 'authorizationMethod': 'oauth-client-credentials'|'oauth-3lo'|'api-key'|'bearer-token' }, 'pagerduty': { 'scopes': [ 'string', ] } }, 'kmsKeyArn': 'string', 'privateConnectionName': 'string' }, ] }
Response Structure
(dict) –
Output containing a list of registered services and pagination token.
nextToken (string) –
Token to retrieve the next page of results, if there are more results.
services (list) –
List of registered services.
(dict) –
Represents a registered service with its configuration and accessible resources.
serviceId (string) –
The unique identifier of a service.
serviceType (string) –
The service type e.g github or dynatrace
name (string) –
The display name of the registered service.
accessibleResources (list) –
List of accessible resources for this service.
(document) –
additionalServiceDetails (dict) –
Additional details specific to the service type.
Note
This is a Tagged Union structure. Only one of the following top level keys will be set:
github,slack,mcpserverdatadog,mcpserver,servicenow,gitlab,mcpserversplunk,mcpservernewrelic,azuredevops,azureidentity,mcpservergrafana,pagerduty. If a client receives an unknown member it will setSDK_UNKNOWN_MEMBERas the top level key, which maps to the name or tag of the unknown member. The structure ofSDK_UNKNOWN_MEMBERis as follows:'SDK_UNKNOWN_MEMBER': {'name': 'UnknownMemberName'}
github (dict) –
GitHub-specific service details.
owner (string) –
The GitHub repository owner name.
ownerType (string) –
The GitHub repository owner type.
targetUrl (string) –
The GitHub Enterprise Server instance URL (absent for github.com).
slack (dict) –
Slack-specific service details.
teamId (string) –
The Slack team ID.
teamName (string) –
The Slack team name.
mcpserverdatadog (dict) –
Datadog MCP server-specific service details.
name (string) –
The MCP server name.
endpoint (string) –
The MCP server endpoint URL.
authorizationMethod (string) –
The MCP server uses this authorization method.
description (string) –
Optional description for the MCP server.
apiKeyHeader (string) –
If the MCP server uses API key authentication, these details are provided.
mcpserver (dict) –
MCP server-specific service details.
name (string) –
The MCP server name.
endpoint (string) –
The MCP server endpoint URL.
authorizationMethod (string) –
The MCP server uses this authorization method.
description (string) –
Optional description for the MCP server.
apiKeyHeader (string) –
If the MCP server uses API key authentication, these details are provided.
servicenow (dict) –
ServiceNow-specific service details.
instanceUrl (string) –
The ServiceNow instance url
gitlab (dict) –
GitLab-specific service details.
targetUrl (string) –
The GitLab instance URL.
tokenType (string) –
Type of GitLab access token
groupId (string) –
Optional GitLab group ID for group-level access tokens
mcpserversplunk (dict) –
Splunk MCP server-specific service details.
name (string) –
The MCP server name.
endpoint (string) –
The MCP server endpoint URL.
authorizationMethod (string) –
The MCP server uses this authorization method.
description (string) –
Optional description for the MCP server.
apiKeyHeader (string) –
If the MCP server uses API key authentication, these details are provided.
mcpservernewrelic (dict) –
New Relic MCP server-specific service details.
accountId (string) –
The NewRelic account ID.
region (string) –
The NewRelic region (determines API endpoint).
description (string) –
Optional user description.
azuredevops (dict) –
Azure DevOps specific service details.
organizationName (string) –
The Azure DevOps Organization name associated with the service.
azureidentity (dict) –
Azure identity details for services using Azure authentication.
tenantId (string) –
The Azure Active Directory tenant ID for the identity.
clientId (string) –
The client ID of the service principal or managed identity used for authentication.
webIdentityRoleArn (string) –
The role ARN to be assumed by DevOps Agent for requesting Web Identity Token.
webIdentityTokenAudiences (list) –
The audiences for the Web Identity Token.
(string) –
mcpservergrafana (dict) –
Grafana MCP server-specific service details.
endpoint (string) –
Grafana instance URL (e.g., https://your-instance.grafana.net)
authorizationMethod (string) –
The authz method used by the MCP server.
pagerduty (dict) –
Pagerduty service details.
scopes (list) –
The scopes that were assigned to the service
(string) –
kmsKeyArn (string) –
The ARN of the AWS Key Management Service (AWS KMS) customer managed key that’s used to encrypt resources.
privateConnectionName (string) –
The name of the private connection used for VPC connectivity.
Exceptions
DevOpsAgentService.Client.exceptions.ValidationExceptionDevOpsAgentService.Client.exceptions.ContentSizeExceededExceptionDevOpsAgentService.Client.exceptions.ServiceQuotaExceededExceptionDevOpsAgentService.Client.exceptions.ConflictExceptionDevOpsAgentService.Client.exceptions.InternalServerExceptionDevOpsAgentService.Client.exceptions.AccessDeniedExceptionDevOpsAgentService.Client.exceptions.ThrottlingExceptionDevOpsAgentService.Client.exceptions.ResourceNotFoundExceptionDevOpsAgentService.Client.exceptions.InvalidParameterException