dcos storage profile list

ENTERPRISE

List volume profiles.

dcos storage profile list

List volume profiles.

Synopsis

List volume profiles.

dcos storage profile list [flags]

Examples

  1. Create two volume profiles then list them:
# Create the 'safe' profile.
cat <<EOF | dcos storage profile create
{
    "name": "safe",
    "description": "Volumes backed by RAID-1 devices.",
    "spec": {
        "provider-selector": {
            "plugin": "lvm",
            "matches": {
                "labels": {"raid": "1"}
            }
        },
        "mount": {}
    }
}
EOF
# Create the 'archive' profile.
cat <<EOF | dcos storage profile create
{
    "name": "archive",
    "description": "Archived storage.",
    "spec": {
        "provider-selector": {
            "plugin": "lvm",
            "matches": {
                "labels": {
                    "rotational": "true"
                }
            }
        },
        "mount": {}
    }
}
EOF
# Deactivate the 'archive' volume profile.
dcos storage profile deactivate --name archive

dcos storage profile list --all
TYPE  NAME     STATUS
lvm   archive  INACTIVE
lvm   safe     ACTIVE
dcos storage profile list --all --json
{
    "profiles": [
        {
            "name": "archive",
            "description": "Archived storage.",
            "spec": {
                "provider-selector": {
                    "plugin": "lvm",
                    "matches": {
                        "labels": {
                            "rotational": "true"
                        }
                    }
                },
                "mount": {}
            },
            "status": {
                "phase": "INACTIVE"
            }
        },
        {
            "name": "safe",
            "description": "Volumes backed by RAID-1 devices.",
            "spec": {
                "provider-selector": {
                    "plugin": "lvm",
                    "matches": {
                        "labels": {
                            "raid": "1"
                        }
                    }
                },
                "mount": {}
            },
            "status": {
                "phase": "ACTIVE"
            }
        }
    ]
}
dcos storage profile list --name safe --json
{
    "profiles": [
        {
            "name": "safe",
            "description": "Volumes backed by RAID-1 devices.",
            "spec": {
                "provider-selector": {
                    "plugin": "lvm",
                    "matches": {
                        "labels": {
                            "raid": "1"
                        }
                    }
                },
                "mount": {}
            },
            "status": {
                "phase": "ACTIVE"
            }
        }
    ]
}

Options

Name Description
--all Display inactive profiles.
--json Display the list of volume profiles in json format.
-n,--name stringArray Only show the named profile. May be specified multiple times.

Options inherited from parent commands

Name Description
-h,--help Help for this command.
--timeout duration Override the default operation timeout. (default 55s)
-v,--verbose Verbose mode.