No Results
Get Credential by Domain & Name

EdgeCore version: 4.3.0

Method

GET /public/domains/{domainName}/credentials/{credentialName}

Used to retrieve a particular credential by its name and by a specific domain.

Parameters

Name Type Description Mandatory
domainName
string Domain for which you want to retrieve the credential Yes
credentialName
string Name of the credential you want to retrieve Yes

 

cURL example

curl --location --request GET 'http://localhost:8080/public/domains/edge/credentials/credtest' \
--header 'edgeApiKey: YWRtaW5AZGVmYXVsdHx3IDNHe2tMZTYhMkZkO3J3cipDaSZUdio5' 

Example Response

{
    "domainId": "s3pvsu-k636f3lq69pj",
    "domainName": "edge",
    "doClass": "DomainSecVarValueDO",
    "id": "s3pvsu-k636f3lq8ftu",
    "varName": "credtest",
    "value": {
        "doClass": "CredentialSetDO",
        "isParameter": false,
        "credentials": [
            {
                "doClass": "CredentialPairDO",
                "key": "Username",
                "value": {
                    "doClass": "SpStringValueDO",
                    "isParameter": false,
                    "primitiveValue": "admin"
                },
                "hidden": false,
                "required": false
            },
            {
                "doClass": "CredentialPairDO",
                "key": "Password",
                "value": {
                    "doClass": "SpEncryptedStringValueDO",
                    "isParameter": false,
                    "plainValue": "UNUSED",
                    "encryptedValue": "#default!CDfFGqe0pBGj2Mw9S0UbjSpJAoGql6HBgAwmV8jKjTGmExw7HKEn5U4Kt7IorxD7"
                },
                "hidden": true,
                "required": false
            }
        ]
    },
    "inheritedValue": {
        "doClass": "CredentialSetDO",
        "isParameter": false,
        "credentials": [
            {
                "doClass": "CredentialPairDO",
                "key": "Username",
                "value": {
                    "doClass": "SpStringValueDO",
                    "isParameter": false,
                    "primitiveValue": "admin"
                },
                "hidden": false,
                "required": false
            },
            {
                "doClass": "CredentialPairDO",
                "key": "Password",
                "value": {
                    "doClass": "SpEncryptedStringValueDO",
                    "isParameter": false,
                    "plainValue": "UNUSED",
                    "encryptedValue": "#default!b2TGdqtLcLcH+oQYVuFCR91mTEmyPd1NGO0URaoDgjd3nYVB59mjJc9TIrEFFg7i"
                },
                "hidden": true,
                "required": false
            }
        ]
    },
    "inheritedValueScope": "DEFAULT"
}

HTTP Response

Code Status Description
200 OK The request has succeeded.
404 Not Found The domain could not be found.

Or

The credential could not be found.


Terms | Privacy