Credential store providers can be accessed and modified through this API using four services: GET, POST, PUT, and PATCH. These four services allow for the retrieval, creation, complete update, and partial update of credential store providers.
There are two implementations of GET. One will find a credential store provider with the given Id and return the JSON representation of the credential store provider. The other will find a list of credential store providers matching the parameters supplied to it.
This GET service will find a credential store provider with the given Id and return the JSON representation of the object.
http://host:port/flexdeploy/rest/v2/administration/security/credentialstoreprovider/{Id} |
Parameter | Type | Required | Description |
---|---|---|---|
Id | URL | Yes | This is a URL parameter for the Id which is used to find and return a credential store provider |
HTTP Code | Description |
---|---|
200 | Credential store provider was found and returned |
400 | Bad request |
401 | Authentication failure |
403 | Authorization failure (no access to resource) |
404 | Credential store provider not found |
500 | Unexpected internal server error |
If we had a credential store provider in our database with an Id of 10000 and had the following attributes
{ "description": "description of credential store provider", "implementationClass": "implementation class of credential store provider", "isActive": true, "isCustom": true, "credentialStoreInputDefs": [], "credentialStorePropDefs": [], "credentialStoreApiTextValue": null, "credentialStoreDefId": 10000, "credentialStoreDefName": "credential store provider name" } |
When we run a GET request at the following URL
http://host:port/flexdeploy/rest/v2/administration/security/credentialstoreprovider/10000
The GET request would return the following JSON credential store provider object
{ "description": "description of credential store provider", "implementationClass": "implementation class of credential store provider", "isActive": true, "isCustom": true, "credentialStoreInputDefs": [], "credentialStorePropDefs": [], "credentialStoreApiTextValue": null, "credentialStoreDefId": 10000, "credentialStoreDefName": "credential store provider name" } |
This GET service will return a list of credential store providers in the form of JSON objects based on the query parameters id, name, implementation class, is active, and is custom. Credential store providers are only returned if they match all of the specified query parameters. If no query parameters are given this request will return the entire list of credential store providers.
http://host:port/flexdeploy/rest/v2/administration/security/credentialstoreprovider? Append the following character sequences to the above URL to specify Query parameters.Use '&' between successive query parameters:credentialStoreProviderId={id} credentialStoreProviderName={name} implementationClass={implementationClass} isActive={boolean} isCustom={boolean} Examples:To search by name only:http://host:port/flexdeploy/rest/v2/administration/security/credentialstoreprovider?credentialStoreProviderName=ProviderName To search by NAME IS ACTIVE:http://host:port/flexdeploy/rest/v2/administration/security/credentialstoreprovider?credentialStoreProviderName=ProviderName&isActive=true |
Attributes | Type | Required | Description |
---|---|---|---|
credentialStoreProviderId | Query - Long | No | Equals search |
credentialStoreProviderName | Query - String | No | Contains ignore case search |
implementationClass | Query - String | No | Contains ignore case search |
isActive | Query - Boolean | No | Equals search |
isCustom | Query - Boolean | No | Equals search |
HTTP Code | Description |
---|---|
200 | Search successful and results returned |
400 | Bad request |
401 | Authentication failure |
403 | Authorization failure (no access to resource) |
500 | Unexpected internal server error |
If we had a credential store provider in our database with an Id of 10000 and had the following attributes
{ "description": "description of credential store provider", "implementationClass": "implementation class of credential store provider", "isActive": true, "isCustom": true, "credentialStoreInputDefs": [], "credentialStorePropDefs": [], "credentialStoreApiTextValue": null, "credentialStoreDefId": 10000, "credentialStoreDefName": "credential store provider name" } |
When we run a GET request at the following URL
http://host:port/flexdeploy/rest/v2/administration/security/credentialstoreprovider?credentialStoreProviderName=credential&isActive=true
The GET request would return the following JSON environment object
[ { "description": "description of credential store provider", "implementationClass": "implementation class of credential store provider", "isActive": true, "isCustom": true, "credentialStoreInputDefs": [], "credentialStorePropDefs": [], "credentialStoreApiTextValue": null, "credentialStoreDefId": 10000, "credentialStoreDefName": "credential store provider name" } ] |
This POST service will create a new credential store provider with the same attributes as the given JSON object.
http://host:port/flexdeploy/rest/v2/administration/security/credentialstoreprovider |
Attributes | Type | Required | Description |
---|---|---|---|
credentialStoreDefName | String | Yes | The name of the credential store provider |
description | String | No | The description of the credential store provider |
implementationClass | String | No | The implementation class of the credential store provider |
isActive | Boolean | Yes | Weather or not the credential store provider is active |
isCustom | Boolean | Yes | Weather or not the credential store provider is custom |
credentialStoreApiTextValue | String | No | Groovy API text associated with the credential store provider |
credentialStoreInputDefs | List<CredentialStoreInputDef> | No | The list of credential store input definitions associated with the credential store provider |
credentialStorePropDefs | List<CredentialStorePropDef> | No | The list of credential store property definitions associated with the credential store provider |
HTTP Code | Description |
---|---|
201 | Credential Store Provider was created |
400 | Bad request |
401 | Authentication failure |
403 | Authorization failure (no access to resource) |
500 | Unexpected internal server error |
If the POST request receives the following JSON credential store provider object,
{ "description": "description of credential store provider", "isActive": true, "isCustom": true, "credentialStoreInputDefs": [ { "inputName": "example_name_input", "inputDatatype": "Boolean", "isRequired": true, "isEncrypted": false, "isActive": true, "isMultiselect": true }], "credentialStorePropDefs": [ { "propertyName": "example_name_property", "propertyDatatype": "String", "isRequired": true, "isEncrypted": false, "isActive": true, "isMultiselect": true }], "credentialStoreApiTextValue": "//Groovy API Text", "credentialStoreDefName": "credential store provider name" } |
The following credential store provider object will then be created as a new row in the database.
{ "description": "description of credential store provider", "implementationClass": null, "isActive": true, "isCustom": true, "credentialStoreInputDefs": [ { "length": null, "defaultValue": null, "displayName": null, "description": null, "inputName": "EXAMPLE_NAME_INPUT", "maxValue": null, "isEncrypted": false, "minValue": null, "isActive": true, "isRequired": true, "sortNumber": null, "displayRows": null, "isMultiselect": true, "inputDatatype": "Boolean", "credentialStoreInputDefId": 11000, "displayColumns": null, "listData": null, "credentialStoreDefId": 10000 }], "credentialStorePropDefs": [ { "length": null, "defaultValue": null, "displayName": null, "description": null, "propertyName": "EXAMPLE_NAME_PROPERTY", "maxValue": null, "isEncrypted": false, "minValue": null, "isActive": true, "isRequired": true, "sortNumber": null, "displayRows": null, "isMultiselect": true, "propertyDatatype": "String", "credentialStorePropDefId": 11001, "displayColumns": null, "listData": null, "credentialStoreDefId": 10000 }], "credentialStoreApiTextValue": "//Groovy API Text", "credentialStoreDefId": 10000, "credentialStoreDefName": "credential store provider name" } |
If the POST request receives the following JSON credential store provider object,
{ "description": "description of credential store provider", "isActive": true, "isCustom": true, "credentialStoreDefName": "credential store provider name" } |
The following credential store provider object will then be created as a new row in the database.
{ { "description": "description of credential store provider", "implementationClass": null, "isActive": true, "isCustom": true, "credentialStoreInputDefs": [], "credentialStorePropDefs": [], "credentialStoreApiTextValue": null, "credentialStoreDefId": 10000, "credentialStoreDefName": "credential store provider name" } |
This PUT service will update all attributes of a credential store provider with the given Id based on the attributes of a JSON object parameters. Attributes that are not provided will become their default values.
http://host:port/flexdeploy/rest/v2/administration/security/credentialstoreprovider/{Id} |
Attributes | Type | Required | Description |
---|---|---|---|
Id | URL | Yes | The PUT will be performed on the credential store provider with the specified id that is found in the URL. |
credentialStoreDefName | String | Yes | The name of the credential store provider |
description | String | No | The description of the credential store provider |
implementationClass | String | No | The implementation class of the credential store provider |
isActive | Boolean | Yes | Weather or not the credential store provider is active |
isCustom | Boolean | Yes | Weather or not the credential store provider is custom |
credentialStoreApiTextValue | String | No | Groovy API text associated with the credential store provider |
credentialStoreInputDefs | List<CredentialStoreInputDef> | No | The list of credential store input definitions associated with the credential store provider |
credentialStorePropDefs | List<CredentialStorePropDef> | No | The list of credential store property definitions associated with the credential store provider |
HTTP Code | Description |
---|---|
200 | Credential store provider was found and updated |
400 | Bad request |
401 | Authentication failure |
403 | Authorization failure (no access to resource) |
404 | Credential store provider not found |
500 | Unexpected internal server error |
If we had a credential store provider in our database with an Id of 10000 and had the following attributes
{ "description": "description of credential store provider", "implementationClass": null, "isActive": true, "isCustom": true, "credentialStoreInputDefs": [ { "length": null, "defaultValue": null, "displayName": null, "description": null, "inputName": "EXAMPLE_NAME_INPUT", "maxValue": null, "isEncrypted": false, "minValue": null, "isActive": true, "isRequired": true, "sortNumber": null, "displayRows": null, "isMultiselect": true, "inputDatatype": "Boolean", "credentialStoreInputDefId": 11000, "displayColumns": null, "listData": null, "credentialStoreDefId": 10000 }], "credentialStorePropDefs": [ { "length": null, "defaultValue": null, "displayName": null, "description": null, "propertyName": "EXAMPLE_NAME_PROPERTY", "maxValue": null, "isEncrypted": false, "minValue": null, "isActive": true, "isRequired": true, "sortNumber": null, "displayRows": null, "isMultiselect": true, "propertyDatatype": "String", "credentialStorePropDefId": 11001, "displayColumns": null, "listData": null, "credentialStoreDefId": 10000 }], "credentialStoreApiTextValue": "null, "credentialStoreDefId": 10000, "credentialStoreDefName": "credential store provider name" } |
When we run a PUT request at the following URL
http://host:port/flexdeploy/rest/v2/administration/security/credentialstoreprovider/10000
And the PUT request receives the following JSON credential store provider object,
{ "isActive": true, "isCustom": false, "credentialStoreInputDefs": [ { "description": "description of credential store input definition", "inputName": "name_changed", "isEncrypted": false, "isActive": false, "isRequired": false, "isMultiselect": false, "inputDatatype": "Boolean", "credentialStoreInputDefId": 11000 }], "credentialStoreApiTextValue": "//Groovy API Text", "credentialStoreDefName": "credential store provider name updated" } |
The PUT request would then update the credential store provider with Id 10000 and return the following JSON credential store provider object
{ "description": null, "implementationClass": null, "isActive": true, "isCustom": false, "credentialStoreInputDefs": [ { "length": null, "defaultValue": null, "displayName": null, "description": "description of credential store input definition", "inputName": "NAME_CHANGED", "maxValue": null, "isEncrypted": false, "minValue": null, "isActive": false, "isRequired": false, "sortNumber": null, "displayRows": null, "isMultiselect": false, "inputDatatype": "Boolean", "credentialStoreInputDefId": 11000, "displayColumns": null, "listData": null, "credentialStoreDefId": 10000 }], "credentialStorePropDefs": [], "credentialStoreApiTextValue": "//Groovy API Text", "credentialStoreDefId": 10000, "credentialStoreDefName": "credential store provider name updated" } |
This PATCH service will update an existing credential store provider with the information passed through a JSON object. If an attribute of the JSON is null it will not be updated in the credential store provider. Child rows that are included in a PATCH will be added, but existing rows will still remain.
http://host:port/flexdeploy/rest/v2/administration/security/credentialstoreprovider/{Id} |
Attributes | Type | Required | Description |
---|---|---|---|
Id | URL | Yes | The PUT will be performed on the credential store provider with the specified id that is found in the URL. |
credentialStoreDefName | String | No | The name of the credential store provider |
description | String | No | The description of the credential store provider |
implementationClass | String | No | The implementation class of the credential store provider |
isActive | Boolean | No | Weather or not the credential store provider is active |
isCustom | Boolean | No | Weather or not the credential store provider is custom |
credentialStoreApiTextValue | String | No | Groovy API text associated with the credential store provider |
credentialStoreInputDefs | List<CredentialStoreInputDef> | No | The list of credential store input definitions associated with the credential store provider |
credentialStorePropDefs | List<CredentialStorePropDef> | No | The list of credential store property definitions associated with the credential store provider |
HTTP Code | Description |
---|---|
200 | Credential store provider was found and updated |
400 | Bad request |
401 | Authentication failure |
403 | Authorization failure (no access to resource) |
404 | Credential store provider not found |
500 | Unexpected internal server error |
If we had an credential store provider in our database with an Id of 10000 and had the following attributes
{ "description": "description of credential store provider", "implementationClass": null, "isActive": true, "isCustom": true, "credentialStoreInputDefs": [ { "length": null, "defaultValue": null, "displayName": null, "description": null, "inputName": "EXAMPLE_NAME_INPUT", "maxValue": null, "isEncrypted": false, "minValue": null, "isActive": true, "isRequired": true, "sortNumber": null, "displayRows": null, "isMultiselect": true, "inputDatatype": "Boolean", "credentialStoreInputDefId": 11000, "displayColumns": null, "listData": null, "credentialStoreDefId": 10000 }], "credentialStorePropDefs": [ { "length": null, "defaultValue": null, "displayName": null, "description": null, "propertyName": "EXAMPLE_NAME_PROPERTY", "maxValue": null, "isEncrypted": false, "minValue": null, "isActive": true, "isRequired": true, "sortNumber": null, "displayRows": null, "isMultiselect": true, "propertyDatatype": "String", "credentialStorePropDefId": 11001, "displayColumns": null, "listData": null, "credentialStoreDefId": 10000 }], "credentialStoreApiTextValue": "//Groovy API Text", "credentialStoreDefId": 10000, "credentialStoreDefName": "credential store provider name" } |
When we run a PATCH request at the following URL
http://host:port/flexdeploy/rest/v2/administration/security/credentialstoreprovider/10000
And the PATCH request receives the following JSON credential store provider object,
{ "isCustom": false, "credentialStoreInputDefs": [ { "description": "new credential store input definition", "inputName": "new_input", "isEncrypted": false, "isActive": true, "isRequired": true, "isMultiselect": true, "inputDatatype": "Boolean", }], "credentialStoreDefName": "credential store provider name updated" } |
The PATCH request would then update the credential store provider with Id 10000 and return the following JSON credential store provider object
{ "description": "description of credential store provider", "implementationClass": null, "isActive": true, "isCustom": false, "credentialStoreInputDefs": [ { "length": null, "defaultValue": null, "displayName": null, "description": null, "inputName": "EXAMPLE_NAME_INPUT", "maxValue": null, "isEncrypted": false, "minValue": null, "isActive": true, "isRequired": true, "sortNumber": null, "displayRows": null, "isMultiselect": true, "inputDatatype": "Boolean", "credentialStoreInputDefId": 11000, "displayColumns": null, "listData": null, "credentialStoreDefId": 10000 }, { "length": null, "defaultValue": null, "displayName": null, "description": new credential store input definition, "inputName": "NEW_INPUT", "maxValue": null, "isEncrypted": false, "minValue": null, "isActive": true, "isRequired": true, "sortNumber": null, "displayRows": null, "isMultiselect": true, "inputDatatype": "Boolean", "credentialStoreInputDefId": 11002, "displayColumns": null, "listData": null, "credentialStoreDefId": 10000 }], "credentialStorePropDefs": [ { "length": null, "defaultValue": null, "displayName": null, "description": null, "propertyName": "EXAMPLE_NAME_PROPERTY", "maxValue": null, "isEncrypted": false, "minValue": null, "isActive": true, "isRequired": true, "sortNumber": null, "displayRows": null, "isMultiselect": true, "propertyDatatype": "String", "credentialStorePropDefId": 11001, "displayColumns": null, "listData": null, "credentialStoreDefId": 10000 }], "credentialStoreApiTextValue": "//Groovy API Text", "credentialStoreDefId": 10000, "credentialStoreDefName": "credential store provider name updated" } |