az notification-hub namespace authorization-rule

Catatan

Referensi ini adalah bagian dari ekstensi notification-hub untuk Azure CLI (versi 2.3.1 atau yang lebih tinggi). Ekstensi akan secara otomatis diinstal saat pertama kali Anda menjalankan perintah az notification-hub namespace authorization-rule . Pelajari lebih lanjut tentang ekstensi.

Perintah untuk mengelola aturan otorisasi namespace notification hubs.

Perintah

az notification-hub namespace authorization-rule create

Buat aturan otorisasi untuk namespace.

az notification-hub namespace authorization-rule delete

Menghapus aturan otorisasi namespace.

az notification-hub namespace authorization-rule list

Mencantumkan aturan otorisasi untuk namespace.

az notification-hub namespace authorization-rule list-keys

Cantumkan ConnectionString Primer dan Sekunder ke namespace.

az notification-hub namespace authorization-rule regenerate-keys

Regenerasi Kunci Primer/Sekunder ke Aturan Otorisasi Namespace.

az notification-hub namespace authorization-rule show

Perlihatkan aturan otorisasi untuk namespace menurut nama.

az notification-hub namespace authorization-rule create

Buat aturan otorisasi untuk namespace.

az notification-hub namespace authorization-rule create --name
                                                        --namespace-name
                                                        --resource-group
                                                        --rights

Contoh

Membuat aturan otorisasi namespace

az notification-hub namespace authorization-rule create --resource-group \
MyResourceGroup --namespace-name my-namespace --name "sdk-AuthRules-1788" --rights Listen Send

Parameter yang Diperlukan

--name -n

Nama aturan otorisasi.

--namespace-name

Nama namespace layanan.

--resource-group -g

Nama grup sumber daya. Anda dapat mengonfigurasi grup default menggunakan az configure --defaults group=<name>.

--rights

Hak yang terkait dengan aturan.

az notification-hub namespace authorization-rule delete

Menghapus aturan otorisasi namespace.

az notification-hub namespace authorization-rule delete --name
                                                        --namespace-name
                                                        --resource-group
                                                        [--yes]

Contoh

Menghapus aturan otorisasi namespace

az notification-hub namespace authorization-rule delete --resource-group MyResourceGroup \
--namespace-name my-namespace --name "RootManageSharedAccessKey"

Parameter yang Diperlukan

--name -n

Nama aturan otorisasi.

--namespace-name

Nama namespace layanan.

--resource-group -g

Nama grup sumber daya. Anda dapat mengonfigurasi grup default menggunakan az configure --defaults group=<name>.

Parameter Opsional

--yes -y

Jangan meminta konfirmasi.

az notification-hub namespace authorization-rule list

Mencantumkan aturan otorisasi untuk namespace.

az notification-hub namespace authorization-rule list --namespace-name
                                                      --resource-group

Contoh

Mencantumkan aturan otorisasi namespace

az notification-hub namespace authorization-rule list --resource-group MyResourceGroup \
--namespace-name my-namespace

Parameter yang Diperlukan

--namespace-name

Nama namespace layanan.

--resource-group -g

Nama grup sumber daya. Anda dapat mengonfigurasi grup default menggunakan az configure --defaults group=<name>.

az notification-hub namespace authorization-rule list-keys

Cantumkan ConnectionString Primer dan Sekunder ke namespace.

az notification-hub namespace authorization-rule list-keys --name
                                                           --namespace-name
                                                           --resource-group

Contoh

Mencantumkan kunci aturan otorisasi namesapce

az notification-hub namespace authorization-rule list-keys --resource-group MyResourceGroup --namespace-name \
my-namespace --name "RootManageSharedAccessKey"

Parameter yang Diperlukan

--name -n

Nama aturan otorisasi.

--namespace-name

Nama namespace layanan.

--resource-group -g

Nama grup sumber daya. Anda dapat mengonfigurasi grup default menggunakan az configure --defaults group=<name>.

az notification-hub namespace authorization-rule regenerate-keys

Regenerasi Kunci Primer/Sekunder ke Aturan Otorisasi Namespace.

az notification-hub namespace authorization-rule regenerate-keys --name
                                                                 --namespace-name
                                                                 --policy-key {Primary Key, Secondary Key}
                                                                 --resource-group

Contoh

Meregenerasi kunci aturan otorisasi namesapce

az notification-hub namespace authorization-rule regenerate-keys --resource-group MyResourceGroup --namespace-name \
my-namespace --name "RootManageSharedAccessKey" --policy-key "Secondary Key"

Parameter yang Diperlukan

--name -n

Nama aturan otorisasi.

--namespace-name

Nama namespace layanan.

--policy-key

Nama kunci yang harus diregenerasi untuk Aturan Otorisasi Namespace.

nilai yang diterima: Primary Key, Secondary Key
--resource-group -g

Nama grup sumber daya. Anda dapat mengonfigurasi grup default menggunakan az configure --defaults group=<name>.

az notification-hub namespace authorization-rule show

Perlihatkan aturan otorisasi untuk namespace menurut nama.

az notification-hub namespace authorization-rule show --name
                                                      --namespace-name
                                                      --resource-group

Contoh

Tampilkan info aturan otorisasi namespace

az notification-hub namespace authorization-rule show --resource-group MyResourceGroup \
--namespace-name my-namespace --name "RootManageSharedAccessKey"

Parameter yang Diperlukan

--name -n

Nama aturan otorisasi.

--namespace-name

Nama namespace layanan.

--resource-group -g

Nama grup sumber daya. Anda dapat mengonfigurasi grup default menggunakan az configure --defaults group=<name>.