Search for preferred credentials
post
https://EM_HOST:EM_CONSOLE_HTTPS_PORT/em/api/namedCredentials/actions/searchPreferredCredential
Searches for matching preferred credentials based on the filters provided in the request payload.
Request
Query Parameters
-
includeTotal: boolean
whether total number of results shall be returned.Example:
true
-
limit: integer
Minimum Value:
1
Maximum Value:2000
Number of Preferred credentials to be fetchedDefault Value:20
Example:20
-
page: string
system generated page token used in the self, next and previous links.
-
sort: string
the order of the result set with direction. Allowed sort fields are targetName, setName, targetTypeName, isDefault, isGlobal, isCredSetConfigured. Allowed directions are ASC and DESC. To sort more than one field, provide comma separated values like field1:direction1,field2:direction2Example:
type:ASC,name:DESC
Supported Media Types
- application/json
Root Schema : schema
Type:
object
Schema object to hold preferred credential search payload
Show Source
-
isDefault: boolean
true when preferred credential is target type level. false when it is target instance levelExample:
false
-
isGlobal: boolean
Default Value:
false
true when preferred credential is global scope. false when it is User scope.Example:true
-
setName: array
setName
credential set name
-
setNameContains: array
setNameContains
Preferred credential set name pattern to be filtered. Case sensitive.
-
targetName: array
targetName
target name of preferred credential
-
targetNameContains: array
targetNameContains
target name of the preferred credential to be filtered
-
targetTypeName(required): array
targetTypeName
targetType of preferred credential
Nested Schema : setName
Type:
array
credential set name
Show Source
-
Array of:
string
Example:
[ "CREDSET1", "CREDSET2" ]
Nested Schema : setNameContains
Type:
array
Preferred credential set name pattern to be filtered. Case sensitive.
Show Source
-
Array of:
string
Example:
[ "set1", "set2" ]
Nested Schema : targetName
Type:
array
target name of preferred credential
Show Source
-
Array of:
string
Example:
[ "www.myhost.com1", "www.myhost.com2" ]
Nested Schema : targetNameContains
Type:
array
target name of the preferred credential to be filtered
Show Source
-
Array of:
string
Example:
[ "myhostname1", "myhostname2" ]
Nested Schema : targetTypeName
Type:
array
targetType of preferred credential
Show Source
-
Array of:
string
Example:
[ "host1", "host2" ]
Examples
Back to Top
Response
Supported Media Types
- application/json
200 Response
List of preferred credentials returned successfully
Root Schema : PreferredCredentialCollection
Type:
object
This is the representation of list of preferred credentials.
Show Source
-
count(required): integer
the number of Preferred credentials in this pageExample:
20
-
items(required): array
items
the Preferred credentials list
-
links(required): object
links
Read Only:
true
the result set navigation links -
total: integer
Total number of items that are available (for all the pages)Example:
101
Nested Schema : items
Type:
array
the Preferred credentials list
Show Source
-
Array of:
object PreferredCredential
Schema object to hold Preferred Credential data returned from the search action
Nested Schema : PreferredCredential
Type:
object
Schema object to hold Preferred Credential data returned from the search action
Show Source
-
credGuid: string
Unique identifier for a named credentialExample:
B0FBBE587FD201E2E0537013790A7D03
-
isCredSetConfigured: boolean
true when preferred credential is configured for given case and link to NC is available. when effective value is there and not configured set as false but NC link is available. If no Preferred set at all then false and no link to NC.Example:
false
-
links: object
links
Read Only:
true
the credential name and target links associated to the preferred credentials -
targetTypeGuid: string
Unique identifier for target typeExample:
DD395385F69A25570431A719EEA45030
Match All
Show Source
-
object
PreferredCredentialCommon
Common schema object to hold Preferred Credential data
Nested Schema : links
Type:
object
Read Only:
true
the credential name and target links associated to the preferred credentials
Show Source
Nested Schema : PreferredCredentialCommon
Type:
object
Common schema object to hold Preferred Credential data
Show Source
-
isDefault(required): boolean
true when preferred credential is target type level. false when it is target instance levelExample:
false
-
isGlobal(required): boolean
true when preferred credential is global scope. false when it is User scope.Example:
true
-
setName(required): string
Name for a credential setExample:
HostCredsNormal
-
targetGuid: string
Target instance id of a preferred credential.Example:
A3CDDE587FD221E2F3539013290B7F05
-
targetName: string
Target instance name for which named credential is authenticated toExample:
host.us.oracle.com
-
targetTypeName: string
Name of the target typeExample:
host
Nested Schema : Link
Type:
object
Represents a link(could be self, previous or next)
Show Source
-
href: string
URL for LinkExample:
/em/api/<resources>?page=b2Zmc2V0OjA&limit=0