Hi Joe,
That was just a bad paste.
I tried to Get the entire job, and then set the Job with the entire delivered text. It fails with:
Code: Select all
{
"errorCode": "UnknownError",
"message": "Type Tag is not supported",
"resourceId": null
}
If i use this text to set the job:
Code: Select all
{
"isHighPriority": false,
"guestProcessing": {
"appAwareProcessing": {
"isEnabled": true,
"appSettings": [
{
"vss": "requireSuccess",
"transactionLogs": "process",
"vmObject": {
"type": "Tag",
"hostName": "Vcentername",
"name": "Backup 003",
"objectId": "urn:vmomi:InventoryServiceTag:9ed435f4-729f-4e06-bb78-1aaaa28ad0a3:GLOBAL"
},
"usePersistentGuestAgent": false,
"sql": {
"logsProcessing": "truncate",
"retainLogBackups": null,
"backupMinsCount": null,
"keepDaysCount": null,
"logShippingServers": null
},
"oracle": {
"archiveLogs": "preserve",
"retainLogBackups": null,
"useGuestCredentials": true,
"credentialsId": null,
"deleteHoursCount": null,
"deleteGBsCount": null,
"backupLogs": false,
"backupMinsCount": null,
"keepDaysCount": null,
"logShippingServers": null
},
"exclusions": {
"exclusionPolicy": "disabled",
"itemsList": []
},
"scripts": {
"scriptProcessingMode": "disableExec",
"windowsScripts": null,
"linuxScripts": null
}
},
{
"vss": "requireSuccess",
"transactionLogs": "process",
"vmObject": {
"type": "Tag",
"hostName": "VCENTERname",
"name": "SQL 001",
"objectId": "urn:vmomi:InventoryServiceTag:1339ca68-2769-41c0-89e4-0c4aaaaa81c5:GLOBAL"
},
"usePersistentGuestAgent": false,
"sql": {
"logsProcessing": "truncate",
"retainLogBackups": null,
"backupMinsCount": null,
"keepDaysCount": null,
"logShippingServers": null
},
"oracle": {
"archiveLogs": "preserve",
"retainLogBackups": null,
"useGuestCredentials": true,
"credentialsId": null,
"deleteHoursCount": null,
"deleteGBsCount": null,
"backupLogs": false,
"backupMinsCount": null,
"keepDaysCount": null,
"logShippingServers": null
},
"exclusions": {
"exclusionPolicy": "disabled",
"itemsList": []
},
"scripts": {
"scriptProcessingMode": "disableExec",
"windowsScripts": null,
"linuxScripts": null
}
}
]
},
"guestFSIndexing": {
"isEnabled": false,
"indexingSettings": []
},
"guestInteractionProxies": {
"autoSelection": true,
"proxyIds": []
},
"guestCredentials": {
"credsType": "Standard",
"credsId": "945ed170-6fa0-4e90-a864-c5aaaa3b1f5",
"credentialsPerMachine": [
{
"windowsCredsId": "6b7c9773-d98c-40cd-a766-5aaaa9ef69ce",
"linuxCredsId": "00000000-0000-0000-0000-000000000000",
"vmObject": {
"type": "Tag",
"hostName": "Vcentername",
"name": "SQL 001",
"objectId": "urn:vmomi:InventoryServiceTag:1339ca68-2769-41c0-89e4-0aaaa6481c5:GLOBAL"
}
}
]
}
},
"type": "Backup",
"id": "171083d6-5b66-4f75-b210-3aaa05446e78",
"name": "API test job",
"description": "Me",
"isDisabled": false
}
Then i get this error:
Code: Select all
{
"errorCode": "UnknownError",
"message": "Object reference not set to an instance of an object.",
"resourceId": null
}
It seems like we still have the same limitations as in powershell(in V10, haven't tried V11)