HCP Tenant Management Help


JSON

In a JSON request or response body:

Properties are name/value pairs. For example, the name/value pair that corresponds to the softQuota property with a value of 85 is:

"softQuota":"85"

A list of resources is represented by a name/value pair, where the name is the name of the property used to identify each resource and the value is a comma-separated list of the resource identifiers. For example, the response body for a request to list the the namespaces owned by the Finance tenant might look like this:

{
    "name" : [ "Accounts-Payable", "Accounts-Receivable ]
}

Here’s a request for complete information about the Accounts-Receivable namespace to be returned in JSON format:

curl -k -i -H "Accept: application/json"
    -H "Authorization: bGdyZWVu:a3b9c163f6c520407ff34cfdb83ca5c6"
    "https://finance.hcp.example.com:9090/mapi/tenants/finance/namespaces/
        accounts-receivable?verbose=true&prettyprint"

Here’s the JSON response body you get when you make the request using a user account that includes the administrator role:

{
    "aclsUsage" : "ENFORCED",
    "authUsersAlwaysGrantedAllPermissions" : :true,
    "allowPermissionAndOwnershipChanges" : true,
    "appendEnabled" : false,
    "atimeSynchronizationEnabled" : false,
    "authMinimumPermissions" : {
        "permission" : [ "BROWSE", "READ", "WRITE" ]
    },
    "creationTime" : "2017-02-09T15:42:36-0500",
    "customMetadataIndexingEnabled" : true,
    "customMetadataValidationEnabled" : true,
    "description" : "Created for the Finance department at Example Company by Lee
        Green on 2/9/2017.",
    "dpl" : "Dynamic",
    "enterpriseMode" : true,
    "allowErasureCoding" : true,
    "fullyQualifiedName" : "Accounts-Receivable.Finance.hcp.example.com",
    "hardQuota" : "50 GB",
    "hashScheme" : "SHA-256",
    "indexingDefault" : true,
    "indexingEnabled" : true,
    "isDplDynamic" : true,
    "mqeIndexingTimestamp" : "2017-02-26T18:11:13-0400",
    "multipartUploadAutoAbortDays" : 30,
    "name" : "Accounts-Receivable",
    "optimizedFor" : "CLOUD",
    "owner" : "pblack",
    "ownerType" : "LOCAL",
    "readFromReplica" : true,
    "replicationEnabled" : true,
    "replicationTimestamp" : "2017-02-27T06:45:52-0500",
    "searchEnabled" : true,
    "servicePlan" : "Short-Term-Activity",
    "serviceRemoteSystemRequests" : true,
    "softQuota" : 75,
    "tags" :
        "tag" : [ "Billing", "lgreen" ]
    },
    "id" : "0e774b8d-8936-4df4-a352-b68766b5c287",
    "authAndAnonymousMinimumPermissions" : {
        "permission" : [ "BROWSE", "READ" ]
    }
}

© 2015, 2019 Hitachi Vantara Corporation. All rights reserved.