Anda dapat menjalankan purchase-offering perintah untuk membeli penawaran.
Untuk mencantumkan pengaturan akun Device Farm Anda, termasuk jumlah maksimum slot perangkat yang dapat Anda beli dan jumlah menit uji coba gratis yang tersisa, jalankan get-account-settings perintah. Anda akan melihat output yang mirip dengan berikut ini:
{
"accountSettings": {
"maxSlots": {
"GUID": 1,
"GUID": 1,
"GUID": 1,
"GUID": 1
},
"unmeteredRemoteAccessDevices": {
"ANDROID": 0,
"IOS": 0
},
"maxJobTimeoutMinutes": 150,
"trialMinutes": {
"total": 1000.0,
"remaining": 954.1
},
"defaultJobTimeoutMinutes": 150,
"awsAccountNumber": "AWS-ACCOUNT-NUMBER",
"unmeteredDevices": {
"ANDROID": 0,
"IOS": 0
}
}
}
Untuk membuat daftar penawaran slot perangkat yang tersedia untuk Anda, jalankan perintah. list-offerings Anda akan melihat output yang serupa dengan yang berikut:
{
"offerings": [
{
"recurringCharges": [
{
"cost": {
"amount": 250.0,
"currencyCode": "USD"
},
"frequency": "MONTHLY"
}
],
"platform": "IOS",
"type": "RECURRING",
"id": "GUID",
"description": "iOS Unmetered Device Slot"
},
{
"recurringCharges": [
{
"cost": {
"amount": 250.0,
"currencyCode": "USD"
},
"frequency": "MONTHLY"
}
],
"platform": "ANDROID",
"type": "RECURRING",
"id": "GUID",
"description": "Android Unmetered Device Slot"
},
{
"recurringCharges": [
{
"cost": {
"amount": 250.0,
"currencyCode": "USD"
},
"frequency": "MONTHLY"
}
],
"platform": "ANDROID",
"type": "RECURRING",
"id": "GUID",
"description": "Android Remote Access Unmetered Device Slot"
},
{
"recurringCharges": [
{
"cost": {
"amount": 250.0,
"currencyCode": "USD"
},
"frequency": "MONTHLY"
}
],
"platform": "IOS",
"type": "RECURRING",
"id": "GUID",
"description": "iOS Remote Access Unmetered Device Slot"
}
]
}
Untuk membuat daftar promosi penawaran yang tersedia, jalankan list-offering-promotions perintah.
Perintah ini hanya mengembalikan promosi yang belum Anda beli. Segera setelah Anda membeli satu atau lebih slot di penawaran apa pun menggunakan promosi, promosi itu tidak lagi muncul dalam hasil.
Anda akan melihat output yang serupa dengan yang berikut:
{
"offeringPromotions": [
{
"id": "2FREEMONTHS",
"description": "New device slot customers get 3 months for the price of 1."
}
]
}
Untuk mendapatkan status penawaran, jalankan get-offering-status perintah. Anda akan melihat output yang serupa dengan yang berikut:
{
"current": {
"GUID": {
"offering": {
"platform": "IOS",
"type": "RECURRING",
"id": "GUID",
"description": "iOS Unmetered Device Slot"
},
"quantity": 1
},
"GUID": {
"offering": {
"platform": "ANDROID",
"type": "RECURRING",
"id": "GUID",
"description": "Android Unmetered Device Slot"
},
"quantity": 1
}
},
"nextPeriod": {
"GUID": {
"effectiveOn": 1459468800.0,
"offering": {
"platform": "IOS",
"type": "RECURRING",
"id": "GUID",
"description": "iOS Unmetered Device Slot"
},
"quantity": 1
},
"GUID": {
"effectiveOn": 1459468800.0,
"offering": {
"platform": "ANDROID",
"type": "RECURRING",
"id": "GUID",
"description": "Android Unmetered Device Slot"
},
"quantity": 1
}
}
}
list-offering-transactionsPerintah renew-offering dan juga tersedia untuk fitur ini. Untuk informasi selengkapnya, lihat AWS CLI referensi.