azure-native.iothub.listIotHubResourceKeysForKeyName
Explore with Pulumi AI
Get a shared access policy by name from an IoT hub. For more information, see: https://docs.microsoft.com/azure/iot-hub/iot-hub-devguide-security.
Uses Azure REST API version 2023-06-30.
Other available API versions: 2016-02-03, 2017-01-19, 2017-07-01, 2018-01-22, 2018-04-01, 2018-12-01-preview, 2019-03-22, 2019-03-22-preview, 2019-07-01-preview, 2019-11-04, 2020-03-01, 2020-04-01, 2020-06-15, 2020-07-10-preview, 2020-08-01, 2020-08-31, 2020-08-31-preview, 2021-02-01-preview, 2021-03-03-preview, 2021-03-31, 2021-07-01, 2021-07-01-preview, 2021-07-02, 2021-07-02-preview, 2022-04-30-preview, 2022-11-15-preview, 2023-06-30-preview. These can be accessed by generating a local SDK package using the CLI command pulumi package add azure-native iothub [ApiVersion]
. See the version guide for details.
Using listIotHubResourceKeysForKeyName
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function listIotHubResourceKeysForKeyName(args: ListIotHubResourceKeysForKeyNameArgs, opts?: InvokeOptions): Promise<ListIotHubResourceKeysForKeyNameResult>
function listIotHubResourceKeysForKeyNameOutput(args: ListIotHubResourceKeysForKeyNameOutputArgs, opts?: InvokeOptions): Output<ListIotHubResourceKeysForKeyNameResult>
def list_iot_hub_resource_keys_for_key_name(key_name: Optional[str] = None,
resource_group_name: Optional[str] = None,
resource_name: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> ListIotHubResourceKeysForKeyNameResult
def list_iot_hub_resource_keys_for_key_name_output(key_name: Optional[pulumi.Input[str]] = None,
resource_group_name: Optional[pulumi.Input[str]] = None,
resource_name: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[ListIotHubResourceKeysForKeyNameResult]
func ListIotHubResourceKeysForKeyName(ctx *Context, args *ListIotHubResourceKeysForKeyNameArgs, opts ...InvokeOption) (*ListIotHubResourceKeysForKeyNameResult, error)
func ListIotHubResourceKeysForKeyNameOutput(ctx *Context, args *ListIotHubResourceKeysForKeyNameOutputArgs, opts ...InvokeOption) ListIotHubResourceKeysForKeyNameResultOutput
> Note: This function is named ListIotHubResourceKeysForKeyName
in the Go SDK.
public static class ListIotHubResourceKeysForKeyName
{
public static Task<ListIotHubResourceKeysForKeyNameResult> InvokeAsync(ListIotHubResourceKeysForKeyNameArgs args, InvokeOptions? opts = null)
public static Output<ListIotHubResourceKeysForKeyNameResult> Invoke(ListIotHubResourceKeysForKeyNameInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<ListIotHubResourceKeysForKeyNameResult> listIotHubResourceKeysForKeyName(ListIotHubResourceKeysForKeyNameArgs args, InvokeOptions options)
public static Output<ListIotHubResourceKeysForKeyNameResult> listIotHubResourceKeysForKeyName(ListIotHubResourceKeysForKeyNameArgs args, InvokeOptions options)
fn::invoke:
function: azure-native:iothub:listIotHubResourceKeysForKeyName
arguments:
# arguments dictionary
The following arguments are supported:
- Key
Name string - The name of the shared access policy.
- Resource
Group stringName - The name of the resource group that contains the IoT hub.
- Resource
Name string - The name of the IoT hub.
- Key
Name string - The name of the shared access policy.
- Resource
Group stringName - The name of the resource group that contains the IoT hub.
- Resource
Name string - The name of the IoT hub.
- key
Name String - The name of the shared access policy.
- resource
Group StringName - The name of the resource group that contains the IoT hub.
- resource
Name String - The name of the IoT hub.
- key
Name string - The name of the shared access policy.
- resource
Group stringName - The name of the resource group that contains the IoT hub.
- resource
Name string - The name of the IoT hub.
- key_
name str - The name of the shared access policy.
- resource_
group_ strname - The name of the resource group that contains the IoT hub.
- resource_
name str - The name of the IoT hub.
- key
Name String - The name of the shared access policy.
- resource
Group StringName - The name of the resource group that contains the IoT hub.
- resource
Name String - The name of the IoT hub.
listIotHubResourceKeysForKeyName Result
The following output properties are available:
- Key
Name string - The name of the shared access policy.
- Rights string
- The permissions assigned to the shared access policy.
- Primary
Key string - The primary key.
- Secondary
Key string - The secondary key.
- Key
Name string - The name of the shared access policy.
- Rights string
- The permissions assigned to the shared access policy.
- Primary
Key string - The primary key.
- Secondary
Key string - The secondary key.
- key
Name String - The name of the shared access policy.
- rights String
- The permissions assigned to the shared access policy.
- primary
Key String - The primary key.
- secondary
Key String - The secondary key.
- key
Name string - The name of the shared access policy.
- rights string
- The permissions assigned to the shared access policy.
- primary
Key string - The primary key.
- secondary
Key string - The secondary key.
- key_
name str - The name of the shared access policy.
- rights str
- The permissions assigned to the shared access policy.
- primary_
key str - The primary key.
- secondary_
key str - The secondary key.
- key
Name String - The name of the shared access policy.
- rights String
- The permissions assigned to the shared access policy.
- primary
Key String - The primary key.
- secondary
Key String - The secondary key.
Package Details
- Repository
- Azure Native pulumi/pulumi-azure-native
- License
- Apache-2.0