Get Cloudinary Configuration Record by ID
1 min
GET
https://api.upstartcommerce.com/v1/tenants/cfg/cloudinary/{recordId}
Path Parameters
- recordIdstringrequiredDescription
Header Parameters
- x-upstart-tenantstringrequiredDescription
Responses
200
- CfgRecordExample
{ "tenant": "acme001", "domain": "acme-retail", "recordId": "cloudinary-main", "templateId": "cloudinary", "siteIds": [ "us-west-store", "us-east-store" ], "tags": [ "production", "media-storage" ], "name": "Cloudinary Production Configuration", "data": { "cloudName": "acme-retail", "apiKey": "abc123456789", "apiSecret": "***hidden***", "uploadPreset": "product-images", "secureDistribution": true }, "enabled": true, "version": 3, "accessControl": { "read": true, "modify": false }, "audit": { "by": "[email protected]", "byId": "user-12345", "byAnonymous": false, "at": "2024-01-15T10:30:00Z", "traceId": "550e8400-e29b-41d4-a716-446655440000", "serviceName": "tenant-svc", "serviceVersion": "1.2.3" } }Description- tenantstringExampleDescription
- domainstringrequiredExampleDescription
- recordIdstringrequiredExampleDescription
- templateIdstringrequiredExampleDescription
- siteIdsstring[]Example
[ "site-us-west", "site-us-east" ]
Description - tagsstring[]Example
[ "production", "payment-gateway", "us-region" ]
Description - namestringrequiredExampleDescription
- dataobjectrequiredExample
{ "merchantId": "acme_us", "apiKey": "sk_live_...", "apiUrl": "https://api.cybersource.com", "currency": "USD" }Description - enabledbooleanrequiredExampleDescription
- versioninteger<int32>requiredExampleDescriptionFormatint32
- accessControlCfgAccessControlrequiredDescription
- readbooleanrequiredExampleDescription
- modifybooleanrequiredDescription
- auditAuditrequiredDescription
- byIdstringDescription
- bystringrequiredDescription
- byAnonymousbooleanrequiredDescription
- atstring<date-time>requiredExampleDescriptionFormatdate-time
- traceIdstringrequiredExampleDescription
- serviceNamestringrequiredExampleDescription
- serviceVersionstringrequiredExampleDescription
- byDomainstringExampleDescription
- bySubjectTypestringExampleDescription
400
- ValidationErrorResponseExample
{ "name": "ValidationError", "code": "INVALID_EMAIL_FORMAT", "detail": "The email field must be a valid email address. Received: \"invalid-email\"" }Description- namestringrequiredExampleDescription
- codestringrequiredExampleDescription
- detailstringExampleDescription
401
- UnauthorizedErrorExample
{ "name": "AuthorizationError", "code": "INSUFFICIENT_PERMISSIONS", "detail": "User does not have the required tenant.create permission to perform this operation.", "reason": "Your access token does not include the necessary permissions. Contact your administrator to request access." }Description- namestringrequiredDescription
- codestringrequiredDescription
- detailstringDescription
- reasonstringDescription
404
- NotFoundErrorExample
{ "name": "ResourceNotFoundError", "code": "TENANT_NOT_FOUND", "detail": "The tenant with ID \"acme001\" was not found in the system.", "reason": "The tenant may have been deleted or you may not have permission to access it. Verify the tenant ID and your access rights." }Description- namestringrequiredDescription
- codestringrequiredDescription
- detailstringDescription
- reasonstringDescription
500
- InternalServerErrorExample
{ "name": "InternalServerError", "code": "UNEXPECTED_ERROR", "detail": "An unexpected error occurred while processing your request.", "reason": "Our team has been notified. Please try again, and if the problem persists, contact support with trace ID: 550e8400-e29b-41d4-a716-446655440000" }Description- namestringrequiredDescription
- codestringrequiredDescription
- detailstringDescription
- reasonstringDescription
503
- ServiceUnavailableErrorExample
{ "name": "Service Unavailable", "code": "UNKNOWN", "detail": "Permission resolution is unavailable, please retry", "reason": "A dependency required to authorize this request is temporarily unreachable. Please retry shortly." }Description- namestringrequiredDescription
- codestringrequiredDescription
- detailstringDescription
- reasonstringDescription
curl
curl --request GET \
--url https://api.upstartcommerce.com/v1/tenants/cfg/cloudinary/{recordId} \
--header 'accept: application/json' \
--header 'x-upstart-tenant: string'javascript
var myHeaders = new Headers();
myHeaders.append("accept", "application/json");
myHeaders.append("content-type", "application/json");
myHeaders.append("x-upstart-tenant", "string");
var requestOptions = {
method: 'GET',
headers: myHeaders,
redirect: 'follow'
};
fetch("https://api.upstartcommerce.com/v1/tenants/cfg/cloudinary/{recordId}", requestOptions)
.then(response => response.text())
.then(result => console.log(result))
.catch(error => console.log('error', error));ruby
require "uri"
require "json"
require "net/http"
url = URI("https://api.upstartcommerce.com/v1/tenants/cfg/cloudinary/{recordId}")
https = Net::HTTP.new(url.host, url.port)
https.use_ssl = true
request = Net::HTTP::Get.new(url)
request["accept"] = "application/json"
request["content-type"] = "application/json"
request["x-upstart-tenant"] = "string"
response = https.request(request)
puts response.read_body
python
import requests
import json
url = "https://api.upstartcommerce.com/v1/tenants/cfg/cloudinary/{recordId}"
payload = {}
headers = {
'accept': 'application/json',
'content-type': 'application/json',
'x-upstart-tenant': 'string'
}
response = requests.request("GET", url, headers=headers, data=payload)
print(response.text)
200
// Success-record returned.
{
"tenant": "acme-retail",
"domain": "acme",
"recordId": "cfg-rec-550e8400-e29b-41d4-a716-446655440000",
"templateId": "cybersource-payment",
"siteIds": [
""
],
"tags": [
""
],
"name": "Cybersource US Production Credentials",
"data": {},
"enabled": true,
"version": 5,
"accessControl": {
"read": true,
"modify": false
},
"audit": {
"byId": "",
"by": "",
"byAnonymous": false,
"at": "2024-01-15T10:30:00Z",
"traceId": "550e8400-e29b-41d4-a716-446655440000",
"serviceName": "tenant-svc",
"serviceVersion": "1.2.3",
"byDomain": "example-store",
"bySubjectType": "USER"
}
}400
// The request contained information that the server was unable to process. Appropriate errors are provided in the response body.
{
"name": "ValidationError",
"code": "INVALID_EMAIL_FORMAT",
"detail": "The email field must be a valid email address. Received: \"invalid-email\""
}401
// The provided credentials were not valid for this endpoint. It may be that they are expired or that the user's roles are insufficient.
{
"name": "",
"code": "",
"detail": "",
"reason": ""
}404
// The requested resource was not found in the NoChannel system.
{
"name": "",
"code": "",
"detail": "",
"reason": ""
}500
// An unexpected internal server error occurred. The request may be retried, and if the problem persists, contact support with the traceId from the error response.
{
"name": "",
"code": "",
"detail": "",
"reason": ""
}503
// A downstream dependency was unavailable, so the request could not be authorized or completed. The request may be retried.
{
"name": "",
"code": "",
"detail": "",
"reason": ""
}