addCredentials

Adds new credentials to a connector to enable integration with an external service.

Examples

mutation AddCredentials($addCredentialsInput: AddCredentialsInput!) {
  addCredentials(addCredentialsInput: $addCredentialsInput) {
    connector {
      id
      name
      displayName
      description
      hostURL
      iconURL
      family
      credentialsType
      credentialsTypes
      brokerSupportCredentialsTypes
      disabledMultiCredentialsTypes
      credentials {
        ... on UserPasswordOnlyCredentials {
          name
          password
          credentialsId
          credentialsName
          tokenExpirationDate
          credentialsType
          isCertChecksDisabled
          hostURL
          iv
          brokerUsername
          brokerPassword
          brokerEnabled
          brokerHost
          brokerPort
        }
      }
      isConfigured
      isResourceAvailable
      ffKeyResourceAvailable
      resourceOptions {
        resourceName
        hideMonitorNewResourcesCheckbox
        showSettingsPerResource
      }
      resources {
        type
      }
      isOxBuiltIn
      isOpenSource
      openSourceWebsiteUrl
      openSourceLicense
      openSourceAuthor
      defaultEnabled
      comingSoon
      isDemoEnabled
      aliasFor
      identityProviderInfo {
        baseURL
        urlParams
        scope
        configText
        user_scope
      }
      gitHubAppInfo {
        baseURL
        urlPath
        configText
      }
      bitbucketAppInfo {
        baseURL
        queryParameters
        configText
      }
      awsCloudFormationInfo {
        baseURL
        urlParams
      }
      awsCloudFormationOrganizationInfo {
        baseURL
        urlParams
      }
      connectionInstructions {
        type
        title
        details
        linksToDocs {
          href
          title
        }
        permissions
      }
      isDiscovered
      isEmptyOfRepos
      isDevelopment
      connectorExplanation
      optionalInputFields {
        name
        credsTypes
        inputType
        key
        ffKey
        value
      }
      conditionalOptionalTabs {
        tabTitle
        tabInputs {
          inputType
          inputTitle
          inputName
        }
      }
      dependsOn
      externalLink
      textExternalLink
      ffKey
      beta
      supportedDisabledCertChecksTypes
      enableMultiCredentials
    }
  }
}

Variables

This is an example input showing all available input fields. Only fields marked as required in the schema are mandatory.

{
  "addCredentialsInput": {
    "connectorID": "2",
    "hostURL": "example",
    "credentialsType": "UserPassword",
    "credentialsInput": {
      "name": "SomeName",
      "password": "example",
      "token": "example",
      "clientId": "example",
      "secretKey": "example",
      "awsRoleArn": "example",
      "awsExternalId": "example",
      "awsAccessKey": "example",
      "awsAccessSecret": "example",
      "tenant": "example",
      "idpToken": {
        "access_token": "example",
        "token_type": "example",
        "expires_in": 42,
        "created_at": 42,
        "refresh_token": "example",
        "scope": "example"
      },
      "projectId": "example",
      "installationId": 42,
      "installationToken": {
        "token": "example",
        "createdAt": "example",
        "expiresAt": "example"
      },
      "apiAccessKey": "example",
      "apiSecretKey": "example",
      "clientSecret": "example",
      "subscriptionId": "example",
      "tenantId": "example",
      "organizationId": "example",
      "apiKey": "example",
      "optionalFields": {
        "SSHKey": "example",
        "RepoSearchQuery": "example",
        "Config": "example",
        "buildIssueToCloud": true
      },
      "extraOptionalCreds": {
        "atlassian": {
          "organizationId": "example",
          "apiKey": "example"
        }
      },
      "apiUrl": "example",
      "appId": "30966426",
      "gitPassword": "example",
      "gitUsername": "example",
      "webhookUrl": "example",
      "hostURL": "example",
      "brokerUsername": "example",
      "brokerPassword": "example",
      "brokerSSHPublicKey": "example",
      "brokerEnabled": true,
      "isCertChecksDisabled": true
    },
    "credentialsName": "example",
    "isCertChecksDisabled": true
  }
}

Arguments

You can use the following argument(s) to customize your addCredentials mutation.

Argument
Description
Supported fields

addCredentialsInput AddCredentialsInput! required

Input containing the connector ID, credentials type, and authentication details

connectorID String! hostURL String credentialsType CredentialsType! credentialsInput CredentialsInput! credentialsName String isCertChecksDisabled Boolean

Fields

Return type: ConnectorResponse

You can use the following field(s) to specify what information your addCredentials mutation will return. Please note that some fields may have their own subfields.

Field
Description
Supported fields

connector Connector

Connector object

id String name String displayName String description String hostURL String iconURL String family String credentialsType CredentialsType credentialsTypes [CredentialsType] brokerSupportCredentialsTypes [CredentialsType] disabledMultiCredentialsTypes [CredentialsType] credentials [Credential] isConfigured Boolean isResourceAvailable Boolean ffKeyResourceAvailable String resourceOptions ResourceOptions resources [ResourceItem] isOxBuiltIn Boolean isOpenSource Boolean openSourceWebsiteUrl String openSourceLicense String openSourceAuthor String defaultEnabled Boolean comingSoon Boolean isDemoEnabled Boolean aliasFor String identityProviderInfo IdentityProviderInfo gitHubAppInfo GitHubAppInfo bitbucketAppInfo BitbucketAppInfo awsCloudFormationInfo AWSCloudFormationInfo awsCloudFormationOrganizationInfo AWSCloudFormationInfo connectionInstructions [ConnectionInstructions] isDiscovered Boolean isEmptyOfRepos Boolean isDevelopment Boolean connectorExplanation String optionalInputFields [OptionalConnectorInput] conditionalOptionalTabs [ConditionalOptionalTabs] dependsOn String externalLink String textExternalLink String ffKey String beta Boolean supportedDisabledCertChecksTypes [String] enableMultiCredentials Boolean

Last updated