10.6. Method: clone


Description

Clone a channel. If arch_label is omitted, the architecture label of the original channel is used. If parent_label is omitted, the clone becomes a base channel.

Parameters

The following parameters are available for this method:

  • string sessionKey
  • string original_label
  • struct - channel details
    • string name
    • string label
    • string summary
    • string parent_label (optional)
    • string arch_label (optional)
    • string gpg_key_url (optional) - gpg_url can be used too
    • string gpg_key_id - (optional), gpg_id can be used too
    • string gpg_key_fp - (optional), gpg_fingerprint can be used too
    • string description - (optional)
  • boolean original_state
Returns

The following return values are available for this method:

  • int - the cloned channel ID
Back to top
Red Hat logoGithubredditYoutubeTwitter

Learn

Try, buy, & sell

Communities

About Red Hat Documentation

We help Red Hat users innovate and achieve their goals with our products and services with content they can trust. Explore our recent updates.

Making open source more inclusive

Red Hat is committed to replacing problematic language in our code, documentation, and web properties. For more details, see the Red Hat Blog.

About Red Hat

We deliver hardened solutions that make it easier for enterprises to work across platforms and environments, from the core datacenter to the network edge.

Theme

© 2025 Red Hat