Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
RasmusThing committed Oct 29, 2023
1 parent 07fb810 commit cfbca53
Showing 1 changed file with 7 additions and 9 deletions.
16 changes: 7 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,8 @@ fortiztp = pyfortiztp.api(
### Retrieve a single devices.
**Code**
```
devices = fortiztp.devices.all(deviceSN="FGT60FTK1234ABCD")
print(devices)
device = fortiztp.devices.all(deviceSN="FGT60FTK1234ABCD")
print(device)
```

**Output**
Expand All @@ -50,8 +50,8 @@ print(devices)
}
```

### Provision a device to FortiManager.
`deviceSN` is a list of serial numbers. In this example, we only test with a single device.
### Provision one or more devices to FortiManager.
`deviceSN` is a list of serial numbers. In this example, we only test with a single serial number.

**Code**
```
Expand All @@ -73,8 +73,8 @@ print(update)

> **Note:** The FortiZTP API returns the HTTP response "204 No Content" on success.
### Unprovision a device from FortiManager.
`deviceSN` is a list of serial numbers. In this example, we only test with a single device.
### Unprovision one or more devices from FortiManager.
`deviceSN` is a list of serial numbers. In this example, we only test with a single serial number.

**Code**
```
Expand Down Expand Up @@ -114,6 +114,4 @@ print(update)
"error": "invalid_request",
"error_description": "Device testSN doesn't exist in this account"
}
```

> **Note:** The FortiZTP API returns the HTTP response "204 No Content" on success.
```

0 comments on commit cfbca53

Please sign in to comment.