No Results
Get Credentials by Domain

EdgeCore version: 4.3.0

Method

GET /public/domains/{domainName}/credentials

Used to retrieve credentials by a specific domain.

Parameters

Name Type Description Mandatory
domainName
string Domain for which you want to retrieve the credentials Yes

 

cURL example

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

Example Response

{
    "newcred": {
        "domainId": "s3pvsu-k636f3lq69pj",
        "domainName": "edge",
        "doClass": "DomainSecVarValueDO",
        "id": "s3pvsu-k636f3lq8ftm",
        "varName": "newcred",
        "value": {
            "doClass": "CredentialSetDO",
            "isParameter": false,
            "credentials": [
                {
                    "doClass": "CredentialPairDO",
                    "key": "Username",
                    "value": {
                        "doClass": "SpStringValueDO",
                        "isParameter": false,
                        "primitiveValue": "Batman"
                    },
                    "hidden": false,
                    "required": false
                },
                {
                    "doClass": "CredentialPairDO",
                    "key": "Domain",
                    "value": {
                        "doClass": "SpStringValueDO",
                        "isParameter": false,
                        "primitiveValue": "Gotham"
                    },
                    "hidden": false,
                    "required": false
                },
                {
                    "doClass": "CredentialPairDO",
                    "key": "Password",
                    "value": {
                        "doClass": "SpEncryptedStringValueDO",
                        "isParameter": false,
                        "plainValue": "UNUSED",
                        "encryptedValue": "#default!Kd8dJEwD5T4UGe4spUR47CMRkcUsJHh96syEw7rEGHLOcZ2oOxV0c4LGVzVLIG4c"
                    },
                    "hidden": true,
                    "required": false
                }
            ]
        },
        "inheritedValue": null,
        "inheritedValueScope": null
    },
    "credtest": {
        "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.

Terms | Privacy