2.44. hammer lifecycle-environment
在服务器上操作 lifecycle_environments
Usage: hammer lifecycle-environment [OPTIONS] SUBCOMMAND [ARG] ... Parameters: SUBCOMMAND Subcommand [ARG] ... Subcommand arguments Subcommands: create Create an environment delete, destroy Destroy an environment info, show Show an environment list, index List environments in an organization paths List environment paths update Update an environment Options: -h, --help Print help
2.44.1. hammer 生命周期环境创建
创建环境
Usage: hammer lifecycle-environment create [OPTIONS] Options: --description DESCRIPTION Description of the environment --label LABEL Label of the environment --name NAME Name of the environment --organization ORGANIZATION_NAME Organization name to search by --organization-id ORGANIZATION_ID Name of organization --organization-label ORGANIZATION_LABEL Organization label to search by --organization-title ORGANIZATION_TITLE Organization title --prior PRIOR Name of the prior environment --prior-id PRIOR_ID ID of an environment that is prior to the new environment in the chain. It has to be either the ID of Library or the ID of an environment at the end of a chain. --registry-name-pattern REGISTRY_NAME_PATTERN Pattern for container image names --registry-unauthenticated-pull REGISTRY_UNAUTHENTICATED_PULL Allow unauthenticed pull of container images One of true/false, yes/no, 1/0. -h, --help Print help
2.44.2. hammer lifecycle-environment 删除
销毁环境
Usage: hammer lifecycle-environment <delete|destroy> [OPTIONS] Options: --id ID ID of the environment --name NAME Lifecycle environment name to search by --organization ORGANIZATION_NAME Organization name to search by --organization-id ORGANIZATION_ID Organization identifier --organization-label ORGANIZATION_LABEL Organization label to search by --organization-title ORGANIZATION_TITLE Organization title -h, --help Print help
2.44.3. hammer 生命周期环境信息
显示环境
Usage: hammer lifecycle-environment <info|show> [OPTIONS] Options: --fields FIELDS Show specified fields or predefined field sets only. (See below) Comma separated list of values. Values containing comma should be quoted or escaped with backslash. JSON is acceptable and preferred way for complex parameters --id ID ID of the environment --name NAME Lifecycle environment name to search by --organization ORGANIZATION_NAME Organization name to search by --organization-id ORGANIZATION_ID ID of the organization --organization-label ORGANIZATION_LABEL Organization label to search by --organization-title ORGANIZATION_TITLE Organization title -h, --help Print help Predefined field sets: ----------------------------|-----|---------|----- FIELDS | ALL | DEFAULT | THIN ----------------------------|-----|---------|----- Id | x | x | x Name | x | x | x Label | x | x | Description | x | x | Organization | x | x | Library | x | x | Prior lifecycle environment | x | x | Unauthenticated pull | x | x | Registry name pattern | x | x | ----------------------------|-----|---------|-----
2.44.4. hammer lifecycle-environment 列表
列出机构中的环境
Usage: hammer lifecycle-environment <list|index> [OPTIONS] Options: --fields FIELDS Show specified fields or predefined field sets only. (See below) Comma separated list of values. Values containing comma should be quoted or escaped with backslash. JSON is acceptable and preferred way for complex parameters --full-result FULL_RESULT Whether or not to show all results One of true/false, yes/no, 1/0. --library LIBRARY Set true if you want to see only library environments Possible value(s): 'true', 'false' --name NAME Filter only environments containing this name --order ORDER Sort field and order, eg. 'id DESC' --organization ORGANIZATION_NAME Organization name to search by --organization-id ORGANIZATION_ID Organization identifier --organization-label ORGANIZATION_LABEL Organization label to search by --organization-title ORGANIZATION_TITLE Organization title --page PAGE Page number, starting at 1 --per-page PER_PAGE Number of results per page to return --search SEARCH Search string -h, --help Print help Predefined field sets: -------|-----|---------|----- FIELDS | ALL | DEFAULT | THIN -------|-----|---------|----- Id | x | x | x Name | x | x | x Prior | x | x | -------|-----|---------|----- Search / Order fields: id integer name string organization_id integer
2.44.5. hammer 生命周期环境路径
列出环境路径
Usage: hammer lifecycle-environment paths [OPTIONS] Options: --fields FIELDS Show specified fields or predefined field sets only. (See below) Comma separated list of values. Values containing comma should be quoted or escaped with backslash. JSON is acceptable and preferred way for complex parameters --organization ORGANIZATION_NAME Organization name to search by --organization-id ORGANIZATION_ID Organization identifier --organization-label ORGANIZATION_LABEL Organization label to search by --organization-title ORGANIZATION_TITLE Organization title --permission-type PERMISSION_TYPE The associated permission type. One of (readable | promotable) Default: readable -h, --help Print help Predefined field sets: ---------------|-----|-------- FIELDS | ALL | DEFAULT ---------------|-----|-------- Lifecycle path | x | x ---------------|-----|--------
2.44.6. hammer 生命周期环境更新
更新环境
Usage: hammer lifecycle-environment update [OPTIONS] Options: --async ASYNC Do not wait for the update action to finish. Default: true One of true/false, yes/no, 1/0. --description DESCRIPTION Description of the environment --id ID ID of the environment --name NAME Lifecycle environment name to search by --new-name NEW_NAME New name to be given to the environment --organization ORGANIZATION_NAME Organization name to search by --organization-id ORGANIZATION_ID Name of the organization --organization-label ORGANIZATION_LABEL Organization label to search by --organization-title ORGANIZATION_TITLE Organization title --registry-name-pattern REGISTRY_NAME_PATTERN Pattern for container image names --registry-unauthenticated-pull REGISTRY_UNAUTHENTICATED_PULL Allow unauthenticed pull of container images One of true/false, yes/no, 1/0. -h, --help Print help