1. Packages
  2. Azure Native
  3. API Docs
  4. apimanagement
  5. listGatewayDebugCredentials
This is the latest version of Azure Native. Use the Azure Native v2 docs if using the v2 version of this package.
Azure Native v3.0.1 published on Monday, Apr 7, 2025 by Pulumi

azure-native.apimanagement.listGatewayDebugCredentials

Explore with Pulumi AI

This is the latest version of Azure Native. Use the Azure Native v2 docs if using the v2 version of this package.
Azure Native v3.0.1 published on Monday, Apr 7, 2025 by Pulumi

Create new debug credentials for gateway.

Uses Azure REST API version 2024-06-01-preview.

Other available API versions: 2023-03-01-preview, 2023-05-01-preview, 2023-09-01-preview, 2024-05-01. These can be accessed by generating a local SDK package using the CLI command pulumi package add azure-native apimanagement [ApiVersion]. See the version guide for details.

Using listGatewayDebugCredentials

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 listGatewayDebugCredentials(args: ListGatewayDebugCredentialsArgs, opts?: InvokeOptions): Promise<ListGatewayDebugCredentialsResult>
function listGatewayDebugCredentialsOutput(args: ListGatewayDebugCredentialsOutputArgs, opts?: InvokeOptions): Output<ListGatewayDebugCredentialsResult>
Copy
def list_gateway_debug_credentials(api_id: Optional[str] = None,
                                   credentials_expire_after: Optional[str] = None,
                                   gateway_id: Optional[str] = None,
                                   purposes: Optional[Sequence[Union[str, GatewayListDebugCredentialsContractPurpose]]] = None,
                                   resource_group_name: Optional[str] = None,
                                   service_name: Optional[str] = None,
                                   opts: Optional[InvokeOptions] = None) -> ListGatewayDebugCredentialsResult
def list_gateway_debug_credentials_output(api_id: Optional[pulumi.Input[str]] = None,
                                   credentials_expire_after: Optional[pulumi.Input[str]] = None,
                                   gateway_id: Optional[pulumi.Input[str]] = None,
                                   purposes: Optional[pulumi.Input[Sequence[pulumi.Input[Union[str, GatewayListDebugCredentialsContractPurpose]]]]] = None,
                                   resource_group_name: Optional[pulumi.Input[str]] = None,
                                   service_name: Optional[pulumi.Input[str]] = None,
                                   opts: Optional[InvokeOptions] = None) -> Output[ListGatewayDebugCredentialsResult]
Copy
func ListGatewayDebugCredentials(ctx *Context, args *ListGatewayDebugCredentialsArgs, opts ...InvokeOption) (*ListGatewayDebugCredentialsResult, error)
func ListGatewayDebugCredentialsOutput(ctx *Context, args *ListGatewayDebugCredentialsOutputArgs, opts ...InvokeOption) ListGatewayDebugCredentialsResultOutput
Copy

> Note: This function is named ListGatewayDebugCredentials in the Go SDK.

public static class ListGatewayDebugCredentials 
{
    public static Task<ListGatewayDebugCredentialsResult> InvokeAsync(ListGatewayDebugCredentialsArgs args, InvokeOptions? opts = null)
    public static Output<ListGatewayDebugCredentialsResult> Invoke(ListGatewayDebugCredentialsInvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<ListGatewayDebugCredentialsResult> listGatewayDebugCredentials(ListGatewayDebugCredentialsArgs args, InvokeOptions options)
public static Output<ListGatewayDebugCredentialsResult> listGatewayDebugCredentials(ListGatewayDebugCredentialsArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: azure-native:apimanagement:listGatewayDebugCredentials
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

ApiId This property is required. string
Full resource Id of an API.
GatewayId
This property is required.
Changes to this property will trigger replacement.
string
Gateway entity identifier. Must be unique in the current API Management service instance. Must not have value 'managed'
Purposes This property is required. List<Union<string, Pulumi.AzureNative.ApiManagement.GatewayListDebugCredentialsContractPurpose>>
Purposes of debug credential.
ResourceGroupName
This property is required.
Changes to this property will trigger replacement.
string
The name of the resource group. The name is case insensitive.
ServiceName
This property is required.
Changes to this property will trigger replacement.
string
The name of the API Management service.
CredentialsExpireAfter string
Credentials expiration in ISO8601 format. Maximum duration of the credentials is PT1H. When property is not specified, them value PT1H is used.
ApiId This property is required. string
Full resource Id of an API.
GatewayId
This property is required.
Changes to this property will trigger replacement.
string
Gateway entity identifier. Must be unique in the current API Management service instance. Must not have value 'managed'
Purposes This property is required. []string
Purposes of debug credential.
ResourceGroupName
This property is required.
Changes to this property will trigger replacement.
string
The name of the resource group. The name is case insensitive.
ServiceName
This property is required.
Changes to this property will trigger replacement.
string
The name of the API Management service.
CredentialsExpireAfter string
Credentials expiration in ISO8601 format. Maximum duration of the credentials is PT1H. When property is not specified, them value PT1H is used.
apiId This property is required. String
Full resource Id of an API.
gatewayId
This property is required.
Changes to this property will trigger replacement.
String
Gateway entity identifier. Must be unique in the current API Management service instance. Must not have value 'managed'
purposes This property is required. List<Either<String,GatewayListDebugCredentialsContractPurpose>>
Purposes of debug credential.
resourceGroupName
This property is required.
Changes to this property will trigger replacement.
String
The name of the resource group. The name is case insensitive.
serviceName
This property is required.
Changes to this property will trigger replacement.
String
The name of the API Management service.
credentialsExpireAfter String
Credentials expiration in ISO8601 format. Maximum duration of the credentials is PT1H. When property is not specified, them value PT1H is used.
apiId This property is required. string
Full resource Id of an API.
gatewayId
This property is required.
Changes to this property will trigger replacement.
string
Gateway entity identifier. Must be unique in the current API Management service instance. Must not have value 'managed'
purposes This property is required. (string | GatewayListDebugCredentialsContractPurpose)[]
Purposes of debug credential.
resourceGroupName
This property is required.
Changes to this property will trigger replacement.
string
The name of the resource group. The name is case insensitive.
serviceName
This property is required.
Changes to this property will trigger replacement.
string
The name of the API Management service.
credentialsExpireAfter string
Credentials expiration in ISO8601 format. Maximum duration of the credentials is PT1H. When property is not specified, them value PT1H is used.
api_id This property is required. str
Full resource Id of an API.
gateway_id
This property is required.
Changes to this property will trigger replacement.
str
Gateway entity identifier. Must be unique in the current API Management service instance. Must not have value 'managed'
purposes This property is required. Sequence[Union[str, GatewayListDebugCredentialsContractPurpose]]
Purposes of debug credential.
resource_group_name
This property is required.
Changes to this property will trigger replacement.
str
The name of the resource group. The name is case insensitive.
service_name
This property is required.
Changes to this property will trigger replacement.
str
The name of the API Management service.
credentials_expire_after str
Credentials expiration in ISO8601 format. Maximum duration of the credentials is PT1H. When property is not specified, them value PT1H is used.
apiId This property is required. String
Full resource Id of an API.
gatewayId
This property is required.
Changes to this property will trigger replacement.
String
Gateway entity identifier. Must be unique in the current API Management service instance. Must not have value 'managed'
purposes This property is required. List<String | "tracing">
Purposes of debug credential.
resourceGroupName
This property is required.
Changes to this property will trigger replacement.
String
The name of the resource group. The name is case insensitive.
serviceName
This property is required.
Changes to this property will trigger replacement.
String
The name of the API Management service.
credentialsExpireAfter String
Credentials expiration in ISO8601 format. Maximum duration of the credentials is PT1H. When property is not specified, them value PT1H is used.

listGatewayDebugCredentials Result

The following output properties are available:

Token string
Gateway debug token.
Token string
Gateway debug token.
token String
Gateway debug token.
token string
Gateway debug token.
token str
Gateway debug token.
token String
Gateway debug token.

Supporting Types

GatewayListDebugCredentialsContractPurpose

Package Details

Repository
Azure Native pulumi/pulumi-azure-native
License
Apache-2.0
This is the latest version of Azure Native. Use the Azure Native v2 docs if using the v2 version of this package.
Azure Native v3.0.1 published on Monday, Apr 7, 2025 by Pulumi