<filename>SoftLayer/CLI/file/snapshot/get_notify_status.py
"""Get the snapshots space usage threshold warning flag setting for specific volume"""
# :license: MIT, see LICENSE for more details.

import click
import SoftLayer
from SoftLayer.CLI import environment


@click.command()
@click.argument('volume_id')
@environment.pass_env
def cli(env, volume_id):
    """Get snapshots space usage threshold warning flag setting for a given volume"""

    file_manager = SoftLayer.FileStorageManager(env.client)
    enabled = file_manager.get_volume_snapshot_notification_status(volume_id)

    if enabled == '':
        click.echo(
            'Enabled:Snapshots space usage threshold warning flag is null. Set to default value enable. For volume %s'
            % (volume_id))
    elif enabled == 'True':
        click.echo(
            'Enabled:Snapshots space usage threshold warning flag setting is enabled for volume %s'
            % (volume_id))
    else:
        click.echo(
            'Disabled:Snapshots space usage threshold warning flag setting is disabled for volume %s'
            % (volume_id))

<filename>SoftLayer/CLI/file/snapshot/get_notify_status.py
"""Get the snapshots space usage threshold warning flag setting for specific volume"""
# :license: MIT, see LICENSE for more details.

import click
import SoftLayer
from SoftLayer.CLI import environment


@click.command()
@click.argument('volume_id')
@environment.pass_env
def cli(env, volume_id):
    """Get snapshots space usage threshold warning flag setting for a given volume"""

    file_manager = SoftLayer.FileStorageManager(env.client)
    enabled = file_manager.get_volume_snapshot_notification_status(volume_id)

    if enabled == '':
        click.echo(
            'Enabled:Snapshots space usage threshold warning flag is null. Set to default value enable. For volume %s'
            % (volume_id))
    elif enabled == 'True':
        click.echo(
            'Enabled:Snapshots space usage threshold warning flag setting is enabled for volume %s'
            % (volume_id))
    else:
        click.echo(
            'Disabled:Snapshots space usage threshold warning flag setting is disabled for volume %s'
            % (volume_id))

Get the snapshots space usage threshold warning flag setting for specific volume # :license: MIT, see LICENSE for more details. Get snapshots space usage threshold warning flag setting for a given volume