Get Source by ID

Prev Next
Get
/api/1.0/paa-groups/{envId}/{paaGroupId}/sources/{sourceId}

This API call is designed to retrieve one Source of a PAA Group, with its translator, models and the connection properties of each PAA. The stored Password of each PAA is not returned (see PaaConnectionProperties).

Notice

Accessing the API call is through a dedicated domain/URL, according to your PlainID Tenant Location
  • United States (US) - `https://api.us1.plainid.io`
  • Canada (CA) - `https://api.ca1.plainid.io`
  • Europe (EU) - `https://api.eu1.plainid.io`

  • Using HTML Encoded Special Characters

    Use HTML encoded patterns when working with values that contain special characters like spaces, dashes, etc. Refer to this HTML URL Encoding Reference for a full list.


    Important note about headers

    Refer to the headers below to modify your cURL sample. Check if the following headers are in the sample, if not, ensure you add it to your cURL sample before pasting into your API tool.

    Headers

    *Required
    Header Value cURL Line
    Accept `application/json` `-H "Accept:application/json"`

    cURL Sample Guidelines

    In order for the relevant parameters to appear in the cURL sample, you can input the values in the interactive API console on the right. They will then appear in the cURL sample on the bottom of the page in the correct format.

    Security
    HTTP
    Type bearer

    For more details about Administration API Authentication, check out the Authentication APIs documentation
    Provide your bearer token in the Authorization header when making requests to protected resources.
    Example: Authorization: Bearer 123

    Path parameters
    envId
    stringRequired

    The Environment ID (a UUID). You can find it in the Details tab of the Environment Settings. If your PAA is installed on the Tenant level, use - as the envId.

    Example2d4a0591-dfe4-45fb-8a69-d183f5c75c0d
    paaGroupId
    stringRequired

    The PAA Group ID, as the List PAA Groups API returns it in id.

    Examplepaa1
    sourceId
    stringRequired

    The Source ID.

    Pattern^PIPS[0-9A-Z]{11,13}$
    ExamplePIPS4BRPBO81AVPC
    Responses
    200

    Source Retrieved

    Headers
    x-request-id
    string
    The ID of the request. Give it to PlainID Support when you report a problem.
    Source Retrieved Successfully
    {
      "data": {
        "sourceId": "PIPS44BQJIJ2X3WG",
        "paaGroupId": "paa1",
        "adapter": "ws",
        "name": "auditadmin",
        "status": "ACTIVE",
        "description": "",
        "properties": {},
        "translator": {
          "name": "plainid-rest-tqK",
          "type": "plainid-rest",
          "properties": {
            "authConf": "/app/conf/auth-config.xml",
            "securityDomain": "oauth2-plainid-m-api",
            "supportsfilter": "true"
          }
        },
        "models": [
          {
            "type": "PHYSICAL",
            "modelId": "PIPMM44BQJIKBVA4G",
            "paaGroupId": "paa1",
            "visible": true,
            "name": "AdminAuditData",
            "description": "",
            "sourceIds": [
              "PIPS44BQJIJ2X3WG"
            ],
            "properties": {},
            "metadata": [
              {
                "type": "DDL",
                "text": "CREATE FOREIGN TABLE AdminAuditData (\nid string,\naction string,\nusreId string,\nresourceType string,\nresourceId string,\nresourceName string,\noff_set integer default 0\n) OPTIONS (nameinsource '$.data[*]', \"plainid:unwrap\" 'false' , \"plainid:method\" 'GET', \"plainid:URI\" '593f15f6-665e-4645-8293-35e41013c610?offset=0&limit=50');"
              }
            ]
          }
        ],
        "paasProperties": [
          {
            "id": "PIMR44BQJIYJSGZK",
            "sourceId": "PIPS44BQJIJ2X3WG",
            "paaId": "PAA3QK1UON1BOXS",
            "properties": {
              "EndPoint": "https://api.us1.plainid.io/api/1.0/audit-admin/",
              "Password": null,
              "SecurityType": "None"
            }
          }
        ]
      }
    }
    Expand All
    object
    data
    object (PaaSource)
    sourceId
    string

    The Source ID.

    Pattern^PIPS[0-9A-Z]{11,13}$
    ExamplePIPS4BRPBO81AVPC
    paaGroupId
    string

    The PAA Group ID.

    Examplepaa1
    adapter
    string

    The adapter (connection type) of the Source, for example jdbc or ws. The API sets it from translator.type (see PaaSourceTranslator).

    name
    string

    The Source name. It is unique in the PAA Group.

    status
    string

    The status of the Source. The API sets it; it ignores this value in requests. A Source that you create or update with the API has the status ACTIVE.

    Valid values[ "ACTIVE", "SUSPENDED", "FAILED" ]
    description
    string

    The Source description.

    properties
    object (PaaSourceProperties)

    Source-level connection properties. The keys depend on the adapter of the Source, and the adapter depends on translator.type (see PaaSourceTranslator). The values are strings, numbers or booleans. Keys that are specific to one PAA go in paasProperties[].properties.

    AnyOf
    PaaSourcePropertiesJdbc
    object (PaaSourcePropertiesJdbc)
    DriverClassName
    string
    Min length2
    Max length1024
    ConnectionInitSqls
    string
    Max length1024
    ConnectionProperties
    string
    Max length1024
    DefaultReadOnly
    boolean
    InitialSize
    number
    Default2
    DefaultSchema
    string
    Max length1024
    MaxTotal
    number
    MaxIdle
    number
    Default10
    MaxConnLifetimeMillis
    number
    MaxOpenPreparedStatements
    number
    Default100
    MinIdle
    number
    Default5
    PoolPreparedStatements
    boolean
    ValidationQuery
    string
    Max length1024
    Default"SELECT 1"
    IsTransactional
    boolean
    Defaultfalse
    SocketProcessIdPort
    string
    Default"0"
    SocketProcessIdMaxPorts
    number
    Default10
    EnableStatistics
    boolean
    Defaultfalse
    DefaultTimeout
    number
    Default300
    TransactionStatusManagerEnable
    boolean
    Defaultfalse
    TxReaperTimeout
    number
    Default120000
    PaaSourcePropertiesLdap
    object (PaaSourcePropertiesLdap)
    LdapContextFactory
    string
    Max length1024
    LdapTxnTimeoutInMillis
    number
    PaaSourcePropertiesMongodb
    object (PaaSourcePropertiesMongodb)
    AuthDatabase
    string
    Max length2048
    SecurityType
    string
    Valid values[ "None", "SCRAM_SHA_1", "SCRAM_SHA_256", "MONGODB_CR", "Kerberos", "X509" ]
    Default"SCRAM_SHA_1"
    Ssl
    boolean
    Defaultfalse
    PaaSourcePropertiesSalesforce
    object (PaaSourcePropertiesSalesforce)
    ConfigProperties
    string
    Max length4096
    ConnectTimeout
    number
    RequestTimeout
    number
    PaaSourcePropertiesWs
    object (PaaSourcePropertiesWs)
    ConfigFile
    string
    Max length1024
    ConfigName
    string
    Max length1024
    AuthConf
    string
    Max length1024
    ServiceName
    string
    Max length1024
    NamespaceUri
    string
    Max length1024
    RequestTimeout
    number
    ConnectTimeout
    number
    Wsdl
    string
    Max length1024
    PaaSourcePropertiesPlainidMongodb
    object (PaaSourcePropertiesPlainidMongodb)
    AuthDatabase
    string
    Max length2048
    SecurityType
    string
    Valid values[ "None", "SCRAM_SHA_1", "SCRAM_SHA_256", "MONGODB_CR", "Kerberos", "X509" ]
    Default"SCRAM_SHA_1"
    Ssl
    boolean
    Defaultfalse
    translator
    object (PaaSourceTranslator)

    The Teiid translator of the Source. type selects the data source type and the adapter (the connection type) of the Source. The adapter sets the keys of properties and of paasProperties[].properties:

    typeData sourceAdapter
    jdbc-simpleSimple JDBCjdbc
    mysqlMySQLjdbc
    postgresqlPostgreSQLjdbc
    sqlserverMicrosoft SQL Serverjdbc
    oracleOraclejdbc
    db2IBM DB2jdbc
    sybaseSybasejdbc
    ldapLDAPldap
    mongodbMongoDBmongodb
    plainid-mongodbMongoDB (new)plainid-mongodb
    salesforce-41Salesforce (API 41.0)salesforce
    odata4OData v4.0ws
    plainid-restRESTws
    plainid-scimSCIMws
    plainid-azureAzure Active Directoryws
    type
    string

    The translator type. The API compares it without case sensitivity. An unknown value gives 404.

    Valid values[ "jdbc-simple", "mysql", "postgresql", "sqlserver", "oracle", "db2", "sybase", "ldap", "mongodb", "plainid-mongodb", "salesforce-41", "odata4", "plainid-rest", "plainid-scim", "plainid-azure" ]
    Exampleplainid-rest
    name
    string

    The name of the translator instance. When name is empty or omitted, the API uses the value of type. When you also send properties, the API makes a unique name in the form <type>-<3 letters>, for example plainid-rest-iRo.

    Exampleplainid-rest-iRo
    properties
    object

    Translator override properties (Teiid translator settings), for example supportsfilter. All values are strings.

    Example{ "supportsfilter": "true" }
    property*
    string additionalProperties
    models
    Array of object (PaaSourceModel)
    object
    type
    string

    The model type. The models of a Source are PHYSICAL.

    Valid values[ "PHYSICAL", "VIRTUAL" ]
    modelId
    string

    The model ID.

    Pattern^PIPM[0-9A-Z]{11,13}$
    ExamplePIPMM4BRPBO9U88OW
    paaGroupId
    string

    The PAA Group ID.

    visible
    boolean

    When false, clients cannot query the model directly. Views can still use it.

    name
    string

    The model name (the schema name in the PAA).

    description
    string

    The model description.

    sourceIds
    Array of string

    The ID of the Source of the model.

    string
    properties
    object

    Model properties. The values are strings, numbers or booleans.

    metadata
    Array of object (PaaModelMetadata)

    The model definition, usually one DDL item with the CREATE FOREIGN TABLE statements.

    object
    type
    string

    The Teiid metadata type of text. Use DDL (Teiid DDL, for example CREATE FOREIGN TABLE or CREATE VIEW).

    Valid values[ "DDL", "NATIVE", "DDL-FILE", "UDF" ]
    Default"DDL"
    paaId
    string

    The PAA that this metadata applies to. Omit it for metadata that applies to all of the PAAs in the group.

    Pattern^PAA[0-9A-Z]{11,13}$
    text
    string

    The metadata text, for example a Teiid DDL statement.

    Max length1000000
    paasProperties
    Array of object (PaaSourcePaaProperties)

    The connection properties for each PAA of the Source.

    object
    id
    string

    The ID of this set of PAA connection properties.

    ExamplePIMR4BRPBOE7JUGW
    sourceId
    string

    The Source ID.

    paaId
    string

    The PAA ID.

    ExamplePAA3QK1UON1BOXS
    properties
    object (PaaConnectionProperties)

    Connection properties for one PAA. The keys depend on the adapter of the Source, and the adapter depends on translator.type (see PaaSourceTranslator). The values are strings, numbers or booleans.

    Password: responses return null for a stored password, except for a secret reference in the form [NAME] or {{NAME}}, which the API returns as is. On update, send null (or omit the key) to keep the stored password of that PAA.

    AnyOf
    PaaConnectionPropertiesJdbc
    object (PaaConnectionPropertiesJdbc)
    Url
    string (uri)
    Min length2
    Max length1024
    Username
    string
    Max length1024
    Password
    string (password)
    Max length1024
    AuthConf
    string
    Max length1024
    SecurityDomain
    string
    Max length1024
    PaaConnectionPropertiesLdap
    object (PaaConnectionPropertiesLdap)
    LdapUrl
    string (uri)
    Min length2
    LdapAdminUserDN
    string
    Max length1024
    LdapAdminUserPassword
    string (password)
    Max length1024
    LdapAuthType
    string
    Max length1024
    PaaConnectionPropertiesMongodb
    object (PaaConnectionPropertiesMongodb)
    RemoteServerList
    string
    Min length2
    Max length2048
    Database
    string
    Max length1024
    Username
    string
    Max length1024
    Password
    string (password)
    Max length1024
    PaaConnectionPropertiesSalesforce
    object (PaaConnectionPropertiesSalesforce)
    URL
    string (uri)
    Max length4096
    Username
    string
    Max length1024
    Password
    string (password)
    Max length1024
    ProxyURL
    string (uri)
    Max length1024
    ProxyUsername
    string
    Max length1024
    ProxyPassword
    string (password)
    Max length1024
    PaaConnectionPropertiesWs
    object (PaaConnectionPropertiesWs)
    EndPoint
    string
    Max length1024
    SecurityType
    string
    Valid values[ "None", "HTTPBasic", "Digest", "WSSecurity", "Kerberos", "OAuth" ]
    Default"None"
    AuthUserName
    string
    Max length1024
    AuthPassword
    string (password)
    Max length4096
    SecurityDomain
    string
    Max length1024
    EndPointName
    string
    Max length1024
    PaaConnectionPropertiesPlainidMongodb
    object (PaaConnectionPropertiesPlainidMongodb)
    RemoteServerList
    string
    Min length2
    Max length2048
    Database
    string
    Max length1024
    Username
    string
    Max length1024
    Password
    string (password)
    Max length1024
    400

    Bad Request. The request is not valid, or the PAAs could not deploy the change.

    Headers
    x-request-id
    string
    The ID of the request. Give it to PlainID Support when you report a problem.
    Source name already exists
    {
      "errors": [
        {
          "code": "PIP-019",
          "id": "EQ7CMX",
          "status": 400,
          "name": "BaseError",
          "message": "Source with name mockrest already exists"
        }
      ]
    }
    Body sourceId on create
    {
      "errors": [
        {
          "code": "",
          "id": "EQ7CMX",
          "status": 400,
          "name": "BadRequestError",
          "message": "sourceId must be null"
        }
      ]
    }
    PAA not in the PAA Group
    {
      "errors": [
        {
          "code": "",
          "id": "EQ7CMX",
          "status": 400,
          "name": "BaseError",
          "message": "paaId: PAA3QK1UON1BOXS is not belong to paaGroupId: PAG1WMX530NXUKG"
        }
      ]
    }
    Views count mismatch
    {
      "errors": [
        {
          "code": "",
          "id": "EQ7CMX",
          "status": 400,
          "name": "BadRequestError",
          "message": "Metadata count mismatch"
        }
      ]
    }
    Expand All
    object
    errors
    Array of object (Error)
    object
    code
    string
    id
    string
    status
    integer
    name
    string
    message
    string
    args
    object
    path
    string
    401

    The bearer token or the Client ID and Client Secret are missing or not valid.

    Headers
    WWW-Authenticate
    string
    InvalidToken

    Missing or invalid bearer token

    {
      "message": "Invalid or missing authentication token"
    }
    object

    The error returned by AuthZen endpoints, with a single message describing what went wrong. AuthZen endpoints use this format instead of the errors array returned by other Runtime APIs.

    message
    string

    The error message

    ExampleMissing mandatory field: resource
    403

    Forbidden. The access token does not have the permission for this operation on the Environment (or on the Tenant, when envId is -).

    Headers
    x-request-id
    string
    The ID of the request. Give it to PlainID Support when you report a problem.
    Expand All
    object
    errors
    Array of object (Error)
    object
    code
    string
    id
    string
    status
    integer
    name
    string
    message
    string
    args
    object
    path
    string
    404

    Not Found. The Environment, the PAA Group, the Source, the Views or the translator type does not exist.

    Headers
    x-request-id
    string
    The ID of the request. Give it to PlainID Support when you report a problem.
    PAA Group not found
    {
      "errors": [
        {
          "code": "HBC-021",
          "id": "EQ7CMX",
          "status": 404,
          "name": "PaaGroupNotFoundError",
          "message": "PAA Group does not exist"
        }
      ]
    }
    Environment not found
    {
      "errors": [
        {
          "code": "APIV-022",
          "id": "EQ7CMX",
          "status": 404,
          "name": "EnvironmentNotExistError",
          "message": "Environment ID: [not-a-uuid] does not exist"
        }
      ]
    }
    Source not found
    {
      "errors": [
        {
          "code": "",
          "id": "EQ7CMX",
          "status": 404,
          "name": "NotFoundError",
          "message": "source not found"
        }
      ]
    }
    Expand All
    object
    errors
    Array of object (Error)
    object
    code
    string
    id
    string
    status
    integer
    name
    string
    message
    string
    args
    object
    path
    string
    500

    An internal error occurred, or a dependency such as the cache or an Identity Source failed while processing the request.

    CacheUnavailable

    Cache unavailable

    {
      "message": "Unable to connect to Redis cache service"
    }
    IdentitySourceUnavailable

    Identity Source unavailable

    {
      "message": "PIP unreachable"
    }
    InternalError

    Internal error

    {
      "message": "Internal error while evaluating the request"
    }
    object

    The error returned by AuthZen endpoints, with a single message describing what went wrong. AuthZen endpoints use this format instead of the errors array returned by other Runtime APIs.

    message
    string

    The error message

    ExampleMissing mandatory field: resource

    © 2024 PlainID LTD. All rights reserved.