Storage Policy List for a MediaAgent
This operation returns a list of storage policies associated with a MediaAgent.
Query Parameters
- MediaAgent string required
Responses
- 200
OK
- application/json
- application/xml
- Schema
- Example (from schema)
- Storage Policy List for a Media Agent
Schema
error object
errorCode integerstoragePolicyInformationAssociatedToMA object[]
isMADefaultDataPathInCopy booleanisPrimaryCopy booleanisProxyMAInCopy booleanisMADDBHost booleanstoragePolicyAndCopy object
copyId integer_type_ integercopyName stringstoragePolicyName stringstoragePolicyId integermediaAgent object
mediaAgentId integer
{
"error": {
"errorCode": 0
},
"storagePolicyInformationAssociatedToMA": [
{
"isMADefaultDataPathInCopy": true,
"isPrimaryCopy": true,
"isProxyMAInCopy": true,
"isMADDBHost": true,
"storagePolicyAndCopy": {
"copyId": 0,
"_type_": 0,
"copyName": "string",
"storagePolicyName": "string",
"storagePolicyId": 0
},
"mediaAgent": {
"mediaAgentId": 0
}
}
]
}
{
"error": {
"errorCode": 0
},
"storagePolicyInformationAssociatedToMA": [
{
"isMADefaultDataPathInCopy": true,
"isPrimaryCopy": false,
"isProxyMAInCopy": false,
"isMADDBHost": false,
"storagePolicyAndCopy": {
"copyId": 214,
"_type_": 18,
"copyName": "Copy-2",
"storagePolicyName": "CCM_dedupe1",
"storagePolicyId": 105
},
"mediaAgent": {
"mediaAgentId": 2
}
},
{
"isMADefaultDataPathInCopy": true,
"isPrimaryCopy": true,
"isProxyMAInCopy": false,
"isMADDBHost": false,
"storagePolicyAndCopy": {
"copyId": 1,
"_type_": 18,
"copyName": "Primary",
"storagePolicyName": "CommServeDR",
"storagePolicyId": 2
},
"mediaAgent": {
"mediaAgentId": 2
}
},
{
"isMADefaultDataPathInCopy": true,
"isPrimaryCopy": true,
"isProxyMAInCopy": false,
"isMADDBHost": false,
"storagePolicyAndCopy": {
"copyId": 2,
"_type_": 18,
"copyName": "Primary",
"storagePolicyName": "CSSP",
"storagePolicyId": 3
},
"mediaAgent": {
"mediaAgentId": 2
}
},
{
"isMADefaultDataPathInCopy": true,
"isPrimaryCopy": true,
"isProxyMAInCopy": false,
"isMADDBHost": false,
"storagePolicyAndCopy": {
"copyId": 55,
"_type_": 18,
"copyName": "Primary",
"storagePolicyName": "storagepolicy_bdcsrvtest05",
"storagePolicyId": 55
},
"mediaAgent": {
"mediaAgentId": 2
}
},
{
"isMADefaultDataPathInCopy": true,
"isPrimaryCopy": true,
"isProxyMAInCopy": false,
"isMADDBHost": false,
"storagePolicyAndCopy": {
"copyId": 118,
"_type_": 18,
"copyName": "Primary",
"storagePolicyName": "SujLogSP",
"storagePolicyId": 111
},
"mediaAgent": {
"mediaAgentId": 2
}
},
{
"isMADefaultDataPathInCopy": true,
"isPrimaryCopy": true,
"isProxyMAInCopy": false,
"isMADDBHost": false,
"storagePolicyAndCopy": {
"copyId": 117,
"_type_": 18,
"copyName": "Primary",
"storagePolicyName": "SujSP1",
"storagePolicyId": 110
},
"mediaAgent": {
"mediaAgentId": 2
}
}
]
}
- Example 1
<?xml version="1.0" encoding="UTF-8" standalone="no" ?><App_GetStoragePoliciesForMediaAgentResp><error errorCode="0"/><storagePolicyInformationAssociatedToMA isMADDBHost="0" isMADefaultDataPathInCopy="1" isPrimaryCopy="1" isProxyMAInCopy="0"><mediaAgent mediaAgentId="2"/><storagePolicyAndCopy _type_="18" copyId="1" copyName="Primary" storagePolicyId="2" storagePolicyName="CommServeDR"/></storagePolicyInformationAssociatedToMA><storagePolicyInformationAssociatedToMA isMADDBHost="0" isMADefaultDataPathInCopy="1" isPrimaryCopy="1" isProxyMAInCopy="0"><mediaAgent mediaAgentId="2"/><storagePolicyAndCopy _type_="18" copyId="2" copyName="Primary" storagePolicyId="3" storagePolicyName="CSSP"/></storagePolicyInformationAssociatedToMA></App_GetStoragePoliciesForMediaAgentResp>
Loading...