LXC Snapshot from CLI

Hi,

form the host CLI
Code:
USAGE: pct snapshot <vmid> <snapname> [OPTIONS]

  Snapshot a container.

  <vmid>     <integer> (1 - N)

         The (unique) ID of the VM.

  <snapname> <string>

         The name of the snapshot.

  -description <string>

         A textual description or comment.

to snapshot in the container you must use the host API.
 
Hi,

form the host CLI
Code:
USAGE: pct snapshot <vmid> <snapname> [OPTIONS]

  Snapshot a container.

  <vmid>     <integer> (1 - N)

         The (unique) ID of the VM.

  <snapname> <string>

         The name of the snapshot.

  -description <string>

         A textual description or comment.

to snapshot in the container you must use the host API.
Thanks. Kindly, can you provide a snapshot host API example?