Partager via


Credentials Interface

public interface Credentials

Resource collection API of Credentials.

Method Summary

Modifier and Type Method and Description
abstract Blank define(String name)

Begins definition for a new Credential resource.

abstract void delete(String resourceGroupName, String automationAccountName, String credentialName)

Delete the credential.

abstract void deleteById(String id)

Delete the credential.

abstract Response<Void> deleteByIdWithResponse(String id, Context context)

Delete the credential.

abstract Response<Void> deleteWithResponse(String resourceGroupName, String automationAccountName, String credentialName, Context context)

Delete the credential.

abstract Credential get(String resourceGroupName, String automationAccountName, String credentialName)

Retrieve the credential identified by credential name.

abstract Credential getById(String id)

Retrieve the credential identified by credential name.

abstract Response<Credential> getByIdWithResponse(String id, Context context)

Retrieve the credential identified by credential name.

abstract Response<Credential> getWithResponse(String resourceGroupName, String automationAccountName, String credentialName, Context context)

Retrieve the credential identified by credential name.

abstract PagedIterable<Credential> listByAutomationAccount(String resourceGroupName, String automationAccountName)

Retrieve a list of credentials.

abstract PagedIterable<Credential> listByAutomationAccount(String resourceGroupName, String automationAccountName, Context context)

Retrieve a list of credentials.

Method Details

define

public abstract Credential.DefinitionStages.Blank define(String name)

Begins definition for a new Credential resource.

Parameters:

name - resource name.

Returns:

the first stage of the new Credential definition.

delete

public abstract void delete(String resourceGroupName, String automationAccountName, String credentialName)

Delete the credential.

Parameters:

resourceGroupName - Name of an Azure Resource group.
automationAccountName - The name of the automation account.
credentialName - The name of credential.

deleteById

public abstract void deleteById(String id)

Delete the credential.

Parameters:

id - the resource ID.

deleteByIdWithResponse

public abstract Response<Void> deleteByIdWithResponse(String id, Context context)

Delete the credential.

Parameters:

id - the resource ID.
context - The context to associate with this operation.

Returns:

deleteWithResponse

public abstract Response<Void> deleteWithResponse(String resourceGroupName, String automationAccountName, String credentialName, Context context)

Delete the credential.

Parameters:

resourceGroupName - Name of an Azure Resource group.
automationAccountName - The name of the automation account.
credentialName - The name of credential.
context - The context to associate with this operation.

Returns:

get

public abstract Credential get(String resourceGroupName, String automationAccountName, String credentialName)

Retrieve the credential identified by credential name.

Parameters:

resourceGroupName - Name of an Azure Resource group.
automationAccountName - The name of the automation account.
credentialName - The name of credential.

Returns:

definition of the credential.

getById

public abstract Credential getById(String id)

Retrieve the credential identified by credential name.

Parameters:

id - the resource ID.

Returns:

definition of the credential along with Response<T>.

getByIdWithResponse

public abstract Response<Credential> getByIdWithResponse(String id, Context context)

Retrieve the credential identified by credential name.

Parameters:

id - the resource ID.
context - The context to associate with this operation.

Returns:

definition of the credential along with Response<T>.

getWithResponse

public abstract Response<Credential> getWithResponse(String resourceGroupName, String automationAccountName, String credentialName, Context context)

Retrieve the credential identified by credential name.

Parameters:

resourceGroupName - Name of an Azure Resource group.
automationAccountName - The name of the automation account.
credentialName - The name of credential.
context - The context to associate with this operation.

Returns:

definition of the credential along with Response<T>.

listByAutomationAccount

public abstract PagedIterable<Credential> listByAutomationAccount(String resourceGroupName, String automationAccountName)

Retrieve a list of credentials.

Parameters:

resourceGroupName - Name of an Azure Resource group.
automationAccountName - The name of the automation account.

Returns:

the response model for the list credential operation as paginated response with PagedIterable<T>.

listByAutomationAccount

public abstract PagedIterable<Credential> listByAutomationAccount(String resourceGroupName, String automationAccountName, Context context)

Retrieve a list of credentials.

Parameters:

resourceGroupName - Name of an Azure Resource group.
automationAccountName - The name of the automation account.
context - The context to associate with this operation.

Returns:

the response model for the list credential operation as paginated response with PagedIterable<T>.

Applies to