CtrlK
BlogDocsLog inGet started
Tessl Logo

tessl/pypi-azure-mgmt-containerservice

Microsoft Azure Container Service Management Client Library for Python

Pending

Quality

Pending

Does it follow best practices?

Impact

Pending

No eval scenarios have been run

Overview
Eval results
Files

machines.mddocs/

Machine Operations

Individual node/machine management within agent pools, including machine-specific operations, status monitoring, and maintenance actions. This provides granular control over individual nodes for troubleshooting, maintenance, and capacity management.

Capabilities

Machine Discovery

List and retrieve information about individual machines within agent pools.

def get(
    resource_group_name: str,
    resource_name: str,
    agent_pool_name: str,
    machine_name: str,
    **kwargs
) -> Machine:
    """
    Get information about a specific machine.

    Parameters:
    - resource_group_name (str): The name of the resource group
    - resource_name (str): The name of the managed cluster
    - agent_pool_name (str): The name of the agent pool
    - machine_name (str): The name of the machine
    
    Returns:
    Machine: The machine resource with properties and status
    """

def list(
    resource_group_name: str,
    resource_name: str,
    agent_pool_name: str,
    **kwargs
) -> ItemPaged[Machine]:
    """
    List all machines in an agent pool.

    Parameters:
    - resource_group_name (str): The name of the resource group
    - resource_name (str): The name of the managed cluster
    - agent_pool_name (str): The name of the agent pool
    
    Returns:
    ItemPaged[Machine]: Paginated list of machines
    """

Types

Machine

class Machine:
    """
    Individual machine/node within an agent pool.
    
    Attributes:
    - name (str): Machine name
    - network (MachineNetworkProperties): Network configuration
    - resources (MachineProperties): Machine properties
    """

MachineNetworkProperties

class MachineNetworkProperties:
    """
    Machine network configuration.
    
    Attributes:
    - ip_addresses (List[MachineIpAddress]): IP addresses assigned to the machine
    """

MachineProperties

class MachineProperties:
    """
    Machine properties and resource information.
    
    Attributes:
    - resources (Dict[str, Any]): Resource allocations and limits
    """

MachineIpAddress

class MachineIpAddress:
    """
    IP address assigned to a machine.
    
    Attributes:
    - family (str): IP family (IPv4, IPv6)
    - address (str): The IP address
    """

Usage Example

from azure.mgmt.containerservice import ContainerServiceClient

client = ContainerServiceClient(credential, subscription_id)

# List all machines in an agent pool
machines = client.machines.list("my-rg", "my-cluster", "nodepool1")
for machine in machines:
    print(f"Machine: {machine.name}")
    if machine.network and machine.network.ip_addresses:
        for ip in machine.network.ip_addresses:
            print(f"  IP: {ip.address} ({ip.family})")

# Get specific machine details
machine = client.machines.get("my-rg", "my-cluster", "nodepool1", "machine-name")
print(f"Machine details: {machine.name}")
print(f"Resources: {machine.resources}")

Install with Tessl CLI

npx tessl i tessl/pypi-azure-mgmt-containerservice

docs

agent-pools.md

index.md

machines.md

maintenance.md

managed-clusters.md

models.md

private-endpoints.md

snapshots.md

trusted-access.md

tile.json